tehon3299 0 Report post Posted March 10, 2004 I am trying to create a popup window with au3gui so I can popup a license agreement with a read-only scrollable box for text. I'm also going to put a Yes and No button on it for users to agree or disagree. I cant find much documentation on au3gui. Can this been done and has anyone done it before? Thanks Share this post Link to post Share on other sites
scriptkitty 1 Report post Posted March 10, 2004 (edited) Here is a non GUI way of doing it You can put in about as much text as you like and in full HTML, it will scroll. expandcollapse popupAutoItSetOption("TrayIconDebug", 1) ;0=no info, 1=debug line info AutoItSetOption("WinTitleMatchMode", 2);2 = Match any substring in the title cleanup() $line=InputBox("Question", "What Licence Agreement in popup?", "", "", -1, -1, 0, 0) If StringLen($line)<1 Then $line=clipget() $color="#00FF66" FileWriteLine("no.htm","<title>Sorry</title>") FileWriteLine("no.htm","<b>Sorry</b>") FileWriteLine("yes.htm","<title>I Agree</title>") FileWriteLine("yes.htm","<b>Starting</b>") htmlshow($color,$line) $x=1 WinWait("My AutoIt3 Status") While $x=1 If winexists("Sorry") Then bad() If winexists("I Agree") Then ExitLoop If NOT winexists("My AutoIt3 Status") and NOT winexists("I Agree") Then bad() Wend cleanup() MsgBox(1,"Thanks for agreeing","Starting instalation now") Func htmlshow($color,$line) AutoItSetOption("WinWaitDelay", 0) $title="My AutoIt3 Status" $file = "test.html" FileDelete($file) FileWriteLine($file, "<title>My AutoIt3 Status</title>") FileWriteLine($file, "<body bgcolor="& $color &">" ) FileWriteLine($file, $line ) FileWriteLine($file, "<br><a href=no.htm>I do not agree</a><br><a href=yes.htm><b>I Agree</a>" & @LF) Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE -k "& @ScriptDir &"\test.html","",@SW_HIDE) WinWait ( $title, "") WinMove ( $title, "", 1, 1, 400, 400) WinShow ($title, "", @SW_RESTORE) EndFunc Func bad() winclose("Sorry") cleanup() exit EndFunc Func cleanup() winclose("Sorry") winclose("I Agree") FileDelete("no.htm") FileDelete("yes.htm") FileDelete("test.html") EndFunc edit.. added some error code. Edited March 10, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites
jpm 42 Report post Posted March 10, 2004 I am trying to create a popup window with au3gui so I can popup a license agreement with a read-only scrollable box for text. I'm also going to put a Yes and No button on it for users to agree or disagree. I cant find much documentation on au3gui. Can this been done and has anyone done it before?ThanksAnother way than the Scriptkitty one is to use AU3GUIXP from Larry.http://www.hiddensoft.com/fileman/users/Larry/Next release will incorporate this GUI feature inside AutoIt3 itself. Share this post Link to post Share on other sites
tehon3299 0 Report post Posted March 10, 2004 What is the difference between AUI3GUI and AUI3GUIXP? Share this post Link to post Share on other sites
jpm 42 Report post Posted March 10, 2004 What is the difference between AUI3GUI and AUI3GUIXP?syntax for defining the object and the interaction with your scriptAU3GUIXP can be more readable ??? that the one which is evolving I think Share this post Link to post Share on other sites
tehon3299 0 Report post Posted March 10, 2004 I knew you would come through Larry! Share this post Link to post Share on other sites
BobHansen 0 Report post Posted March 10, 2004 This was the answer to the question about GUI differences.syntax for defining the object and the interaction with your scriptAU3GUIXP can be more readable ???that the one which is evolving I thinkNo mention was made that the XP only runs on XP OS, so this means that it will run on Win9X systems also? Hope this was helpful.............good luck, Bob Share this post Link to post Share on other sites
Valik 471 Report post Posted March 11, 2004 This was the answer to the question about GUI differences.No mention was made that the XP only runs on XP OS, so this means that it will run on Win9X systems also?Ugh, Larry, please take the XP out of the name so I don't have to see this question again! XP does not ALWAYS mean Windows XP only! Share this post Link to post Share on other sites
jpm 42 Report post Posted March 11, 2004 no... hehehehe will be remove when we get AutoIT3 with GUI out Share this post Link to post Share on other sites
Jon 854 Report post Posted March 11, 2004 no... hehehehe Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites