Code: Select all
e::
{
Toggle := !Toggle
While, Toggle
{
Click down
Sleep 1000
Click up
}
}
return
Code: Select all
e::
{
Toggle := !Toggle
While, Toggle
{
Click down
Sleep 1000
Click up
}
}
return
This is quite odd because that particular error message should only be produced by a version that is too old to recognize the #Requires directive (prior to v1.1.33). The message produced by v1.1.37.02 should say that the script requires a version that you don’t have installed.KnightAckbar wrote: ↑ Indeed the command line #Requires AutoHotkey v2.0 generates an error "Error: This line does not contain a recognized action." But, the msgbox %A_AHKversion% command line works and gives me a window with 1.1.37.02 in it.
Actually, you are not in the right section because you only have v1 installed and you posted in the v2 section. So do you want to continue using and getting help with v1, in which case we’ll move the thread to the v1 section, or do you want to install v2 and get help turning your code into a working v2 script?KnightAckbar wrote: ↑ Sorry for the inconvenience, I must be in the right section.
Code: Select all
$e::
While GetKeyState("e","p"){ ; While it is held down
MouseClick, Left
Sleep 100
}
return
Users browsing this forum: No registered users and 53 guests