AutoHotkey Community

It is currently May 27th, 2012, 1:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: January 10th, 2010, 8:15 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 8:28 pm 
Offline

Joined: October 9th, 2006, 8:19 pm
Posts: 236
Location: Finland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 10:54 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
Maybe it was my Clipboard Execute script ?

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2010, 12:46 am 
Offline

Joined: July 4th, 2009, 6:08 pm
Posts: 9
Location: SF Bay Area
I use this to run from a hotkey I have in the AutoHotKey.ini file.

(Very) Quick 'n Dirty :o

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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], Leef_me, Ohnitiel and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group