Jump to content
Sign in to follow this  
Der_Andi

ControlSend() works, then it doesn't work

Recommended Posts

Der_Andi

Hi,

i use AutoGordianKnot for converting my DVDs into Xvid-Videos.

When i am at work, i let AGK do its job...

In the morning my computer starts automatically from suspend mode --> it makes me wake up.

A script is also running in the background. This script checks the time, and when the correct time has come,

it sends via ControlSend() a specific shortcut to the AGK-Window to start the job queue for encoding.

Unfortunately, the real start button is strange. AutoIt Info doesn't give me any information about it. So i cannot use it with ControlSend(). It's a button, that only is being highlighted, when the mouse cursor is on it.

So i choose another control, AutoIt can interact with. My script does this:

Do
    sleep(20000)   ;20sec-delay should ensure not to miss the spec. time
Until @HOUR = 6 And @MIN = 30
ControlSend("len0x presents", "", "TJvRichEdit1", "^r")

The problem is, sometimes it works, sometimes it does not.

Any ideas what's wrong?

Andi

Share this post


Link to post
Share on other sites
Uten

From the top of my head.

The control is dynamic and not pressent when you try to click it?

Solution: Make sure the window is active. Move the mouse to the correct location relative to the window. Send a ControlClick or just click.

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.