Phenom Posted June 4, 2010 Share Posted June 4, 2010 if $input1 == "" doesn't work. Link to comment Share on other sites More sharing options...
XRS Posted June 4, 2010 Share Posted June 4, 2010 Try to use if $input1 = '' , if $input1 = ' ' or if $input1 = " " . Maybe one of them will work Link to comment Share on other sites More sharing options...
Zibit Posted June 4, 2010 Share Posted June 4, 2010 if $input = 0 is the correct answer ^^ Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
XRS Posted June 4, 2010 Share Posted June 4, 2010 But if we use that if it will wont check if the inputbox have the value 0 ? Link to comment Share on other sites More sharing options...
Phenom Posted June 4, 2010 Author Share Posted June 4, 2010 None of those work. Link to comment Share on other sites More sharing options...
Zibit Posted June 4, 2010 Share Posted June 4, 2010 test it out i was right... it works $input = InputBox("", "", "") if $input = 0 then ConsoleWrite("its empty") to check if its 0 you have to have it if $input = "0" not $input = 0 0 is considered as empty Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
Zibit Posted June 4, 2010 Share Posted June 4, 2010 and btw phenom it works... your's works... tested it if ur meaning gui input then do like this $read_input = guictrlread($input) if $read_input = 0 Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
zorphnog Posted June 4, 2010 Share Posted June 4, 2010 First of all, are you talking about an InputBox or a GuiCtrlCreateInput? If you are using InputBox, $input1 == "" will work. If you are using the GuiCtrlCreateInput method you will need to use GuiCtrlRead($input1) to get the contents of the input box. In the future, provide as much detail as possible. Saying that something doesn't work does not really give us much information. Always provide the code you have tried so that we can assess the problem. Link to comment Share on other sites More sharing options...
Zibit Posted June 4, 2010 Share Posted June 4, 2010 yeah we were kinda confused here ^^ Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
Phenom Posted June 4, 2010 Author Share Posted June 4, 2010 Yeah, I was talking about the inputbox for the gui, GuiCtrlCreateInput. Link to comment Share on other sites More sharing options...
99ojo Posted June 4, 2010 Share Posted June 4, 2010 (edited) Hi, as Zorphnog suggests: $input1 = GuiCtrlCreateInput....... If GuiCtrlRead($input1) = "" Then MsgBox (0,"Empty.....", "....Input detected!") ;-)) Stefan Edited June 4, 2010 by 99ojo 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