mentosan Posted January 29, 2009 Posted January 29, 2009 Hello I want to create a script to play a sound when a string is reached. The problem is that this string will be outputed from an application like Hyperterminal or Command Prompt Window, and I'm not sure if AutoIt supports reading strings from other applications. If yes, please help me. So for example if string "disconnected" is appearing in the GUI, my script should be able to play a WAV file. Thank you.
azure Posted January 29, 2009 Posted January 29, 2009 HelloI want to create a script to play a sound when a string is reached. The problem is that this string will be outputed from an application like Hyperterminal or Command Prompt Window, and I'm not sure if AutoIt supports reading strings from other applications.If yes, please help me.So for example if string "disconnected" is appearing in the GUI, my script should be able to play a WAV file.Thank you.Can you read the text witht he Autoit Window Info tool? if so, then it should work. If not, then you may be out of luck, unless you do some auto copy / check clipboard loop within the window.
mentosan Posted January 29, 2009 Author Posted January 29, 2009 Can you read the text witht he Autoit Window Info tool? if so, then it should work. If not, then you may be out of luck, unless you do some auto copy / check clipboard loop within the window.Unfortunately I cannot read the text with AutoIt Window Info Tool. How can I copy/check clipboard ? Do you have an example code for this ?
MerkurAlex Posted January 29, 2009 Posted January 29, 2009 Look in the helpfile for clipget. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]
azure Posted January 29, 2009 Posted January 29, 2009 Look in the helpfile for clipget.And setup a loop to SELECT ALL in the window and COPY. check the helpfile.
mentosan Posted January 29, 2009 Author Posted January 29, 2009 (edited) I'll give a try Edited February 18, 2009 by mentosan
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