Page 1 of 1

keyboardPress releases other keys ?

Posted: Sat Nov 07, 2009 2:31 pm
by mike34
hi

i have a problem in runes of magic. i coded some custom scripts that press various keys to control skills etc. however i have the problem when i use W A S D keys for moving my character while doing that my script cast a skill with keyboardPress(key.VK_4) for example, my char stops moving... i did some debugging now and found out that the W key isnt pressed (keyPressed returns false) after micromacro pressed the "4"-button. this however just happens sometimes. its still annoying. i hammered the 4 key manually while moving my char but this didnt make him stop.

does anyone know a cause for this or even a solution ?

thx in advance

Re: keyboardPress releases other keys ?

Posted: Sat Nov 07, 2009 5:34 pm
by Administrator
It is a known problem. It is because of how RoM handles input. Are you using MicroMacro 1.0 beta 6 or 7?

Re: keyboardPress releases other keys ?

Posted: Sun Nov 08, 2009 5:41 am
by mike34
i am using beta 7. if there is a workaround i will be pleased if you can tell me. already tried to remember the current state of movement before sending a key and restoring it after that but this didnt fix it properly. it fixed the stop thing but raised other problems

Re: keyboardPress releases other keys ?

Posted: Sun Nov 15, 2009 11:15 am
by mike34
so ? is there anything that can be done about this issue ? when i press the movement keys and hammer other "hotkeys" manually i dont get this interruptions. whats so different if keypress is initiated programmatically ?

Re: keyboardPress releases other keys ?

Posted: Mon Nov 16, 2009 3:29 am
by Administrator
Who knows. The input code for ROM is very poorly done. It's like how half the time mouse clicks don't go through at all. Without seeing their full source, I can only guess at the cause of it.

Can you provide an example of the code that you are using that gives this problem?