Jump to content

Send Keys to an inactive window


Harusal
 Share

Recommended Posts

how would i use that to send keys to inactive window? the game is called knight online it's windows name is Knight OnLine Client can you give me an example on how that would work please?

i don't know if you need this or not but maybe it will help:

Posted Image

Link to comment
Share on other sites

I'm an old KO player myself so I know it won't work with ControlSend(), however it works with normal Send() but you can't have the window minimized.

but the game no longer has hack protection so many stuff that didn't work before are working now

Link to comment
Share on other sites

I havn't played the game for almost two years now but try to send something with ControlSend() and then use AutoIt Window tool to see if you can catch the keystrokes, if they appears as "hidden" nothing has changed for more then two years.

The correct syntax would be ControlSend("Knight OnLine Client", "", "Edit1", "This is some text")

Link to comment
Share on other sites

Posted Image

Hi,

Your window is in flash ?...Never mind, you can just use :

ControlSend("Knight OnLine Client","","","your text")
 $xy=Mousegetpos()
 ControlClick("Knight OnLine Client","","","left",1,$xy[0],$xy[1])

You can of course use others Control functions.

2nd option if you want to write in some edits :

WinActivate("Knight OnLine Client","")
WinWaitActive("Knight OnLine Client","",2)
Send("Text in Edit1")
Send("{TAB}")
Send("Text in Edit2")
Edited by FireFox
Link to comment
Share on other sites

Hes looking to send keys, not send a string of text to type. Keys = z (target) 1-9 (skills)

edit1 is a notepad control, i do not believe it will work with this game.

For sendkeys just simply

WinActivate("Knight OnLine Client","")
 WinWaitActive("Knight OnLine Client","",2)
 Send("{1}{2}{3}{A}{B}{C}");.....

If you want to send keys to window always inactive try ControlSend ...

Edited by FireFox
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...