1. `Tab & ;` gives `8`
2. `; up` gives `;`
Code: Select all
Tab & `;::
if GetKeyState("ctrl")
Send ^{8}
else
Send {8}
return
`; up::
Send `;
return
Code: Select all
Tab & `;::
if GetKeyState("ctrl")
Send ^{8}
else
Send {8}
return
`; up::
Send `;
return
Code: Select all
`; up::
if !GetKeyState("ctrl")
Send `;
return
When I release sequence of Tab & `; I should get 8 ,but the result is 8; (with extra semicolon).Albireo wrote: ↑20 Nov 2018, 07:03I don't understand what you want to do.
But does this not work for you? (for example)Code: Select all
`; up:: if !GetKeyState("ctrl") Send `; return
Code: Select all
`; up::
Send `;
return
Code: Select all
Tab & `;::
if GetKeyState("ctrl")
ControlSend Edit1, ^{8}, ahk_exe ????.exe
else
ControlSend Edit1, {8}, ahk_exe ????.exe
Return
`; up::
ControlSend Edit1, `;, ahk_exe ????.exe
Return