AutoRecordGO icon indicating copy to clipboard operation
AutoRecordGO copied to clipboard

Issues with AutoHotKey

Open quinnjamin opened this issue 11 years ago • 8 comments

At first it says "Error at line 15. The following variable name contains an illegal character: "File.Length" The program will exit." I the only way i could get it to go away was to delete the period (.) but then it says "Error at line 21. Line Text: #If WinActive("ahk_exe csgo.exe") Error: This line does not contain a recognized action. The program will exit." I'm just having great difficulty getting this to work, I have never used anything like this (scripts or AutoHotKey) If you could help me it would be greatly appreciated!

quinnjamin avatar Dec 08 '14 00:12 quinnjamin

Make sure you get the latest version of autohotkey.

On Sunday, December 7, 2014, quinnjamin [email protected] wrote:

At first it says "Error at line 15. The following variable name contains an illegal character: "File.Length" The program will exit." I the only way i could get it to go away was to delete the period (.) but then it says "Error at line 21. Line Text: #If WinActive("ahk_exe csgo.exe") Error: This line does not contain a recognized action. The program will exit." I'm just having great difficulty getting this to work, I have never used anything like this (scripts or AutoHotKey) If you could help me it would be greatly appreciated!

— Reply to this email directly or view it on GitHub https://github.com/valleyman86/AutoRecordGO/issues/1.

Joey Gentry MurderDev http://www.MurderDev.com - Developing Killer Software

valleyman86 avatar Dec 14 '14 00:12 valleyman86

I have the same problem and I have the latest version of autohotkey.

hzrDgit avatar Dec 26 '14 13:12 hzrDgit

I have no idea what could cause this. Maybe someone can google the general issue in the mean time. I will take a harder look at this when I get a chance. Maybe try copy and pasting the text into notepad and resaving the file (versus downloading it directly). Let me know if anything fixes is. Sorry guys. I haven't used this code in a long time.

valleyman86 avatar Dec 27 '14 07:12 valleyman86

Try the version from this site btw.

http://ahkscript.org/

valleyman86 avatar Dec 27 '14 07:12 valleyman86

Script works with Autohotkey v1.1.17.0 downloaded from http://ahkscript.org/download/ I tested only Unicode64 version on Win8.1.

Please add this info to Readme, requirements section (which currently points to wrong autohotkey site).

Also, I had to add #Persistent to beginning of script, otherwise it would exit almost immediately.

wolcano avatar Dec 28 '14 09:12 wolcano

awesome. Thanks for letting me know.

On Sun, Dec 28, 2014 at 1:29 AM, wolcano [email protected] wrote:

Script works with Autohotkey v1.1.17.0 downloaded from http://ahkscript.org/download/ I tested only Unicode64 version on Win8.1.

Please add this info to Readme, requirements section (which currently points to wrong autohotkey site).

Also, I had to add #Persistent to beginning of script, otherwise it would exit almost immediately.

— Reply to this email directly or view it on GitHub https://github.com/valleyman86/AutoRecordGO/issues/1#issuecomment-68202398 .

Joey Gentry MurderDev http://www.MurderDev.com - Developing Killer Software

valleyman86 avatar Dec 29 '14 02:12 valleyman86

I think this will fix the problem up nicely

if (A_AhkVersion >= "1.1.17" OR A_IsCompiled = "True")
{ 

<main body here>

}
else
{
Gui,Add,Text,x20 y9 w280 h50 center, To run this program you need AutoHotKey v1.1.17+`nYou are currently using`nv%A_AhkVersion%
Gui, Font, cBlue
Gui,Add,Text,x20 y55 w250 h13 center gGotoSite,http://ahkscript.org/download/ahk-install.exe
Gui,Add,Button,x128 y70 w43 h23 center gButtonOk,Ok
Gui,Show, w300 h100 Center,  Error
Return

ButtonOk:
GuiClose:
ExitApp
return

GotoSite:
Run, %A_GuiControl%
Return
}
return

the gui looks like this

2015-01-09_19-48-09

TexZeTech avatar Jan 10 '15 01:01 TexZeTech

Still happening with latest AHK.

NNickey avatar Nov 26 '17 19:11 NNickey