The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: mitchi on April 13, 2009, 11:51:38 PM

Title: Autohotkey users here ?
Post by: mitchi on April 13, 2009, 11:51:38 PM
Autohotkey is a very powerful tool to know. I use it in almost all the video games I play and I also use it to save time on Windows.
With my internet CGI project, I have a batch file to make .cgi files from my .exe file


del minichat.cgi
copy minichat.exe minichat.cgi

del inscription.cgi
copy inscription.exe inscription.cgi

del index.cgi
copy index.exe index.cgi

del viewtopic.cgi
copy viewtopic.exe viewtopic.cgi

del connexion.cgi
copy connexion.exe connexion.cgi

del sendreply.cgi
copy sendreply.exe sendreply.cgi

del newtopic.cgi
copy newtopic.exe newtopic.cgi


And I can make a hotkey to launch the batch file using one line of Autohotkey code.


;Script to launch the batch file. Hotkey is WINDOWSkey+S
#s::
Run MAKEminichat.bat
Title: Re: Autohotkey users here ?
Post by: BlackVortex on May 04, 2009, 11:38:49 PM
You don't need those del commands, because when the "copy" command is executed from a batch file, it automatically overwrites any existing file.

And as far as automation languages go, I really prefer AutoIt, give it a try    :green 
http://www.autoitscript.com/AutoIt/
Title: Re: Autohotkey users here ?
Post by: mitchi on May 05, 2009, 12:00:21 AM
I'll try AutoIt if you try Autohotkey  :bg
Title: Re: Autohotkey users here ?
Post by: BlackVortex on May 05, 2009, 03:44:02 AM
But it has less features !  What's the point ?   :'(
Title: Re: Autohotkey users here ?
Post by: mitchi on May 05, 2009, 04:25:57 AM
I have to seriously try AutoIt but Autohotkey really has all the features I need.
I'll try AutoIt with an open mind. If it's better than Authotkey, then that's great.
Title: Re: Autohotkey users here ?
Post by: MichaelW on May 05, 2009, 04:47:19 AM
There is a MASM include file and import library for AutoitX3 in the attachment here:

http://www.masm32.com/board/index.php?topic=9163.0
Title: Re: Autohotkey users here ?
Post by: mitchi on May 05, 2009, 05:39:45 AM
I'm discovering AutoIt and it's a very decent package indeed ;)
I may be able to give a good comparison between Autohotkey and Autoit in a while ;)

AutoIt has a DLL with a C interface or COM interface that you can call from C, Assembly or any language that supports COM. This is nice!
Title: Re: Autohotkey users here ?
Post by: Eddy on May 05, 2009, 07:46:30 AM
I use both AutoIt and AutoHotkey.
AutoIt mostly for (compiled) scripts that I call from a PowerBASIC application and Autohotkey for keyboard shortcuts: for example I type "[u" and Windows Explorer opens my U:\ drive, and simular things.

Kind regards
Eddy
www.devotechs.com - HIME: Huge Integer Math and Encryption library.