Jump to content

Recommended Posts

Posted

Hi,

New to this forum and to AutoIt, I have a question.

Might be a noob question, but I'm a noob. Not to programming but to AutoIt.

So here is my script:

Dim $winHandle
$winHandle = WinActivate("Untitled","")
ConsoleWrite("handle : " & $winHandle)

Sleep(700)
MouseMove (1031, 802, 5)
ConsoleWrite("mouse moved")

Sleep(700)
MouseClick("left", 802, 5)
ConsoleWrite("mouse clicked")

This just activates a window, moves the mouse to a given coordinate and clicks with the left button of the mouse.

This code works when acivating a Notepad window.

But I want to use it on another application I bought. It does activate the window but the mouse does not move or click.

Do you see any reason why I get this behavior?

Thanks,

Polgarine

Posted

A game...?

:idea:

No, not at all. It's an application that helps manage Twitter accounts.

Do you see any reason why it would not behave as a Notepad?

Posted

Mind helping me out and telling me this app? I could do with something like that.

It is called Tweet Attacks. It is a GUI developed in C# I think.

Does this help?

Posted

It's possible this application blocks automatic inputs. If this is the case, I don't know what solutions there are. But try ControlClick, it may work for you. You can use the AutoIt Window Info Tool (AU3Info) to get additional info ControlClick needs.

ControlClick is not going to work. This application has an Internet Explorer embedded in a custom control.

And what I want to do is click on a link in this browser. So I really need to be able to simulate what I would do with my mouse when I click on the link.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...