Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +#H::testahk()
- testahk() {
- SavedClipboard := ClipboardAll
- Clipboard =
- ClipWait, 0.5, 1
- Send, {Ctrl down}^c{Ctrl up}
- selection := Clipboard
- Clipboard := SavedClipboard
- test_file = %A_Temp%\_test_ahk.ahk
- FileDelete, %test_file%
- FileAppend, %selection%, %test_file%
- Run, %A_AhkPath% %test_file%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement