Jump to content
Sign in to follow this  
mentosan

is this possible ?

Recommended Posts

mentosan

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.

Share this post


Link to post
Share on other sites
azure

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.

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.

Share this post


Link to post
Share on other sites
mentosan

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 ?

Share this post


Link to post
Share on other sites
MerkurAlex

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]

Share this post


Link to post
Share on other sites
azure

Look in the helpfile for clipget.

And setup a loop to SELECT ALL in the window and COPY. check the helpfile.

Share this post


Link to post
Share on other sites
mentosan

I'll give a try

Edited by mentosan

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.