valleyman86 / AutoRecordGO

Automatically Record Games in CS:GO with this AutoHotKey Script.
16 stars 12 forks source link

Issues with AutoHotKey #1

Open quinnjamin opened 9 years ago

quinnjamin commented 9 years ago

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!

valleyman86 commented 9 years ago

Make sure you get the latest version of autohotkey.

On Sunday, December 7, 2014, quinnjamin notifications@github.com 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

hzrDgit commented 9 years ago

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

valleyman86 commented 9 years ago

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 commented 9 years ago

Try the version from this site btw.

http://ahkscript.org/

wolcano commented 9 years ago

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.

valleyman86 commented 9 years ago

awesome. Thanks for letting me know.

On Sun, Dec 28, 2014 at 1:29 AM, wolcano notifications@github.com 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

TexZeTech commented 9 years ago

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

NNickey commented 7 years ago

Still happening with latest AHK.