Sign in to follow this  
Followers 0
Rahul Rohela

Help to join controls

3 posts in this topic

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 this

if GUICtrlRead ($UserName) = 1 then $UserName = $UserID

This 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...

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

maybe this

if GUICtrlRead ($UserName) = 1 then $UserName = GUICtrlRead ($UserID)
$UserName = $UserName & "-u"
msgbox(o,"test", $UserName)

or.... $UserName = "-u" & $UserName

???

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Thx working... If all goes well.. soon i will post my script...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0