Guest doolittle Posted January 25, 2005 Share Posted January 25, 2005 Hello,I'm looking for an inputbox providing two fields for two different input strings which are stored in two different variables. How can I accomplish this ?Best regards Doolittle Link to comment Share on other sites More sharing options...
friends Posted January 25, 2005 Share Posted January 25, 2005 Hello,I'm looking for an inputbox providing two fields for two different input strings which are stored in two different variables. How can I accomplish this ?Best regards Doolittle<{POST_SNAPBACK}>I think you'd better check out the HELPFILE, look for INPUT.There will be an example shown in the HELPFILE on how to create input. Link to comment Share on other sites More sharing options...
Doxie Posted January 25, 2005 Share Posted January 25, 2005 (edited) I dont think he will found a "double" input box there friends. 2 option, either you have 2 inputbox after eachother to store the variables or you create a GUI that will do it for you. ; Script generated by AutoBuilder 0.5 Prototype #include <GuiConstants.au3> If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 171, 115,(@DesktopWidth-171)/2, (@DesktopHeight-115)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Input_1 = GuiCtrlCreateInput("", 10, 10, 150, 20) GUICtrlSetState(-1,$GUI_FOCUS) $Input_2 = GuiCtrlCreateInput("", 10, 40, 150, 20) $ok = GuiCtrlCreateButton("Ok", 10, 80, 70, 20) $cancel = GuiCtrlCreateButton("Cancel", 90, 80, 70, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $cancel Exit Case $msg = $ok msgbox(0, "", GuiCtrlRead($Input_1)) ; display the value msgbox(0, "", GuiCtrlRead($Input_2)) ; display the value ExitLoop Case Else ;;; EndSelect WEnd $Input_1 and $Input_2 will be the variables you can use. Edited January 25, 2005 by Doxie Were ever i lay my script is my home... Link to comment Share on other sites More sharing options...
Guest doolittle Posted January 25, 2005 Share Posted January 25, 2005 I dont think he will found a "double" input box there friends.2 option, either you have 2 inputbox after eachother to store the variables or you create a GUI that will do it for you.; Script generated by AutoBuilder 0.5 Prototype #include <GuiConstants.au3> If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 171, 115,(@DesktopWidth-171)/2, (@DesktopHeight-115)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Input_1 = GuiCtrlCreateInput("", 10, 10, 150, 20) GUICtrlSetState(-1,$GUI_FOCUS) $Input_2 = GuiCtrlCreateInput("", 10, 40, 150, 20) $ok = GuiCtrlCreateButton("Ok", 10, 80, 70, 20) $cancel = GuiCtrlCreateButton("Cancel", 90, 80, 70, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $cancel Exit Case $msg = $ok msgbox(0, "", GuiCtrlRead($Input_1)) ; display the value msgbox(0, "", GuiCtrlRead($Input_2)) ; display the value ExitLoop Case Else ;;; EndSelect WEnd$Input_1 and $Input_2 will be the variables you can use.Sorry, this script produces an error message, s. attachment. Do I need any extensions ? I'm using AutoIT Ver. v3.0.102 Link to comment Share on other sites More sharing options...
Doxie Posted January 25, 2005 Share Posted January 25, 2005 For the script above you need latest beta, but you can do the same with your version. Were ever i lay my script is my home... 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