I found this code on the internet and adapted it for my needs. I know very little of AutoHotkey. I duplicated it in the same script but when I click Run Script it says error in line 48 a function with that name already exists and won't work. It points to Actions. Here are the two I'm trying to put together:
Code: Select all
#IfWinActive ahk_exe ReadyOrNot-Win64-Shipping.exe
Shift & Q::
{
count++
settimer, actions, 350
}
return
actions:
{
if (count = 1)
{
Send {MButton}
Sleep 50
Send {2}
Sleep 50
Send {2}.
}
else if (count = 2)
{
Send {MButton}
Sleep 50
Send {3}
Sleep 20
Send {3}
Sleep 50
Send {2}.
}
count := 0
}
return
Code: Select all
#IfWinActive ahk_exe ReadyOrNot-Win64-Shipping.exe
Shift & E::
{
count++
settimer, actions, 350
}
return
actions:
{
if (count = 1)
{
Send {MButton}
Sleep 50
Send {2}
Sleep 50
Send {1}.
}
else if (count = 2)
{
Send {MButton}
Sleep 50
Send {3}
Sleep 50
Send {3}
Sleep 50
Send {1}.
}
count := 0
}
return
Thank you.