| View previous topic :: View next topic |
| Author |
Message |
ChronoDragon
Joined: 08 Jan 2007 Posts: 3
|
Posted: Mon Jan 08, 2007 6:01 am Post subject: script has no effect on ahk_class X3DKernel window ? |
|
|
the script works on other programs but not this one...
or am i too green 
Last edited by ChronoDragon on Mon Jan 08, 2007 12:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jan 08, 2007 10:38 am Post subject: |
|
|
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 |
|
 |
ChronoDragon
Joined: 08 Jan 2007 Posts: 3
|
Posted: Mon Jan 08, 2007 12:33 pm Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jan 08, 2007 1:01 pm Post subject: |
|
|
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 |
|
 |
|