Page 1 of 1

Getting Label/Button or whatever Texts from UI

Posted: Sun Sep 05, 2004 8:52 am
by z-roice
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

Posted: Sun Sep 05, 2004 8:56 am
by Cr4zyb4rd
Why's there gotta be one every damn day? :(

Posted: Sun Sep 05, 2004 9:26 am
by z-roice
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:

Posted: Sun Sep 05, 2004 10:00 am
by Cr4zyb4rd
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.

Posted: Sun Sep 05, 2004 10:07 am
by z-roice
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

Posted: Sun Sep 05, 2004 10:25 am
by Cr4zyb4rd
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. :/

Posted: Sun Sep 05, 2004 10:27 am
by z-roice
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: