cezar Posted October 12, 2007 Share Posted October 12, 2007 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. Link to comment Share on other sites More sharing options...
DW1 Posted October 12, 2007 Share Posted October 12, 2007 (edited) From the help file StringReplace ( "string", "searchstring" or start, "replacestring" [, count [, casesense]] ) EDIT: just replace lower case letters with Uppercase letters Edited October 12, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
cezar Posted October 12, 2007 Author Share Posted October 12, 2007 From the help fileEDIT: just replace lower case letters with Uppercase lettersThanks for the quick reply.I don't understand how can I replace an env varible in a clipboard to upper case. Link to comment Share on other sites More sharing options...
DW1 Posted October 12, 2007 Share Posted October 12, 2007 (edited) I guess StringUpper() is the answer. EDIT: Removed post (it was inaccurate) Edited October 12, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
weaponx Posted October 12, 2007 Share Posted October 12, 2007 (edited) Whats wrong with builtin StringUpper???StringUpper Converts a string to uppercase. StringUpper ( "string" )ClipPut(StringUpper(EnvGet("USERNAME"))) Edited October 12, 2007 by weaponx Link to comment Share on other sites More sharing options...
cezar Posted October 12, 2007 Author Share Posted October 12, 2007 Whats wrong with builtin StringUpper???StringUpper Converts a string to uppercase. StringUpper ( "string" )ClipPut(StringUpper(EnvGet("USERNAME")))Thank you very much!That did it. 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