RobbyHelm Posted July 23, 2019 Share Posted July 23, 2019 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! Link to comment Share on other sites More sharing options...
Nine Posted July 23, 2019 Share Posted July 23, 2019 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). “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
RobbyHelm Posted July 23, 2019 Author Share Posted July 23, 2019 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. Link to comment Share on other sites More sharing options...
Nine Posted July 23, 2019 Share Posted July 23, 2019 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 !! “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
RobbyHelm Posted July 23, 2019 Author Share Posted July 23, 2019 Oops, here you go: AutoItSetOption("MouseCoordMode", 0) AutoItSetOption("WinTitleMatchMode", 2) AutoItSetOption("PixelCoordMode", 0) WinActivate("No Limit") Sleep(1000) MouseClick("left", 69, 609) Sleep(300) MouseClick("left", 66, 569) It is for an online poker window, I am trying to automate re-buying chips at the table. Link to comment Share on other sites More sharing options...
Nine Posted July 23, 2019 Share Posted July 23, 2019 Sorry but it seems you also forgot to read the forum rules as game automation is not permitted here... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
RobbyHelm Posted July 23, 2019 Author Share Posted July 23, 2019 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? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 23, 2019 Moderators Share Posted July 23, 2019 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! Link to comment Share on other sites More sharing options...
Recommended Posts