AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ACConsole

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5049
Location: imaginationland

PostPosted: Fri Feb 03, 2006 9:20 pm    Post subject: ACConsole Reply with quote

AutoHotkey Command Console (ACConsole) is like a command prompt window where you can type or paste in commands to execute.

The window can be hidden to the system tray and called up whenever you need it. Like PSPad, you can press F1 while the cursor is on a word to bring up the reference for it in the AutoHotkey help file.
This can be useful whenever you need to use AutoHotkey for something quick (e.g. like replacing linefeeds in the clipboard) or for trying out code you see on these forums Razz

Download
(3kb)
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4002
Location: Pittsburgh

PostPosted: Fri Feb 03, 2006 9:48 pm    Post subject: Reply with quote

Nice!
I have been using a much simpler version in my main script (this is the 5th GUI in there). I post it here, so you could appreciate the extra functionality Titan's 5 times longer script offers. This one is activated by its hotkey (Alt-Z). You could type an AHK script in its edit window (showing the last one you entered highlighted, so a DEL clears it up, a cursor move allows editing it). Pressing the hotkey again executes the script, and hides the edit window, to be activated by the next press of the hotkey. Closing the window with ESC or clicking on [x] does not execute the script. You can terminate this little executioner via its tray icon.
Code:
!z::    ; Execute temp script
   GuiControlGet VisibleCx, 5:Visible, MyEdit
   If (VisibleCx <> 1) {
      FileRead COMMAND, %TEMP%\execute!.ahk
      Gui 5:Font, S10, Courier New
      Gui 5:Add, Edit, r15 w700 WantTab vMyEdit, %COMMAND%
      Gui 5:Show,,Alt-Z: Execute AutoHotkey Script
      Return
   }
   Gui 5:Submit
   FileDelete %TEMP%\execute!.ahk
   FileAppend %MyEdit%, %TEMP%\execute!.ahk
   Run %TEMP%\execute!.ahk
5GuiClose:
5GuiEscape:
   Gui 5:Destroy
Return
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group