| View previous topic :: View next topic |
| Author |
Message |
Kramer Guest
|
Posted: Sun Jan 10, 2010 7:15 pm Post subject: Searching for a old script that executes scripts from clipbo |
|
|
Hi,
For about a year ago I leeched a small script of the forum that made it possible to execute the contained script in clipboard directly.
So if somebody posted sample codes I could execute them directly without having to open a new .ahk past close and run it.
If I do remember correctly it also saved the script in sequence into a folder.
If anybody still got that please post it.
Thank you very much,
Kramer |
|
| Back to top |
|
 |
svi
Joined: 09 Oct 2006 Posts: 236 Location: Finland
|
Posted: Sun Jan 10, 2010 7:28 pm Post subject: |
|
|
I use Lexikos' Run Dynamic Script... Through a Pipe! modified to use clipboard instead of InputBox.
| Kramer wrote: | | it also saved the script in sequence into a folder | You could easily add that (backup) function. _________________ Pekka Vartto |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 3254 Location: Simi Valley, CA
|
|
| Back to top |
|
 |
DeRoc
Joined: 04 Jul 2009 Posts: 9 Location: SF Bay Area
|
Posted: Sun Jan 10, 2010 11:46 pm Post subject: |
|
|
I use this to run from a hotkey I have in the AutoHotKey.ini file.
(Very) Quick 'n Dirty
| Code: | ; RunSample.ahk: Run script from clipboard
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
tempfile = TempOnlyFile.ahk
IfExist, %tempfile%
FileDelete, %tempfile%
FileAppend, %Clipboard%, %tempfile%
RunWait, %tempfile%
FileDelete, %tempfile%
|
And the hotkey I use
| Code: | AppsKey & n:: ;Run Sample from Clipboard
SetWorkingDir %scriptsBob% ; where I have my scripts
Run RunSample.ahk
Return
|
|
|
| Back to top |
|
 |
|