Copiar, alt + tab, colar, alt + tab

0

Eu quero fazer um superpaste e escrevi isso em AHK. Meu código está errado? Eu recebo erro em ambos os scripts

Script 1

^!c::
Send Send {Ctrl Down}c{Ctrl Up}
Sleep, 100
Send !Tab
Sleep, 100
Send Send {Ctrl Down}v{Ctrl Up}
Sleep, 100
Send Enter
Sleep, 10
Send Enter
Sleep, 100
Send !Tab
Return

Script 2

^+c::
Send ^c
Sleep, 100
Send !Tab
Sleep, 100
Send ^v
    
por user1603548 31.07.2014 / 08:13

1 resposta

1

Script 1

;SetKeyDelay, 300 ;Sets the delay(Time in milliseconds) that will occur after each keystroke sent by Send and ControlSend. uncomment if something wrong
^+c:: ; ctrl+shift+c
clipboard = ; Empty the clipboard
Send ^c
ClipWait 3 ; Waits 3 sec until the clipboard contains data.
Send !{Tab} ; Switch between the two most recent tasks (is it notepad?)
Sleep, 200
Send {End} ; move to end line
Send {Enter} ; new line
Send {Enter} ; new line separator
Send ^v
Sleep, 200
Send !{Tab} ; Switch between the two most recent tasks (moving back)

ctrl + shift + c para ativar.

    
por 01.08.2014 / 21:55

Tags