Autoit blocked? or missing something? - Archlord2

08/02/2014 19:12 Broke132#1
Dear all,

I'm exploring the possibilities of autoit, but i want to try it on Archlord2. The easy part is activating the gamescreen.
But then nothing happens

E.g, scrolling between enemies is made possible by TAB key, so my script is like:

Sleep (1000)
Send ("{tab}")
Sleep (2000)
Send ("{tab}")
etc...

Somehow, nothing happens in-game. If i hit the tab for real it works. Same problem with attack key "number 1 key" (the one with & and | on it). I programm it, nothing happens.

Now is my question: am i missing something here? or does XIGNCODE3 block autoit input?

In case of the latter, can i bypass it somehow?

Thanks in advance for your anwsers

Kind regards,

B

Can anyone of you lease confirm this?

This is the code i'm trying out. It activates the screen on top. But doesn't open the menu that is attached to the 'C' button

Quote:
WinActivate ("Archlord2")

While 1
Sleep (2000)
Send ("{c}")
Sleep (2000)

WEnd
08/09/2014 18:02 Broke132#2
Here i am again, i finally made it possible to send keys to the game...
But i get two problems:

1) It doesn't always work to send keys and if it works it takes a lot of time till it get's send anyway
2) I'm trying it to make it work with a timer, but again it fails to send the keystroke

See piece of coding
Code:
$timer1 = TimerInit ()

   While 1
	  $timed1 = TimerDiff ($timer1)
		 If $timed1 > 1200 Then
		 ControlSend ("Archlord2","","","{'}")
		 $timer1 = TimerInit ()
		 EndIf
   Wend
What is wrong with this? The skill is placed on number 4 ('-key), is this possibly the problem? Any help?

I tried it also the other way around with the code below. It works, but he opens only 1 time "C" and it takes a lot longer then 2000ms... What could be the cause, any advice?

Code:
WinActivate ("Archlord2")

While 1

   Sleep (2000)
   Send ("{C}")

WEnd
08/09/2014 20:03 butter123#3
you save the timediff in the var you used for the timer, so he would never reach 1200 ms. (and just do weird stuff)
you have to implement sth like do sleep until timerdiff > 1200. after this send key and reset timer.

winactivate(...)
while 1
$timer = Timerinit()
Do
Sleep(1)
until Timerdiff($timer) > 2000
Send("c")
wend