Jump to content

The scripted commands are blocked


someone1
 Share

Recommended Posts

In knight online, the scripted commands are somehow blocked or the keycodes in knight online are different than winapi ones, i am wondering if there is a way to unblock the autoit commands and be able to use them in knight online.

the commands work in notepad i have checked so it IS knight online, how could i fix this ?

Link to comment
Share on other sites

i don't see why just send wouldn't work.

I played Knight Online for about 2 weeks, if i remeber correctly you had to press enter first to type.

also make sure Knight Online has the focus when you run your script. so use something like:

WinActivate("Knight Online")
WinWaitActive("Knight Online")
sleep(1000)
;i prefer to sleep after to make sure the window is really active.
Send("{ENTER}");If enter is needed to type
Send("This is a test")
Send("{ENTER}")

when you run your script it should restore Knight Online and press enter to type and type the message "This is a test" and press enter to send it.

hope that helps. if that works you should be able to send mouse clicks as well.

Edited by Bi0haZarD
Link to comment
Share on other sites

ControlSend("Knight OnLine Client", "", "Edit1", "c")

can send c into the chatbox

chatbox classnamenn=edit1

but on normal game theres nothing

how owuld i use title/text only?

ControlSend("Knight OnLine Client", "", "", "c")

?

Edited by someone1
Link to comment
Share on other sites

to controlsend in notepad

i have to use:

ControlSend("Untitled - Notepad", "", "Edit1", "c")

in the KO game i can also use "Edit1" part to macro for the chat only, Edit1 doesnt work for normal game and blank ( ControlSend("Untitled - Notepad", "", "", "c") ) doesnt work in game or notepad

any ideas?

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...