Advertisement
ewerybody

test ahk snippet

Jul 6th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. +#H::testahk()
  2.  
  3. testahk() {
  4.     SavedClipboard := ClipboardAll
  5.     Clipboard =
  6.     ClipWait, 0.5, 1
  7.     Send, {Ctrl down}^c{Ctrl up}
  8.     selection := Clipboard
  9.     Clipboard := SavedClipboard
  10.    
  11.     test_file = %A_Temp%\_test_ahk.ahk
  12.     FileDelete, %test_file%
  13.     FileAppend, %selection%, %test_file%
  14.     Run, %A_AhkPath% %test_file%
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement