! test.ahk -_- run scripts and execute script lines with CTRL + R

[test.ahk]  [test.zip]   -_-  AutoHotKey exeS [ ahk_L.exe ] [ basic ahk.exe ]

With the test.ahk you can execute easily single line actions i.e run url, run path\, msgbx  + .....  lines and even some complexe scripts, without saving the line(s)  or the script.

Note: by clicking the test.ahk the "open with" dialog box will appear. → select an AHK.exe
recommented the 1.exe because of unicode support

TO DO • highlight the code line(S) • [CTRL] + [R]

The main purpose from the "test.ahk" code was it to test  in the Autohotkey forums published scripts.

ctrl & r:: ; hotkeys CTRL + R
ClipSave := ClipboardAll ; saves the clipboard content
Clipboard = ;empties the clipboard
Send ^c ; copy
clipwait 2
Clipboard .= "`nesc::ExitApp" ; adds an exit function via the [Esc] key
ToolTip, %Clipboard% ; displays the script in a tooltip
FileDelete %A_Temp%\~temp.ahk
FileAppend , %Clipboard%, %A_Temp%\~temp.ahk
Run %A_Temp%\~temp.ahk ;. ahk needs to be associatet with an AutoHotKey.exe
Clipboard := ClipSave ; restores the clipboard
Sleep 5000
ToolTip ; deletes the ToolTip

if you want you can remove from the code
•the 3 blue tooltip lines
•the 3 lines ¹clipboard = ²Clipboard := ClipSave ³ClipSave := ClipboardAll
•the line Clipboard .= "`nesc::ExitApp"

The same script with german comments and an additional line, which makes it more convenient to test multiple scripts or to execute script lines

ctrl & r:: ; hotkeys Strg + R
ClipSave := ClipboardAll ; sichern der Zwischenablage
Clipboard =
Send ^c ;Kopiert den Code
clipwait 2 ;Wartezeit ist notwendig zum "Reinladen" des Textes
Clipboard .= "`nesc::ExitApp" ;anhängen einer Abbruch-Funktion mit dem Hotkey "Esc"
ToolTip, %Clipboard% ;Anzeigen des zu startenden Scripts
FileDelete %A_Temp%\~temp.ahk
FileAppend , #singleinstance force`n, %A_Temp%\~temp.ahk
FileAppend , %Clipboard%, %A_Temp%\~temp.ahk
Run %A_Temp%\~temp.ahk ;.ahk muss natürlich mit autohotkey.exe verknüpft sein
Clipboard := ClipSave
Sleep 5000
ToolTip ;ToolTip löschen

without the "add #singleinstance force" line the running ~temp.ahk will alert you always that the "script" is running. You will save one click or to exit the running "~tmp.ahk" script via [esc]

You can exit a test.ahk file via the H tray rightclick menu.
Other menu entries: edit, reload, suspend the shortcut, pause. The Help entry requiers the autohotkey.cfm in the AutoHotKey directory, if created via an autohotkey installer.

One thought on “! test.ahk -_- run scripts and execute script lines with CTRL + R

  1. You need targeted traffic to your ! test.ahk -_- run scripts and execute script lines with CTRL R | shortCUTr.ga#____or___1mm.de website so why not get some for free? There is a VERY POWERFUL and POPULAR company out there who now lets you try their traffic service for 7 days free of charge. I am so glad they opened their traffic system back up to the public! Check it out here: http://bysb.eu/4rq9

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>