Sheol83

Multiple mouse actions simultaneously

2 posts in this topic

#1 ·  Posted

Hi all,

I'm new to AutoIT and currently I'm writing a simple script which opens a chat window, marks all the text and copies the content to a file. Sounds simple enough, right?

The problem is that I need to mark all the text via mouse because CTRL+A has no effect in this window. It's an awful "special" chat client which doesn't support the most basic keyboard navigation/handling.  No problem, I can use MouseClickDrag. Unfortunately I also have to scroll down because the conversation is normally too long to see at once. So I need to mark the text via mouse AND simultaneously scroll down. Or at least I need it to scroll down while holding the mouse button after it reaches the destination coordinates.

So if I do something like this:

MouseClickDrag($MOUSE_CLICK_LEFT, $outputPos[0], $outputPos[1], $outputPos[0] + 1630, $outputPos[1] + 810, 50)
MouseWheel($MOUSE_WHEEL_DOWN, 10)

It stops marking the text area when it reaches the destination coordinates and THEN scrolls down. How can I accomplish this?

Thanks,
Ralf

Share this post


Link to post
Share on other sites



#2 ·  Posted

Try ControlGetText first, if that doesn't work MouseDown and MouseUp should do what you are wanting.

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