Rahul Rohela Posted October 11, 2005 Share Posted October 11, 2005 HI all,I am new to this script... Please help me to run this scripe...I have created following GUI controls..$UserName = GUICtrlCreateCheckbox ("Type User Name Domain\LoginID (-u)", 10, 33, 400, 20, $WS_TABSTOP)$UserID = GUICtrlCreateInput ( "Domain\User", 450, 33, 400, 20, $WS_TABSTOP )Both controls will work togater to genrate output.. Like thisif GUICtrlRead ($UserName) = 1 then $UserName = $UserIDThis is working fine but my problem is to Put '-u' switch befor the output that is eqal to $UserID..... $UserID refer to input in box that we will write but -u is required to execute it.. and -u will be aplicable when $UserName is checked..i hope you understand... please help.Thanks... Link to comment Share on other sites More sharing options...
Valuater Posted October 11, 2005 Share Posted October 11, 2005 (edited) maybe this if GUICtrlRead ($UserName) = 1 then $UserName = GUICtrlRead ($UserID) $UserName = $UserName & "-u" msgbox(o,"test", $UserName) or.... $UserName = "-u" & $UserName ??? 8) Edited October 11, 2005 by Valuater Link to comment Share on other sites More sharing options...
Rahul Rohela Posted October 11, 2005 Author Share Posted October 11, 2005 Thx working... If all goes well.. soon i will post my script... 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