Jump to content

Script working with Notepad but not another application


Recommended Posts

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

Link to comment
Share on other sites

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.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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