Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;https://autohotkey.com/boards/viewtopic.php?f=5&t=33395&p=154913#p154913
- $F3::
- KeyWait, F3 ; wait for F3 released
- KeyWait, F3, D T0.2 ; wait 1 second for F3 pressed again
- If ErrorLevel ; if 1 second passes before F3 is pressed again
- {
- Send ^c ; or whatever your copy code is
- }
- else ; we will now allow F3 to be pressed normally
- {
- Loop
- {
- Send {F3 down}
- KeyWait, F3 ; wait for F3 release
- Send {F3 up}
- KeyWait, F3, D T1 ; wait 1 second for F3 pressed again
- If ErrorLevel ; if 1 second passes before F3 is pressed again
- Break ; exit his Loop
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment