SHARE
TWEET

test ahk snippet

ewerybody Jul 6th, 2017 55 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top