Meszka Trusted Mod
Number of posts : 30 Age : 32 Location : Poznan, Poland Humor : of sense Registration date : 2008-04-23
| Subject: Tourney modding made easier with AutoHotkey Sun Apr 27, 2008 6:26 pm | |
| Autohotkey is a script based macro program. I found it to be pretty usefull while hosting my tourney. Here are some very simple scripts I made, feel free to use and modify them if you like They should work both in W:A and ProSnooper, but i reccomend ProSnooper Announcement hotkey
Probably the simplest script you can imagine. Press a hotkey (here its Win+a) and it sends out your announcement. - Code:
-
announcement = /me \gMy announcment.
#a:: KeyWait LWin KeyWait RWin SendInput, %announcement%{Enter} return Pairings PrinterIntended to work with the Pairing Tool from Worms Olympics. Takes your generated pairs and prints them out line by line so you don't have to copy & paste each line manually. The pairings must be in your clipboard, so copy them from the pairing tool first. When you want to start printing, press Win+P. - Code:
-
#p:: KeyWait LWin KeyWait RWin FileDelete, txt\pairs.txt FileAppend, %clipboard%, txt\pairs.txt FileAppend, %clipboard%`r`n================`r`n, txt\history.txt Loop, read, txt\pairs.txt { Loop, parse, A_LoopReadLine, %A_Tab% { Send /me \y%A_LoopField%{Enter} sleep 2000 } } SoundBeep, 100, 200 SoundBeep, 500, 200 return When its done it will make a nice noise out of the PC speaker (yay sounds so retro). This also creates 2 text files: pairs.txt - the last set of pairs, overwritten after each printing history.txt - all of your printed pairs, doesnt get overwritten, you can clear it manually before your next tourney Here's a zip with both scripts Once you have AutoHotkey installed, just double click a script to run it. It's best to run worms_help.ahk because it includes both of the scripts described above. Edit announcement.ahk to change the announcment text. Hope this post will be somewhat usefull... I'm a bit tired now so I might improve it later.
Last edited by Meszka on Sun Apr 27, 2008 7:00 pm; edited 3 times in total | |
|
GreeN Cup Moderator
Number of posts : 199 Age : 35 Location : England! Humor : None Registration date : 2008-01-13
| Subject: Re: Tourney modding made easier with AutoHotkey Sun Apr 27, 2008 6:45 pm | |
| Great post mate! Very useful scripts indeed | |
|
Rioter WebMaster
Number of posts : 242 Age : 32 Location : YouQue (UK) Job/hobbies : Web Designer / Student Humor : Somewhat funny! Registration date : 2008-01-08
| Subject: Re: Tourney modding made easier with AutoHotkey Sun Apr 27, 2008 6:47 pm | |
| Looks good! So I assume you use that program to work it. Nice..... | |
|
Meszka Trusted Mod
Number of posts : 30 Age : 32 Location : Poznan, Poland Humor : of sense Registration date : 2008-04-23
| Subject: Re: Tourney modding made easier with AutoHotkey Sun Apr 27, 2008 6:58 pm | |
| - r1ot3r wrote:
- Looks good! So I assume you use that program to work it.
Yep, I added a download link so you just need to install AutoHotkey and run the script you want. | |
|
Sponsored content
| Subject: Re: Tourney modding made easier with AutoHotkey | |
| |
|