Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalLatest imagesSearchRegisterLog in

 

 Tourney modding made easier with AutoHotkey

Go down 
3 posters
AuthorMessage
Meszka
Trusted Mod
Trusted Mod
Meszka


Male
Number of posts : 30
Age : 32
Location : Poznan, Poland
Humor : of sense
Registration date : 2008-04-23

Tourney modding made easier with AutoHotkey Empty
PostSubject: Tourney modding made easier with AutoHotkey   Tourney modding made easier with AutoHotkey EmptySun 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 Smile
They should work both in W:A and ProSnooper, but i reccomend ProSnooper Smile

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 Printer
Intended 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
Back to top Go down
http://meszka.yoyo.pl
GreeN
Cup Moderator
Cup Moderator



Male
Number of posts : 199
Age : 35
Location : England!
Humor : None
Registration date : 2008-01-13

Tourney modding made easier with AutoHotkey Empty
PostSubject: Re: Tourney modding made easier with AutoHotkey   Tourney modding made easier with AutoHotkey EmptySun Apr 27, 2008 6:45 pm

Great post mate! Very useful scripts indeed Very Happy
Back to top Go down
Rioter
WebMaster
WebMaster
Rioter


Male
Number of posts : 242
Age : 32
Location : YouQue (UK)
Job/hobbies : Web Designer / Student
Humor : Somewhat funny!
Registration date : 2008-01-08

Tourney modding made easier with AutoHotkey Empty
PostSubject: Re: Tourney modding made easier with AutoHotkey   Tourney modding made easier with AutoHotkey EmptySun Apr 27, 2008 6:47 pm

Looks good! So I assume you use that program to work it.

Nice.....
Back to top Go down
http://www.r1ot3r.co.nr
Meszka
Trusted Mod
Trusted Mod
Meszka


Male
Number of posts : 30
Age : 32
Location : Poznan, Poland
Humor : of sense
Registration date : 2008-04-23

Tourney modding made easier with AutoHotkey Empty
PostSubject: Re: Tourney modding made easier with AutoHotkey   Tourney modding made easier with AutoHotkey EmptySun 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.
Back to top Go down
http://meszka.yoyo.pl
Sponsored content





Tourney modding made easier with AutoHotkey Empty
PostSubject: Re: Tourney modding made easier with AutoHotkey   Tourney modding made easier with AutoHotkey Empty

Back to top Go down
 
Tourney modding made easier with AutoHotkey
Back to top 
Page 1 of 1
 Similar topics
-
» WxW Tourney Map
» T17 Tourney
» WXW Tourney : 01/03/08
» CTF tourney
» WxW Tourney

Permissions in this forum:You cannot reply to topics in this forum
 :: General Chat :: General Chat-
Jump to: