Justyn Guest
|
Posted: Wed Mar 10, 2010 6:25 am Post subject: Script suddenly not working in Win7 |
|
|
Hello, I've been running this script for a long time, recently switched to Win7 and now it's not working in my games, works fine on the desktop though. Any Ideas?
| Code: | #MaxHotkeysPerInterval 999999
#SingleInstance force
SetKeyDelay -1,-1
Process, Exist, wow.exe
If Not ErrorLevel
Run, D:\Games\World of Warcraft\wow.exe
keylist =
(
q,{F5}
e,{F6}
r,{F7}
f,{F8}
z,{F9}
x,{F10}
c,{F11}
v,{F12}
)
SetTimer, check, 50
SetTimer process_watcher, 5000
return
check:
If GetKeyState("XButton1")
{
sent =0
Loop, parse, keylist, `n, `r
{
stringsplit, part, A_LoopField, `,, %A_Space%
Hotkey, %part1%, DoNothing, on
If GetKeyState(part1, "P")
{
sent = 1
SendInput, %part2%
break
}
}
if (sent = 0)
SendInput, 56789
}
else
Loop, parse, keylist, `n, `r
{
stringsplit, part, A_LoopField, `,
Hotkey, %part1%, DoNothing, off
}
DoNothing:
return |
|
|