Jump to content


Problem in creating a switcher


  • Please log in to reply
2 replies to this topic

#1 JaunsDraugs

JaunsDraugs
  • Guests

Posted 11 July 2012 - 02:55 PM

WinWaitActive, Diablo III, 
MouseClick, right,  1696,  639
Sleep, 100
MouseClick, right,  1752,  639
Sleep, 100
MouseClick, right,  1796,  628
Sleep, 100
MouseClick, right,  1811,  698
Sleep, 100
MouseClick, right,  1801,  751
Sleep, 100
MouseClick, right,  1757,  724
Sleep, 100
MouseClick, right,  1705,  727
Sleep, 100
MouseClick, right,  1659,  729
Sleep, 100
MouseClick, right,  1701,  807
Sleep, 100
MouseClick, right,  1746,  828
Sleep, 100
MouseClick, right,  1791,  795
Sleep, 100
Send, {ALTDOWN}
MouseClick, right,  1794,  849
Sleep, 100
Send, {ALTUP}

Basically this is all the script, the only way i found it to work is if i start the Script directly from desktop, it switches flawlessy, just the way i wanted, however the problem is, that i would like to bind all of those actions to a 1 button, rather than script only working when starting the program, i would like the script to be tooglable by 1 button, what kinda code should i input? Thank you for help, beforehand.

#2 MasterFocus

MasterFocus
  • Moderators
  • 4126 posts

Posted 11 July 2012 - 04:53 PM

<!-- m -->http://www.autohotke...ocs/Hotkeys.htm<!-- m --> :?: :?: :?:

#3 kalik

kalik
  • Members
  • 24 posts

Posted 11 July 2012 - 06:47 PM


Num0:: ; or whatever other key you want from http://www.autohotkey.com/docs/KeyList.htm
MouseClick, right,  1696,  639
Sleep, 100
MouseClick, right,  1752,  639
Sleep, 100
MouseClick, right,  1796,  628
Sleep, 100
MouseClick, right,  1811,  698
Sleep, 100
MouseClick, right,  1801,  751
Sleep, 100
MouseClick, right,  1757,  724
Sleep, 100
MouseClick, right,  1705,  727
Sleep, 100
MouseClick, right,  1659,  729
Sleep, 100
MouseClick, right,  1701,  807
Sleep, 100
MouseClick, right,  1746,  828
Sleep, 100
MouseClick, right,  1791,  795
Sleep, 100
Send, {ALTDOWN}
MouseClick, right,  1794,  849
Sleep, 100
Send, {ALTUP}
return
Pressing Numpad 0 will activate the routine.