Jump to content
Sign in to follow this  
cezar

change env variable to upper case

Recommended Posts

cezar

Hello,

Is there a way to change an env varibale to upper case when pasting?

Here is an example code:

$var = EnvGet("USERNAME")

ClipPut($var)

Send("^v") ;this is where i want to past it in upper case

By default it is all lower case.

Thanks in advance for any help.

Share this post


Link to post
Share on other sites
DW1

From the help file

StringReplace ( "string", "searchstring" or start, "replacestring" [, count [, casesense]] )

EDIT: just replace lower case letters with Uppercase letters Edited by danwilli

Share this post


Link to post
Share on other sites
cezar

From the help file

EDIT: just replace lower case letters with Uppercase letters

Thanks for the quick reply.

I don't understand how can I replace an env varible in a clipboard to upper case.

Share this post


Link to post
Share on other sites
DW1

I guess StringUpper() is the answer.

EDIT: Removed post (it was inaccurate)

Edited by danwilli

Share this post


Link to post
Share on other sites
weaponx

Whats wrong with builtin StringUpper???

StringUpper Converts a string to uppercase.

StringUpper ( "string" )

ClipPut(StringUpper(EnvGet("USERNAME")))

Edited by weaponx

Share this post


Link to post
Share on other sites
cezar

Whats wrong with builtin StringUpper???

StringUpper Converts a string to uppercase.

StringUpper ( "string" )

ClipPut(StringUpper(EnvGet("USERNAME")))

Thank you very much!

That did it.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.