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

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

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

#21 Post by botje » Sun Mar 13, 2011 5:36 am

  • 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

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

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

#22 Post by botje » Sun Mar 13, 2011 9:01 am

got 0 as value, all the time.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#23 Post by rock5 » Sun Mar 13, 2011 9:49 pm

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. :oops: 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?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#24 Post by rock5 » Sun Mar 13, 2011 10:37 pm

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#25 Post by rock5 » Mon Mar 14, 2011 5:57 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

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

#26 Post by botje » Mon Mar 14, 2011 4:39 pm

ok, added that last part you wrote up, and...

all is ok now :)

no more problems ^^

botje

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#27 Post by rock5 » Mon Mar 14, 2011 6:42 pm

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#28 Post by rock5 » Tue Mar 15, 2011 10:18 pm

Fixed in rev 581.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests