TimK Posted December 21, 2022 Share Posted December 21, 2022 HI, I am very new to Autoit, I am opening up an Excel file and relinking to a web page to get my data update. It all works fine if the mouse arrow is on the same screens at the Excel file. I tried the following, but it just moved the mouse to the upper corner left screen, my excel file is on the right screen. I need mouse to move the Excel file every time. thanks for the help local Const $ExcelFile = "File Path", $TargetSheet = "Sheet1" Local $oExcel = _Excel_Open() $oWorkbook = _Excel_BookOpen($oExcel, $ExcelFile) Sleep (15000) $oWorkbook.Sheets($TargetSheet).Activate WinwaitActive($TargetSheet,"SetFocus", 5) Mousemove(0,0,10) MouseClick("Left") Sleep (3000) Link to comment Share on other sites More sharing options...
Nine Posted December 21, 2022 Share Posted December 21, 2022 look at Opt (help file) under MouseCoordMode. Set it to Window mode. “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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now