Autoit input not working

01/05/2014 22:52 leelawliet7#1
I am try to simulate some keystrokes using AutoIT but somehow nothing happens. Are they somehow blocking the scripts?

I am just using the Send command in my script.
01/06/2014 10:16 Shane¸#2
does it send the keystrokes to the right process?
01/07/2014 00:27 leelawliet7#3
I think so. I did a mouse click on the application on the task bar, sleep for 2secs and then just use the send function.

MouseClick("Left",887,1063)
Sleep(2000)
Send("s")
01/07/2014 08:17 Shane¸#4
try to find some references related to ControlSend
like this one:
[Only registered and activated users can see links. Click Here To Register...]
01/08/2014 03:02 leelawliet7#5
I think I need to get the control id to use the function but the window info tool couldn't pick up anything on the controls tab. Is there any other way I can get the control id?
01/20/2014 10:32 SCRBoomer#6
Hi,
for example i´m using an Au3 script for open the Fury mode, cuz i did remember many days becoming crazy with this damn solution of WEBZEN hit both Mouse buttons simultaneously.
I´ve had never any problem with using this little helping script.

Keep in mind, never let open the Autoit Edtior and the Gameclient simultaneously, cuz won´t work together. So write ur script, test it sometimes and then after ready and compile open Gameclient again.


Hit spoiler for script example:
08/17/2014 19:27 VitorCornelius#7
Quote:
Originally Posted by leelawliet7 View Post
I think I need to get the control id to use the function but the window info tool couldn't pick up anything on the controls tab. Is there any other way I can get the control id?
Games do not work like that, there are no controlls at all on the whole game, what u can trigger with control ID.

You should put your send key codes in a function, then call the function with a hotkey. It will work for sure.

Try this for example:

HotKeySet("{F5}", "Run_Script")

while 1
sleep(100)
wend

Func Run_Script()
MouseClick("Left", 887, 1063)
Sleep(2000)
Send("s")
endfunc

It will run your mouse click and s button press imitation on a curent window what u are useing. If you are useing window mode and your window size is lower then your system screen resolution, it will not work, cause the coordinates in this script are used on system screen. It mean, it is clicking on your 887x1063 coordinate on your monitor screen and not on your game screen. To solve this is easy, just use the Help file, it will offer the solution for it as an alternative option bottom of examples in help file. Read more carefuly.

If u want u can use loop in your function, cause in this example it will run only once after u pressed F5 button (u can change this button ;)), but it will run again if u press it again. For exit you can make a new function like this:

HotKeySet("{F6}", "Exit_from_My_Script")

Func Exit_from_My_Script()
Exit
Endfunc
03/16/2015 20:36 ElFrage#8
well seems that i have to open the storage