AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script suddenly not working in Win7

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Justyn
Guest





PostPosted: Wed Mar 10, 2010 6:25 am    Post subject: Script suddenly not working in Win7 Reply with quote

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
Back to top
Michael@Oz



Joined: 08 Nov 2009
Posts: 233
Location: Canberra Oz

PostPosted: Wed Mar 10, 2010 7:22 am    Post subject: Reply with quote

Do a search on Window 7, there are some posts that say how ahk needs to be run in W7.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group