The key is being sent to the window, but not the correct widget. That is to say that it is working, just not in the way you had intended. It's just part of how the whole window-message system works.
hmm, I see. So, is there a way to solve it?
because need it for chat channel in game, when I use shotcut key example 'S' using key.VK_S it's working, the problem when use key for chat it doesn't happen.
Not at this time, but it might be added very soon. The problem is going to be attaching input to different controls. Or, actually, knowing which control is which.
Edit: Actually, less work than I thought it would be. Download the latest 1.0 release here. Now, all you need to do is attach to the correct control. For example, to type stuff into Notepad, attach like this:
Oh, you're right. I've fixed my previous example in case anyone else reads this thread in the future. Other findWindow* functions will be updated after more testing.
HI admin
i got same problem in metin2.
when i attach(win) , keyboardPress cant working.
I try findWindow("METIN2","contolID"); but there is no control in metin2
THX for ADMIN`s reply.
the problem is when the game client on the top , the MicroMacro is working.
if not on the top. it will not work. something wrong with my code ?
the game METIN2 DE-SEVER.
==================================================
Sat Mar 14 09:52:38 2009 : METIN2 Bot Version 0.10
Sat Mar 14 09:52:44 2009 : Execution success
Sat Mar 14 09:55:51 2009 : Executing script 'bot.lua'
==================================================
if i dont attach() , keysend is working . when attach() there is no log and
no key can be sent to game client.
there is no gamegurad or hackshield in the game METIN2 .
Could be. Attached input doesn't work with every game. It really just depends on what input routines the game uses. I could have swore attached input worked with Metin, but perhaps I tested it with a different version than what you are playing.
I don't know what you just said, and I'm not even going to try to decipher it. If attached input doesn't work, just use 'normal' input. That's about all I can say.
hlgnc wrote:hi admin
the game i test : metin2 DE-sever. but u means just metin not metin2
Das ist nun völlig egal ob er ausversehen Metin oder Metin2 geschrieben hat.
Er wird sich auch nicht das Spiel runterladen um dir einen Kuchen zu backen, dass musst du schon selber machen.
Die controlID musst du selber herrausfinden.
Administrator wrote:I don't know what you just said, and I'm not even going to try to decipher it. If attached input doesn't work, just use 'normal' input. That's about all I can say.
He was confused because you had wrote Metin, instead of Metin2. Don't ask me, I didn't understood why he asked it too.
But I know that a few months ago, Attached input worked with Metin.