Jacxonia Posted November 20, 2010 Share Posted November 20, 2010 Hey im new in this forum and i was just wondering if this is possible! if the title of a document is hello6736462 where 6736462 is a random number set in auto it with the variable $hi, now i want to say winwaitactive("Hello" + $hi) so it would call the document to the front! $hi = random(0,9999999,1) winwaitcative("hello $HI ") so the title of the document is Hello and the variable with no spaces! Is this possible? Link to comment Share on other sites More sharing options...
SadBunny Posted November 20, 2010 Share Posted November 20, 2010 (edited) Not 100% clear on what you are asking but the following might help: 1 - As the helpfile says, WinWaitActive just waits until a window is active. To actually activate a window, use WinActivate. That sounds more like what you are looking for? See the helpfile for more information. /EDIT: (By the way, this doesn't actually pull a window to the foreground or un-minimize it, it just activates the window so you can communicate with it. Try WinSetState for hide/show/minimize/maximize etc. if you are looking for that.) 2 - To put string "Hello" and the string in variabele $hi together (called 'concatenating a string') without spaces, you could try the following: $concatenatedString = "Hello" & $hi Edited November 20, 2010 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Jacxonia Posted November 20, 2010 Author Share Posted November 20, 2010 Yes thank you thats what i was asking! :-) 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