Jump to content

GUI navigational script


Recommended Posts

How can i make a gui script that would link to othr au3 scripts?

e.g. it should load a gui with 3 or 4 buttons. each one would be linked to another script.

I know how to make it link with the other scripts (i think!! lol)...but i dunno how2 make the gui. Please help.

Link to post
Share on other sites

#cs - ### Generated by AutoBuilder 0.4 -- do not modify ###
141 199
0   4   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
button  $button_1   Button 1    10  20  70  30  0   0   
button  $button_2   Button 2    10  60  70  30  0   0   
button  $button_3   Button 3    10  100 70  30  0   0   
button  $button_4   Button 4    10  140 70  30  0   0   
#ce - ### End of Dump ###

;Script generated by AutoBuilder 0.4


Opt("GUICoordMode", 1)
Opt("GUINotifyMode", 1)
GuiCreate("MyGUI", 139,194,(@DesktopWidth-139)/2, (@DesktopHeight-194)/2 , 0x04CF0000)

$button_1 = GUISetControl("button", "Button 1", 10, 20, 70, 30)
$button_2 = GUISetControl("button", "Button 2", 10, 60, 70, 30)
$button_3 = GUISetControl("button", "Button 3", 10, 100, 70, 30)
$button_4 = GUISetControl("button", "Button 4", 10, 140, 70, 30)

GuiShow()

While 1
    sleep(100)
    $msg = GuiMsg(0)
    Select
    Case $msg = -3
        Exit
    Case $msg = 4
       ;;;
    Case $msg = $button_1
        script_1
    Case $msg = $button_2
        script_2
    Case $msg = $button_3
        script_3
    Case $msg = $button_4
        script_4
    EndSelect
WEnd
Exit

Link to post
Share on other sites
  • Developers

It didnt work for me...(the script)..it sed that GUIcreate was an error!! Help!!

<{POST_SNAPBACK}>

what is the error?

Are you using ver 3.0.103 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
  • Developers

oh...nah..umm can sum1 zip it and attach it 2 their post here plz?

<{POST_SNAPBACK}>

why?? its available in the unstable directory...

check the v3 Developers forum for V3.0.103 Unstable

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...