Jump to content
Sign in to follow this  
RobbyHelm

MouseClick not working for Chrome_WidgetWin - (Locked)

Recommended Posts

I am new to AutoIt so please bear with me. 

I am trying to send a mouse click to coordinates in a window of a program. The script can read the window title correctly, but it won't send a mouse click to it. I have MouseCoordMode set to 0 of course. Here are some properties of the window in question:

The window class is: Chrome_WidgetWin_1

The window info tool says the Visible Text is "Chrome Legacy Window", though I don't see that text anywhere. I have no problem activating the window with WinActivate, but again nothing happens with the mouse with MouseClick.

What am I missing and how do I fix this?

Thanks in advance!

 

 

Share this post


Link to post
Share on other sites

Welcome.  First if you have read the forum, you would have noticed that asking for help without giving a runable script is not the best way to get results.   I suggest you post your script using <> (before emoticon).

Share this post


Link to post
Share on other sites

Here is my script:

<

AutoItSetOption("MouseCoordMode", 0)
AutoItSetOption("WinTitleMatchMode", 2)
AutoItSetOption("PixelCoordMode", 0)

WinActivate("Title")
Sleep(200)
MouseClick("left", 69, 609)

>

 

I have tried using the IUIAutomation MS framwork, but when I press ctrl+w with simple spy hovering over the window, it simply closes simple spy.

Share this post


Link to post
Share on other sites

Lol, I meant use this tool to post code. What is the application you are trying to automate ?  "Title" does not give me much information !!

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

It has nothing to do with automating actually playing the game, just a simple 2 click rebuy process. Does this mean no one can help me with this?

Share this post


Link to post
Share on other sites

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...