Page 2 of 2
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Sun Mar 13, 2011 5:36 am
by botje
- d303fix
- adv auction house
- adv questbook
- fusion
- Guildpanel
- ingame functions
- Kcombo
- Lootfilter++
- Monstercard Tooltip
- pbInfo
- PetAutoEvent
- PlantCare
- QuickDeleteQuestItem
- Streamline
- UBL
- WCombo
- WowMap
- WowMapInstances
added the code, ill report back with results.
Botje
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Sun Mar 13, 2011 9:01 am
by botje
got 0 as value, all the time.
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Sun Mar 13, 2011 9:49 pm
by rock5
botje wrote:got 0 as value, all the time.
Of course it'll be '0'. In that 'if' statement it will always be '0'. Doh! Sorry.

Maybe a better question would be if the edit box focus address is correct for your system. If you have Cheat Engine you could easily check it by seeing if address A0D784 changes when an edit box has focus. If not I'll think of another way to check it after you answer the questions below.
I thought maybe a hidden frame has focus so maybe escape wouldn't work but I've been able to test for that and it still works. What I suspect is happenning is something is getting the keyboard focus that does't close when you press escape but I've got no idea how tell what.
I even tried adding all the addons you listed(except for wcombo and kcombo, couldn't find them) and seeing if it happens but it still worked.
A question comes to mind though. Do you get that message as soon as the bot starts or after it's been running for awhile? Also, have you tried creating new characters?
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Sun Mar 13, 2011 10:37 pm
by rock5
For an unrelated issue, I changed character and started the bot. I still hade that print message and it printed '0's and I still had Cheat Engine running and it showed the edit box address was '0'. So it looks like the initial value of the memory address is '0' after the character is changed. Pressing <Enter> then <Escape> fixed it. I'll look into a fix for this.
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Mon Mar 14, 2011 5:57 am
by rock5
Could you try this please.
Delete the 2 'if statements in the RoMScript function (or comment them out).
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
A bit lower down find these lines
Code: Select all
if( deltaTime(getTime(), startWaitTime) > 800 ) then
tryagain = true
break
end;
change to
Code: Select all
if( deltaTime(getTime(), startWaitTime) > 800 ) then
if memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0 then
keyboardPress(settings.hotkeys.ESCAPE.key);
end
tryagain = true
break
end;
See how that goes.
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Mon Mar 14, 2011 4:39 pm
by botje
ok, added that last part you wrote up, and...
all is ok now
no more problems ^^
botje
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Mon Mar 14, 2011 6:42 pm
by rock5
botje wrote:ok, added that last part you wrote up, and...
all is ok now
no more problems ^^
botje
I'll change it on my next commit.
Re: An Edid Box in game has focus. Pleas close it bevor re..
Posted: Tue Mar 15, 2011 10:18 pm
by rock5
Fixed in rev 581.