cprz Posted December 17, 2004 Share Posted December 17, 2004 hey i was wondering if anyone could help me on this, hey how would you be able to make a text area for people to put a host or ip to ping it from?? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 17, 2004 Developers Share Posted December 17, 2004 hey i was wondering if anyone could help me on this, hey how would you be able to make a text area for people to put a host or ip to ping it from??<{POST_SNAPBACK}>You mean like an inputbox ? 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 comment Share on other sites More sharing options...
cprz Posted December 17, 2004 Author Share Posted December 17, 2004 You mean like an inputbox ?<{POST_SNAPBACK}>yea... how would you you be able to do that?? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 17, 2004 Developers Share Posted December 17, 2004 yea... how would you you be able to do that??<{POST_SNAPBACK}>You have the commandname , all you need to do now is open the helpfile and look for it and try it out... 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 comment Share on other sites More sharing options...
cprz Posted December 17, 2004 Author Share Posted December 17, 2004 Humm thx ill figure it out lol. Link to comment Share on other sites More sharing options...
themax90 Posted December 18, 2004 Share Posted December 18, 2004 InputBox --------------------------------------------------------------------------------Displays an input box to ask the user to enter a string.InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] )Parameterstitle The title of the input box. prompt A message to the user indicating what kind of input is expected. default The value that the input box starts with. password char [optional] The character to replace all typed characters with. If you want the actual typed character to appear, define with an empty string ("") (default) or a space for the first character. If you provide a multiple-char string, only the first char is used for character masking. There are special meanings for the second and subsequent characters. See Remarks. width [optional] The width of the window. If defined, height must also be defined. Use -1 for default width. height [optional] The height of the window. If defined, width must also be defined. Use -1 for default height. left [optional] The left side of the input box. By default, the box is centered. If defined, top must also be defined. top [optional] The top of the input box. By default, the box is centered. If defined, left must also be defined. timeout [optional] How many seconds to wait before automatically cancelling the InputBox. Return ValueSuccess: Returns the string that was entered. Failure: Returns an empty string and sets @error as follows: @Error 0 = The string returned is valid. 1 = The Cancel button was pushed. 2 = The Timeout time was reached. 3 = The InputBox failed to open. This is usually caused by bad arguments. RemarksBlockInput(1) prevents Windows 98/Me users from inputting data.The InputBox is user-resizable, but has a minimum size of approximately 190 x 115 pixels. Default size is approximately 250 x 190 pixels.The string returned will not exceed 254 characters and if input contains carriage returns or linefeeds, the result will be truncated at the first occurrence of those characters.The second and subsequent characters of the password field can be used to restrict input. Use a space to fill the first character to still see the characters typed. Putting an M after the first character indicates that input is Manditory; i.e. you must enter something. Nothing will happen if you press the Ok button when there is nothing in the InputBox. It will not close and return the string. You can also specify the maximum length in the end of the password field. Just enter a number as the last characters to specify the length of the string.RelatedMsgBox Example;Places the input box in the top left corner displaying the characters as they ;are typed.$answer = InputBox("Question", "Where were you born?", "Planet Earth", "", _ -1, -1, 0, 0);Asks the user to enter a password. Don't forget to validate it!$passwd = InputBox("Security Check", "Enter your password.", "", "*");Asks the user to enter a 1 or 2 character response. The <b>M</b> in the password ;field indicates that blank string are not accepted and the 2 indicates that the ;responce will be at most 2 characters long.$value = InputBox("Testing", "Enter the 1 or 2 character code.", "", " M2")Or for GUI which is in Unstable Autoit V3.0.103GUICtrlCreateInput --------------------------------------------------------------------------------Create an input control in the dialog box.GUICtrlCreateInput ( "text", left, top [,width [,height [,style [,exStyle]]] )Parameterstext The text of the control. left The left side of the control. If equal -1 the left will be computed according to GuiCoordMode. top The top of the control. If equal -1 the top will be computed according to GuiCoordMode. [width] The width of the control (default is the previous used width). [height] The height of the control (default is the previous used height). [style] define the Style of the control. See GUI Control Styles Appendix. [exStyle] define the extended Style of the control. See Extended Style Table. By default WS_EX_CLIENTEDGE. Return ValueSuccess: Returns the control identifier created. It can be use later to retrieve the value of the control with GUIRead. Failure: Returns 0. RemarksFor setting more information see GUICtrlSet....For defining an input control for password entering just use ES_PASSWORD style.If you want to drag&drop on "input" control just add WS_EX_ACCEPTFILES extended style on the GuiCreate() and set the state to $GUI_ACCEPTFILES.RelatedGUICoordMode (Option), GUICtrlSet..., GUIGetMsg, GUIRead Example#include "GUIConstants.au3"GUICreate(" My GUI input acceptfile", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES$file = GUICtrlCreateInput ( "", 10, 5, 300, 20)GUICtrlSetState(-1,$GUI_ACCEPTFILES)GUICtrlCreateInput ("", 10, 35, 300, 20) ; will not accept drag&drop files$btn = GUICtrlCreateButton ("Ok", 40, 75, 60, 20)GuiSetState () $msg = 0While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn exitloop EndSelectWendMsgBox (4096, "drag drop file", GUIRead($file))I know this may not be nesscessary but I felt like it... hehe 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