comeonbaby Posted April 25, 2008 Posted April 25, 2008 (edited) In helpfile said GUICtrlRead return the text entered with type input and edit.But if i use a variable to get return value from it so can not. Have variable: $string = GUICtrlCreateInput("",0,50,270,20) $ok = GUICtrlCreateButton("ok",10,100,20) $vari = GUICtrlRead($string) GUICtrlSetOnEvent($ok,"check") Func check() MsgBox(0,"alert",$vari) EndFunc Haven't varibale: why this script done while script above can not excute?? $string = GUICtrlCreateInput("",0,50,270,20) $ok = GUICtrlCreateButton("ok",10,100,20) GUICtrlSetOnEvent($ok,"check") Func check() MsgBox(0,"alert",GUICtrlRead($string)) EndFunc please tell me why? Thx in advance.! Edited April 25, 2008 by comeonbaby
Zedna Posted April 25, 2008 Posted April 25, 2008 $string = GUICtrlCreateInput("",0,50,270,20) $ok = GUICtrlCreateButton("ok",10,100,20) GUICtrlSetOnEvent($ok,"check") Func check() $vari = GUICtrlRead($string) MsgBox(0,"alert",$vari) EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search
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