XRS Posted June 4, 2010 Posted June 4, 2010 Try to use if $input1 = '' , if $input1 = ' ' or if $input1 = " " . Maybe one of them will work
Zibit Posted June 4, 2010 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
XRS Posted June 4, 2010 Posted June 4, 2010 But if we use that if it will wont check if the inputbox have the value 0 ?
Zibit Posted June 4, 2010 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
Zibit Posted June 4, 2010 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
zorphnog Posted June 4, 2010 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.
Zibit Posted June 4, 2010 Posted June 4, 2010 yeah we were kinda confused here ^^ Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam
Phenom Posted June 4, 2010 Author Posted June 4, 2010 Yeah, I was talking about the inputbox for the gui, GuiCtrlCreateInput.
99ojo Posted June 4, 2010 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
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