::F2
{
While(1==1)
{
{SPACE down}{A down}
Sleep , 500
{SPACE up}{A up}
{SPACE down}{D down}
Sleep , 500
{SPACE up}{D up}
}
}
Cheers would appreciate if you would fix it
Hey there i'm trying to understand why does this script not work
Re: Hey there i'm trying to understand why does this script not work
::F2 - you reverted it, should be F2::.
{SPACE down}{A down} - this is invalid. See Send.
While(1==1) - this will cause infinite loop after pressing the hotkey for first time. You may want to do some kind of toggle.
Ps. true instead of 1==1 is more elegant.
{SPACE down}{A down} - this is invalid. See Send.
While(1==1) - this will cause infinite loop after pressing the hotkey for first time. You may want to do some kind of toggle.
Ps. true instead of 1==1 is more elegant.
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Re: Hey there i'm trying to understand why does this script not work
Thanks alot mate CheersSirRFI wrote:::F2 - you reverted it, should be F2::.
{SPACE down}{A down} - this is invalid. See Send.
While(1==1) - this will cause infinite loop after pressing the hotkey for first time. You may want to do some kind of toggle.
Ps. true instead of 1==1 is more elegant.
Re: Hey there i'm trying to understand why does this script not work
http://prntscr.com/j8kx2iswagfag wrote:https://autohotkey.com/docs/Hotkeys.htm#Intro
what should i do ?
Re: Hey there i'm trying to understand why does this script not work
Looks like UTF-8 BOM is appending to your Hotkey. Run the script using Unicode version, such as U32. Moving the hotkey out from first line may be in help too.
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Who is online
Users browsing this forum: No registered users and 247 guests