Page 1 of 1

Esc problem bot

Posted: Tue Sep 25, 2012 10:15 pm
by Igor02
hi

I have a problem with a bot. when the bot starts it connects with rom, but rom always press the "ESC"-button instead off starting the bot. On another pc the bot works.
there is no error report.
and the bot stucks when it tells it's would be ok
keyboard setting are compared with the other pc and are identically ( default Settings)

Sory for me Bad englisch

German
Sobald ich bot starte, verbindet sich mit rom normal, aber komische weisse in rom druckt der ganzen zeit ESC taste.
Der bot fenster bleibt bei MACRO test : ok
Tatstatur ist auf default.
Hab auch mit englische client probiert.

Auf andere pc bei kolegen geht alles normal, hm
Weist jemand rat ,
danke

Re: Esc problem bot

Posted: Wed Sep 26, 2012 1:27 am
by rock5
I have a solution for that. It will be included in next revision.

For now, do this,

Line 684 of functions.lua is

Code: Select all

							RoMScript("GetKeyboardFocus():ClearFocus()")
Change it to

Code: Select all

							RoMScript("} a = GetKeyboardFocus(); if a then a:ClearFocus() end a={")
and line 57 of player.lua is

Code: Select all

			RoMScript("GetKeyboardFocus():ClearFocus()")
Change it to

Code: Select all

			RoMScript("} a = GetKeyboardFocus(); if a then a:ClearFocus() end a={")

Re: Esc problem bot

Posted: Wed Sep 26, 2012 5:29 am
by Igor02
i changed the two lua datas now i have the following error

...micromacro/rom/rom/classes/player.lua:1: Unexpected symbol near 'ยด'

what should i do now. please help again

Re: Esc problem bot

Posted: Wed Sep 26, 2012 7:17 am
by rock5
The first line of player.lua should look like this

Code: Select all

include("pawn.lua");
You might have done something by mistake or maybe there is an issue with the editor you are using. You should use a proper code editor such as Notepad++.

Re: Esc problem bot

Posted: Wed Sep 26, 2012 10:03 am
by Igor02
it's the same at my lua data but the bot doesn't connect with runes of magic

Re: Esc problem bot

Posted: Wed Sep 26, 2012 11:51 am
by rock5
I thought the question was implied, what editor did you use to edit the file?

Re: Esc problem bot

Posted: Wed Sep 26, 2012 11:59 am
by Igor02
the windows editor

Re: Esc problem bot

Posted: Wed Sep 26, 2012 12:20 pm
by rock5
Try these. If they work, get yourself Notepad++ for editing code. It's free and user friendly. It's basically just a text editor but shows syntax highlighting and saves the files better.

Re: Esc problem bot

Posted: Wed Sep 26, 2012 12:39 pm
by Igor02
thx you it works perfect.