Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

AutoHotKey Plugin

Questions and comments specific to a particular plugin should go here.
Post Reply
Krafty
Posts: 12
Joined: Tue Jul 02, 2013 10:20 pm

AutoHotKey Plugin

Post by Krafty »

Image

Just finished working on an AutoHotKey plugin for Eventghost. This allows you to run pretty much any AutoHotKey script as an action. There are also a few extra actions I added.

Here's a list of all of them:
  • AutoHotKey Command - Runs a one-line ahk command.
  • AutoHotKey Script - Runs user-entered ahk code.
  • AutoHotKey Files - Runs an ahk file.
  • AutoHotKey Message Box - Creates an ahk message box. There are several different button styles and each button triggers an event.
  • AutoHotKey SoundBeep - Emits a tone from the PC speaker.
  • AutoHotKey Block Input - Blocks user input. Freezes the mouse and ignores all keyboard input until the timeout is reached or "BlockInput Off" action is executed. Only works if Eventghost is ran as admin.
  • BlockInput Off - Gives control back to the user after "Block Input" is executed.
  • AutoHotKey Click Image - Searches the screen for an image provided by the user. If the image is found the user can choose to have it trigger an event with the coordinates in the payload and/or click the mouse at the coordinates. Window with image must be active.
  • AutoHotKey Input Box - Creates an input box the prompts the user. The entered data is set to a variable.
That's it for now. I'll probably set up a quick google website for this later like I did with my other plugins. Let me know if you run into any issues.

Just move the extracted "AutoHotKey" folder to the plugins folder in your Eventghost folder to install.

Enjoy n__n

Edit: I forgot to mention, if you want to use "eg." variables, just enclose them in #s. Like this: #eg.variable#
Attachments
AutoHotKey.zip
(480.16 KiB) Downloaded 169 times
Last edited by Krafty on Fri Jan 17, 2014 7:57 pm, edited 1 time in total.
bruinlax
Posts: 26
Joined: Thu Sep 29, 2011 4:31 pm

Re: AutoHotKey Plugin

Post by bruinlax »

nice! so far so good! thanks for writing it!

Any chance you could put this on an SVN so i could keep it updated if you update it?
Krafty
Posts: 12
Joined: Tue Jul 02, 2013 10:20 pm

Re: AutoHotKey Plugin

Post by Krafty »

bruinlax wrote:nice! so far so good! thanks for writing it!

Any chance you could put this on an SVN so i could keep it updated if you update it?
Glad you like it n__n

I've never used an SVN before, but I'll look into it before the next update. I'll let you know when I have that set up.
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: AutoHotKey Plugin

Post by piert »

Thanks for sharing, Krafty!
I use Autohotkey, which is a great program, to automate a lot of keyboard input at work.
At home I use Eventghost for a lot of automation purposes. I think there is a lot of overlap in capabilities of both programs.
The entry box to user for a variable input seems interesting. Will have to think of new applications for it (which is always a good thing :lol: )
Post Reply