erezlevi Posted November 16, 2007 Share Posted November 16, 2007 hello to everyone. I am new with autoit commands.I am looking for a solution for the following senario: I have an application that tirggers a new window with a Tilte name "info: XXXXX" where XXXXX is a number. (like a customer number for our example). (see attachment for details).the "info: xxxxx" shows on the window-Title. I need a way to copy the text of the info: XXXXX and paste it to another application. like in the end of a http:// link. for example if the info was : info:234567 it needs to be copied to:http://mycompany.com/customerinfo/customernumber none & info:234567 and then activate that link so it will go to the customer home page.I can't find the command to copy the text within the Tilte, I though it was WinGetTitle but I can't operate it for some reason.also, if it can be copied how do I paste it to the explorer in the end of an http:// link?last thing, if I will be able to copy and paste it how do I create an infinite loop so the .exe file will keep running on the backround waiting for "info:xxxx" trigger?THanks for all that will reply. Link to comment Share on other sites More sharing options...
Nahuel Posted November 16, 2007 Share Posted November 16, 2007 You could do something like this: #include <IE.au3> $Info=WinGetTitle("Info:") $InfoNumber=StringSplit($Info,":") _IECreate("http://mycompany.com/customerinfo/customernumber none & info:"&$InfoNumber[2]) Link to comment Share on other sites More sharing options...
erezlevi Posted November 16, 2007 Author Share Posted November 16, 2007 You could do something like this: #include <IE.au3> $Info=WinGetTitle("Info:") $InfoNumber=StringSplit($Info,":") _IECreate("http://mycompany.com/customerinfo/customernumber none & info:"&$InfoNumber[2]) [/quo Thanks, but is there a way to use the "Send" command? (if not using the IE browser) if it is another program? Link to comment Share on other sites More sharing options...
Nahuel Posted November 16, 2007 Share Posted November 16, 2007 Well... yes, but it's very rough.. find out a way to give focus to the addressbar and just use: Send("http://mycompany.com/customerinfo/customernumber none & info:"&$InfoNumber[2]) Send("{ENTER}") But I don't see why you'd want something like that. Link to comment Share on other sites More sharing options...
erezlevi Posted November 16, 2007 Author Share Posted November 16, 2007 Well... yes, but it's very rough.. find out a way to give focus to the addressbar and just use: Send("http://mycompany.com/customerinfo/customernumber none & info:"&$InfoNumber[2]) Send("{ENTER}") But I don't see why you'd want something like that. first, I would like to say THANKS alot man. u helped. this is the final solution: $i = 0 while $i <= 100000 WinWait ("Info:") $title = WinGetTitle("Info:","") $InfoNumber=StringSplit($title,":") sleep (10000) MouseMove(108,43) MouseDown("left") MouseUp("left") Send("{END}"&$InfoNumber[2]) Send("{ENTER}") WinWaitNotActive ("info:") Wend it solved my problem. for every call an "info:" dispalyed, now, another application the IP-softphone opens explorer with the website of customers information, then the mouse moves to the address bar and sends the InfoNumber to the end of the address and press Return, the web page of the customer displays. the WinWaitNotActive is used because during the call the Info is still displayed until the call ends which can trigger a loop that i don't want. when the info is cleared then the application is waiting for the next trigger (an info:). Thanks for you help, this program is huge. 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