Page 1 of 2

An Edid Box in game has focus. Pleas close it bevor re....

Posted: Wed Mar 09, 2011 5:47 am
by schwarzepeter
An Edid Box in game has focus. Pleas close it bevor restarting the bot. :?: :?: :?: i try to use the bot after some weeks
svn updated bot svn/checkout updated if i try to start bot ore try to make a waypoint i get this error all time anyone can help me pls :?:

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 7:25 am
by MinMax
I know this problem. But only on my laptop DELL LATITUDE i have the edith box error.

In my company i copied rom and micromacro on three differnt modells of DELL laptops, and always the same error message.
I checked also a Samsung and a LG laptop. On this it works OK. And on every PC i have no troubles.

New in the rev 577 of rom-functions was a check for an opened edit box. And i dont know why this isn´t loved by the Dell´s.

I deleted this check-function and the result was an uncontrolled opening of the main menu.

On my old DELL-Egg-Farm-laptop i took the old "functions.lua r574" and it works.
( code.google.com/p/rom-bot/source/browse/trunk/rom/functions.lua?r=574 )

The r574 isn´t a real solution for you, but i think you are able to make the bot running.

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 11:40 am
by botje
i personally think its related to a addon.

not sure though xd

i have it too, i just commented out the code in functions...

Botje

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 1:37 pm
by MinMax
Was also in my mind. But with a formated harddisk, new Windows, new downloaded runes of magic (without addons ) and micromacro ??

At home i have 3 PCs and two laptops (Samsung and Dell ). In my office i have two own PCs and 50 technicians with laptops from Dell or other. For me this failure exists only in combination with Dell software/hardware.

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 2:12 pm
by botje
problem is, i dont have dell, and still have the error >.<

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 5:08 pm
by Administrator
Can you provide more information? Specifically, what OS is running on which computer you are trying this on?

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Wed Mar 09, 2011 6:11 pm
by botje
tested windows 7 x32 and x64

both multiple cores, 1 duocore, other a I3

Botje

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Thu Mar 10, 2011 1:04 am
by schwarzepeter
Windows xp 32 dual core amd no dell pc bot works bevor last patch of rom if i try start bot or creat path it give the error and ingame it open the main menü no new addons delet macro creat a new one try reversion update and so one i got the bot most time to work but this error is new for me sorry for my bad english :s

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 8:24 am
by jammer
I'm on the PH server and I get this problem when I use the newer BOT & REV versions eventhough I''ve modified the keyboard settings.

Atm my bot doesn't run very smoothly and I've given up on which BOT and REV version to use :lol:

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 9:25 am
by rock5
To get rid of this error all you should need to do is remove these lines in the RoMScript function in functions.lua.

Code: Select all

	-- Check that an edit box in game doesn't have focus
	if memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0 then
		keyboardPress(settings.hotkeys.ESCAPE.key);
	end

	-- Check if edit box still has focus
	if memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0 then
		error("An edit box in game has focus. Please close it before restarting the bot.",0)
	end
An idea occurs to me though, maybe all it needs is a pause between the 2 if statements. Could someone try adding a yrest?

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 9:28 am
by botje
ill try, what exactly do ya want me to put there?

Botje

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 9:31 am
by rock5
Try "yrest(500)". That should do. If it does work, we can always try to find a lower value later.

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 9:33 am
by botje
k, that works, ill try lowering it to 400 and so on

Botje

lol, and right now bot decides to work with or without it xd

let me see if i can get it to fuck up >.<

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 9:44 am
by rock5
It may be playing up when you put too much stress on the system. Maybe now while you are testing you are doing only the one thing so no stress? I don't see a problem with having a long pause though. I could put it in the first if statement so it only executes when the edit box actually has focus not every time RoMScipt is called.

I'm still a bit confused though. If no edit box had focus then it shouldn't have had that error in the first place.

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Fri Mar 11, 2011 5:01 pm
by botje
k, it makes no diffference im afraid :(

tested, still fails >.<

Botje

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Sat Mar 12, 2011 12:16 am
by rock5
botje wrote:k, it makes no diffference im afraid :(

tested, still fails >.<

Botje
You said it was working. What did you do to make it 'fuck up' again?

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Sat Mar 12, 2011 1:19 pm
by botje
switchedd a few chars, thats all

when i said it was working, was because it just plain worked, with or withuot the yrest >.<

botje

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Sat Mar 12, 2011 1:40 pm
by rock5
If it only stuffs up with certain characters, maybe there is a problem with the profile you use with them or maybe there are corrupt files in the characters folder in your "Documents" folders (ie. "My Documents/Runes of Magic/ CharacterName").

Is it with only certain characters that it stuffs up?

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Sat Mar 12, 2011 4:37 pm
by botje
nope, seems random :/

Re: An Edid Box in game has focus. Pleas close it bevor re..

Posted: Sat Mar 12, 2011 10:07 pm
by rock5
botje wrote:nope, seems random :/
I think the next step is I need to know what exactly is the value of the editbox memory address. Maybe that can give me a clue on how to fix it.

Change the following lines in functions.lua line 524;

Code: Select all

	-- Check if edit box still has focus
	if memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0 then
		error("An edit box in game has focus. Please close it before restarting the bot.",0)
	end
to

Code: Select all

	-- Check if edit box still has focus
	if memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0 then
		print("editBoxHasFocus_address value =",memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) or "nil")
		error("An edit box in game has focus. Please close it before restarting the bot.",0)
	end
Then the next time you get the error, see what the last value was.

By the way, how many in-game addons do you use? Is it possible to get a list?