error at line 1 autohotkey

I’m currently trying to write an Autohotkey command, which pastes a SQL code, but i only get this message:

Error at line 3. Line Text: Create table #tmp (
Error: This line does not contain a recognized action.
The script was not reloaded; the old Version will remain in effect.

there are also some variations of this message.

I already tried to use SendRaw or SendInput. Even the escape character ´ does not work. Putting it in quotation marks neither. I do not have any clues anymore.

well, i expected it to send the SQL-Statement, but I’m just getting errors like the one above. Sometimes it refers to the line «Create Table #tmp(«, sometimes to «insert into #tmp (row1, number)». And I don’t know what to do. Does anyone has a clue and can help me with this?

Comments

Copy link Quote reply

quinnjamin commented Dec 8, 2014

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!

This comment has been minimized.

Copy link Quote reply

valleyman86 commented Dec 14, 2014

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
#1.

Thread Tools
Display
  • Linear Mode
  • Switch to Hybrid Mode
  • Switch to Threaded Mode

Yeah maybe I’ll try that, I was thinking about it but thought it might take him off /follow but it doesn’t. I kind of wanted something that I didn’t have to conciously do every couple minutes but I guess jumping a couple times every 5 minutes isn’t hard lol.

EDIT: Meh.
This seems to work just fine. Dunno what I did wrong last time o.O

Numpad0::ControlSend, , , ahk_id %idClone%

Numpad0 Up::ControlSend, , , ahk_id %idClone% [/code:1]

I have this problem with ahk. Currently I’m testing with two computers: a normal desktop pc and a laptop. I’m running two wow clients on both of them so I have four characters now. Main character is A which ofcourse runs on my primary computer. On the same computer is also other char which is B. Char C is fullscreen client on my laptop and D is minimized client. I’m using Synergy/Multibox (both of them seems to work exactly the same in WoW) to broadcast my keys from desktop pc to laptop. So A and C which are on fullscreen work just fine but B and D causes some problems.

I’ve been searching some scripts from this forum but no matter which one I use it does not work properly. For example I have Frost Armor binded to «1». When I hold 1 down on my keyboard B and D casts their frost armor instantly and keep casting it as long as the button is hold down. A and C in the other hand cast it only after the button is released, which is ofcourse how it should work. So the problem is that ahk keeps spamming the button up and down as long as I keep it pressed down. Any ideas?

The scripts I’ve tested this with:

1::
ControlSend, , <1 down>, ahk_id %idClone%

1 Up::
ControlSend, , <1 up>, ahk_id %idClone%
[/code:1]
[code:1]#IfWinActive, World of Warcraft

2::
;ControlSend,, <1 down>, ahk_id %idMain%
ControlSend,, <1 down>, ahk_id %idClone%
KeyWait, 2
;ControlSend,, <1 up>, ahk_id %idMain%
ControlSend,, <1 up>, ahk_id %idClone%
Return[/code:1]
[code:1]#IfWinActive, World of Warcraft

Оцените статью