KeithLocke Posted April 26, 2010 Share Posted April 26, 2010 I’ve used Auto it a few times in the past but never made a GUI script before and could use some help on this project. I’m trying to make a GUI script that has two drop down lists, a multiplier box (where you just type a number), and a calculate button. The first drop down list is for a category and the second drop down list shows what items fall under the chosen category. After that a multiplier for how many items you want to make. Once the three parts are selected, you click on a “Calculate” button and a new window pops up with all the individual parts needed for 1 item along with the required multiplier depending on the multiplier. I just don’t really know where to start and could use some help. Example: Category : Wood Subcategory: Book Ends Multiplier : 6 New window : 8x2x8 wood planks = 18 (3 per book end) : 3" screws = 12 (2 per book end) : 8x8 no skid rubber sheets = 6 Any code or direction on what commands I need to look up to get started would be greatly appreciated. Thanks, Keith Link to comment Share on other sites More sharing options...
enaiman Posted April 26, 2010 Share Posted April 26, 2010 Start with creating the GUI first. Use Koda: from SciTE - Tools - Koda(Form Designer) Make your GUI first, next will be to build an *.ini file to hold all this info. It is not a very easy project for a beginner but you'll be able to do it. Just ask for help when you're stuck somewhere. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
l3ill Posted April 28, 2010 Share Posted April 28, 2010 That is a tuffy for your first project. But I'm sure everyone here will agree that the best way to learn is to try! I remember how long it took me to figure some of this stuff out so here is something out of my "box of stuff" to get you started on your Drop Down Menu. expandcollapse popup#include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $msg = "" $gui = GUICreate("Ship to:", 220, 120) ; creates a centered dialog box $button_ok = GUICtrlCreateButton("Send", 10, 80, 100) $button_cancel = GUICtrlCreateButton("Cancel", 110, 80, 100) $Combo_1 = GUICtrlCreateCombo("Select", 10, 40, 200, 21) GUICtrlSetData($Combo_1, "|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|") GUICtrlSetData(-1, "Saturday") GUICtrlCreateLabel("Select Day of Week", 10, 10) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $button_cancel Or $msg = $GUI_EVENT_CLOSE GUIDelete() ExitLoop Case $msg = $button_ok $Menustate = GUICtrlRead($Combo_1) If $Menustate = "Sunday" Then $var1 = "1" $var2 = "7014290644" ExitLoop EndIf If $Menustate = "Monday" Then $var1 = "2" $var2 = "3" ExitLoop EndIf If $Menustate = "Tuesday" Then $var1 = "3" $var2 = "7014290900" ExitLoop EndIf If $Menustate = "Wednesday" Then $var1 = "4" $var2 = "7014291000" ExitLoop EndIf If $Menustate = "Thursday" Then $var1 = "5" $var2 = "7014291300" ExitLoop EndIf If $Menustate = "Friday" Then $var1 = "6" $var2 = "7014291100" ExitLoop EndIf If $Menustate = "Saturday" Then $var1 = "7" $var2 = "7014291400" ExitLoop EndIf EndSelect WEnd GUIDelete() $var3 = @WDAY - $var1 ConsoleWrite("var3=" & $var3 & @CRLF) MsgBox(64, "You Chose:", $Menustate & @CRLF & _ @Tab & $var1 & ": day of the week" & @CRLF & _ @Tab & @WDAY & ": is Today!" & @CRLF & _ @Tab & $var3 & ": Days until then" & @CRLF & _ "What now ? :-)") It works as is but don't trust the math Have Fun & Good Luck My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now