Getting Label/Button or whatever Texts from UI

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

z-roice
a lesser mummy
a lesser mummy
Posts: 62
Joined: Sun Aug 08, 2004 5:25 am

Getting Label/Button or whatever Texts from UI

Post by z-roice » Sun Sep 05, 2004 8:52 am

Heya I was wondering if there is a way to read LabelTexts or so in a macro.

For example I wanna make an automatic no-drop item loot confirmation but depending on what the text inside the "ConfirmationDialogBox" as it is used for multiple confirmation questions.

Generally: How can i read infos from UI (dynamic windows loaded atm) and/or UI Files (static windows).

thx

Z-Ro

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sun Sep 05, 2004 8:56 am

Why's there gotta be one every damn day? :(

z-roice
a lesser mummy
a lesser mummy
Posts: 62
Joined: Sun Aug 08, 2004 5:25 am

Post by z-roice » Sun Sep 05, 2004 9:26 am

lol the crazybard again :P - well bro I looked in search and the documentation I dont wanna post unneeded questions but Im not perfect so i may overlooked something. If so wouldnt it be better to fill me in or tell me where to look instead of mourning?

I may not have many posts yet but that doesnt mean I'm a bad guy =)

peace

Z-Ro

:twisted:

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sun Sep 05, 2004 10:00 am

hrm, http://www.macroquest2.com/phpBB2/viewtopic.php?t=8567

isn't very helpful, is it? I did a wee bit of research, and it seems that some dialog boxes just aren't cooperative, or we're all too stupid to figure out the right syntax to get at them.

I'm on my way out, but I'll poke around at this a bit later today if nobody else has any suggestions.

z-roice
a lesser mummy
a lesser mummy
Posts: 62
Joined: Sun Aug 08, 2004 5:25 am

Post by z-roice » Sun Sep 05, 2004 10:07 am

bah!

well does it work with other UI labels than from DialogBox maybe?

Problem with dialogbox is that is is dynamically created i think

Code: Select all

	<StaticText item ="CD_StaticText1">
		<ScreenID>Text1</ScreenID>
		<!--<Font>3</Font>-->
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>5</X>
			<Y>5</Y>
		</Location>
		<Size>
			<CX>96</CX>
			<CY>100</CY>
		</Size>
		<Text>UTF16:00410042AC01AC02AC03AC04AC05</Text>
		<TextColor>
				<R>255</R>
				<G>0</G>
				<B>0</B>
		</TextColor>
		<NoWrap>false</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</StaticText>
<Text>UTF16:00410042AC01AC02AC03AC04AC05</Text>

Z-Ro

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sun Sep 05, 2004 10:25 am

well does it work with other UI labels than from DialogBox maybe?
Sure, as an example

Code: Select all

${Window[AdventureRequestWnd].Child[AdvRqst_RequestButton].Text.Equal["Leave Adventure"]}
works as an "am I in an LDon?" test. Once the dialogue box is created, it SHOULD have a window label and somewhere down the chain a child you can query for the text you want. :/

z-roice
a lesser mummy
a lesser mummy
Posts: 62
Joined: Sun Aug 08, 2004 5:25 am

Post by z-roice » Sun Sep 05, 2004 10:27 am

cool! thanks i didnt know how to access the stuff all i found was using /notify for cliking stuff! That will help i think.

Z-Ro :cool: