Author Topic: How to use a 5-button mouse with ai:wars  (Read 1149 times)

Offline ZarahNeander

  • Newbie Mark III
  • *
  • Posts: 25
How to use a 5-button mouse with ai:wars
« on: July 10, 2009, 04:05:10 pm »
get autohotkey from http://www.autohotkey.com/. It's free, it's great, it can do anything except cleaning my friggin kitchen.

Copy && paste the code snippet in a file 'aiawars.ahk'. Adjust the 'send' statements to your liking. The keys can be found in the help file under 'hotkeys'. Optionally delete the two comments, now 'z' and 'y' are swapped (non-US keyboards). Remember to hit 'z' when scrapping things..

Code: [Select]
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetTitleMatchMode, 3
#IfWinActive, AI War

; lower mouse button
XButton1::
Send, p
return
; upper mouse button
XButton2::
Send, {Tab}
return

/* delete this line to swap  y/z on non US-keyboards
y::Send {z Down}
y UP::Send {z UP}

z::Send {y Down}
z UP::Send {y UP}
/* delete this line to swap  y/z on non US-keyboards

Double-click the aiwars.ahk file. Thats it.

Hope someone finds it helpful

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: How to use a 5-button mouse with ai:wars
« Reply #1 on: July 10, 2009, 05:45:09 pm »
Great tip!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!