Macro Toolworks Products Discussion Forums :: Suggestions & Bug Reports
Welcome Guest   
 Subject :message window2.. 12-12-2010 12:46:43 
hugblue@hotmail.com
Joined: 13-10-2010 01:09:07
Posts: 100
Location: sweden
when i use message windows for info.. like :

<msg>(100,100,"message here.","window1",0,0,0)

- - -

i need an option.

so i can use an if command in the window, so different conditions effect what should
be shown in the output.

something like.

- - -

tekst 0

if a=1
type (tekst 1)
endif

if a=2
type (tekst 2)
endif

tekst 3

- - -
but it would be cool if the IF could be used in the message display options.

hugblue
IP Logged
 Subject :Re:message window2.. 14-12-2010 09:48:16 
petr
Joined: 15-10-2009 11:48:52
Posts: 152
Location
Hello,

you might want to use <form....> commands to achieve this. Try this example and see if it is what you need:


<cmds>

<form_item>("form1","What is your option?","TEXT","","")
<form_item>("form1","Option 1","BUTTON","","vButton1")
<form_item>("form1","Option 2","BUTTON","","vButton2")
<form_item>("form1","Option 3","BUTTON","","vButton3")
<form_show>("form1","Select option","shell32.dll",0,,0,,)

<if>("vButton1==YES")
<msg>(-100,-100,"Option 1","Message",1,0,0)
<endif>

<if>("vButton2==YES")
<msg>(-100,-100,"Option 2","Message",1,0,0)
<endif>

<if>("vButton3==YES")
<msg>(-100,-100,"Option 3","Message",1,0,0)
<endif>
IP Logged
 Subject :Re:message window2.. 14-12-2010 14:45:33 
hugblue@hotmail.com
Joined: 13-10-2010 01:09:07
Posts: 100
Location: sweden
nope its not that way.

the way you descripe is for choices and very little text.

the way i talk about. is to have a text window to display different things on different
situations. and a text box can hold and show much more information.

i wanted the :

if .. endif .. inside of the message command options.
so it ofcause can be used to show or hide specific text.
IP Logged
Last Edited On: 14-12-2010 14:47:10 By hugblue@hotmail.com for the Reason
 Subject :Re:message window2.. 15-12-2010 11:17:22 
petr
Joined: 15-10-2009 11:48:52
Posts: 152
Location
I'm still not sure what you need to achieve. You can always build message text from variables that can have different values on different situations... The message box text does not have to be just a constant text, it can contain also variables like this:

"Hello %vUserName%, ....."
IP Logged
Page # 


Powered by ccBoard


Login and share your experience - send messages to forums and add comments to samples, commands and other resources.



Account is free of charge, easy to setup.