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 has no effect on ahk_class X3DKernel window ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ChronoDragon



Joined: 08 Jan 2007
Posts: 3

PostPosted: Mon Jan 08, 2007 6:01 am    Post subject: script has no effect on ahk_class X3DKernel window ? Reply with quote

the script works on other programs but not this one...

or am i too green Confused


Last edited by ChronoDragon on Mon Jan 08, 2007 12:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 08, 2007 10:38 am    Post subject: Reply with quote

I will suppose ank_class is just a typo in the subject...
I see 3D in the class. If that means that the window uses Direct3D, it can be indeed hard to automate. Gamers in this forum might have some hints. The usual problem is by sending keys to the program, there are various Send modes to experiment with.
Indicating the name of the program might help too...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
ChronoDragon



Joined: 08 Jan 2007
Posts: 3

PostPosted: Mon Jan 08, 2007 12:33 pm    Post subject: Reply with quote

sry , its ahk_class typo on my part

im using this

`::
Loop
{
GetKeyState, InsertState, Insert, Q
if InsertState = Q
break
#IfWinActive ahk_class X3DKernel
SetKeyDelay, 500, 30, Play
SendPlay 7
Sleep 100
SendPlay 8
Sleep 100
Return
}
program is 9Dragons....
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 08, 2007 1:01 pm    Post subject: Reply with quote

Can't comment much, except that #IfWinActive ahk_class X3DKernel should be before the hotkey.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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