AzKay Posted July 20, 2006 Share Posted July 20, 2006 (edited) #include <GUIConstants.au3> #include <smtp.au3> Opt("GUIOnEventMode", 1) ### Koda GUI section start ### $Form1 = GUICreate("Report", 234, 359, 193, 126) $Combo1 = GUICtrlCreateCombo("Subject", 0, 0, 233, 21) GUICtrlSetData($Combo1,"General Question|Account Problem|Report Bug|Report Player|Report GM|Other","") $Edit = GUICtrlCreateEdit("", 0, 96, 233, 233, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) $Input1 = GUICtrlCreateInput("Your Name Here", 0, 24, 233, 21) $Input2 = GUICtrlCreateInput("Your Email Here", 0, 48, 233, 21) $Input3 = GUICtrlCreateInput("ScreenShot Here ( Optional )", 0, 72, 233, 21) $Label1 = GUICtrlCreateLabel("Click To Send", 8, 336, 215, 17, $SS_CENTER) GUICtrlSetOnEvent($Label1, "_Send") GUISetOnEvent($GUI_EVENT_CLOSE, "Quit") GUISetState(@SW_SHOW) ### Koda GUI section end ### While 1 Sleep(100) WEnd Func _Send() If $Combo1 = 6 Then ;How to make it do a certain thing for each choice?, EG, If "report gm" is selected, it will popup a messagebox, if "report bug" is selected, it would pop up a different one, etc... MsgBox(0, "", "GM Reported") EndIf EndFunc Func Quit() Exit EndFunc Would this be in GUI Stuff, or here? NOTE:: Notice how im making something useful for once xD Edited July 20, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Somniis Posted July 20, 2006 Share Posted July 20, 2006 Local $read = GUICtrlRead($Combo1) If $read = "report gm" Then MsgBox(16, "Title", "text") EndIf If $read = "another option" Then ; code here EndIf Something like this? Link to comment Share on other sites More sharing options...
AzKay Posted July 20, 2006 Author Share Posted July 20, 2006 Thanks # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
BPBNA Posted July 20, 2006 Share Posted July 20, 2006 (edited) You could also try using a Case structure, its a little quicker, especially if you are going to add more options. Local $read = GUICtrlRead($Combo1) Select Case $read = "Report GM" MsgBox(16, "Title", "text") Case $read = "another option" ; code here EndSelect Edit: I swear... I miss something on every post... had to close the code tag again. Edited July 20, 2006 by BPBNA 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