AutoHotkey Community

It is currently May 27th, 2012, 10:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Run Clip
PostPosted: October 7th, 2004, 12:16 am 
Offline

Joined: June 24th, 2004, 1:00 am
Posts: 114
Location: Malta
Hi all!
For Text pad users but can easily be adapted to other editors.
It's a simple script that I use a lot, might have been posted before, (Fire-suit on)
Make an ahk out of it, Then make a tool in Text pad preferences using;
Autohotkey as program and the script as parameter.

Select the code in Textpad and run the tool.
Of course the selected code does not have to depend on other code.

;============================
SetTitleMatchMode, 1
WinActivate, TextPad
Send, ^c
FileAppend, %Clipboard%, %temp%\todelete.ahk
runwait, %temp%\todelete.ahk
filedelete, %temp%\todelete.ahk
;=============================
Regards
Carmel Grech


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2004, 1:28 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Yes, that's good. For example, I think it would be useful to take a selection from the forum and immediately run it as a script.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Run Clip
PostPosted: March 28th, 2008, 2:22 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
J'adore!! I like it!
Really very very extremely génial, very practical!
Very great saving of time to make tests now I use it every day,
directly from notepad or in the navigator...

(But attention! cause the snake can eat its tail,cause i am a a French novice with autoHotkey and
the first time for testing script; it was buckled:a multitude of windows opened! arf!)
=> with the startup by shortcut keyboard it 's vraiment super!

Code:
;-------------------------------------------------------------------------
#a:: ; Assign a hotkey to activate this script.
;============================
SetTitleMatchMode, 1
WinActivate, Notepad
Send, ^c
clipboard = %clipboard%
FileAppend, %Clipboard%, %temp%\todelete.ahk
runwait, %temp%\todelete.ahk
filedelete, %temp%\todelete.ahk
return
;=============================
#q::ExitApp ; Assign a hotkey to terminate this script.
return
;-------------------------------------------------------------------------



:D Grand merçi!
(and excuse my poov English-Language..)
Good continuation!

[søggøs]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2008, 6:41 pm 
Offline

Joined: December 6th, 2007, 4:21 pm
Posts: 32
This is very handy! Thank you! :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2008, 6:50 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
This thread has some other scripts that are very similar to this.
Many are more robust, with escape features and risk assessment against dangerous scripts.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2008, 7:25 pm 
Offline

Joined: December 6th, 2007, 4:21 pm
Posts: 32
Awesome! Thank you very much, SoggyDog! I will be sure to try out those scripts listed on that thread for various other abilities.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 21 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