Hii. I dont know eng so much. I need to get 2 macros in 1 script with toggle key, its not working. Msgbox saying to me "Error at line 23. - Line text: SendTheKey - Error: Duplicate label. - Program will exit."
Code
LShift::
RepeatKey := !RepeatKey
If RepeatKey
SetTimer, SendTheKey, 20
Else
SetTimer, SendTheKey, Off
Return
SendTheKey:
SendInput 7
SendInput 7
SendInput 8
Return
RShift::
RepeatKey := !RepeatKey
If RepeatKey
SetTimer, SendTheKey, 100
Else
SetTimer, SendTheKey, Off
Return
SendTheKey: this line is 23
SendInput z
SendInput 3
SendInput z
SendInput 3
Return
2 macros in 1 script with toggle Topic is solved
Re: 2 macros in 1 script with toggle
Code: Select all
LShift::
RShift::
RepeatKey := !RepeatKey
SetTimer, % (A_ThisHotkey = "LShift" ? "Label1" : "Label2"), % (RepeatKey ? A_ThisHotkey = "LShift" ? 20 : 100 : "Off")
return
Label1:
SendInput, 778
return
Label2:
SendInput, z3z3
return
Who is online
Users browsing this forum: No registered users and 79 guests