Jump to content

Using GUICtrlCreateinput and using the user's input


SniperSA
 Share

Recommended Posts

ok well first i tested the GUICtrlRead and i told it to send input's data to a notepad, that worked. but now i was trying to make a GUICtrlCreateCombo and i put in my data. so when i test to see if it reads whats in the combo box and it says "3"

#include <GUIconstants.au3>
GUICreate("Script Select",200,200)
$1337 = GUICtrlCreateCombo("AIM Send",0,0)
GUICtrlSetData(-1,"Check Email|Check Myspace|Find X,Y|Starcraft Start")
$ok = GUICtrlCreateButton("Run Script",0,20)
GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    Select
        case $msg = $ok
            GUICtrlRead($1337)
            Msgbox(0,"Test",$1337)
            Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
    WEnd
Link to comment
Share on other sites

something like this

#include <GUIconstants.au3>
GUICreate("Script Select",200,200)
$1337 = GUICtrlCreateCombo("AIM Send",0,0)
GUICtrlSetData(-1,"Check Email|Check Myspace|Find X,Y|Starcraft Start")
$ok = GUICtrlCreateButton("Run Script",0,20)
GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    Select
        case $msg = $ok
            Run("notepad.exe")
                WinWait("Untitled -")
                ControlSetText("Untitled -", "", "Edit1", GUICtrlRead($1337) )
            Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
    WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...