Sign in to follow this  
Followers 0
polgarine

Script working with Notepad but not another application

9 posts in this topic

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

Share this post


Link to post
Share on other sites



What application are we talking about exactly?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Hmm. Maybe you can get something out of IE Management?


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

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  
Followers 0