torque3d Posted October 6, 2019 Posted October 6, 2019 Hi there . I write this code for creating a new text document but sometimes it works and sometimes not . Instead of holding cursor on new (for creating text file ) it holds on display setting which is bellow the new !? why ? but sometimes works !! MouseMove(1400, 200) MouseClick($MOUSE_CLICK_RIGHT) Sleep(500) MouseMove(1430, 530) Sleep(1000) MouseMove(1350, 900) Sleep(1000) MouseClick($MOUSE_CLICK_LEFT) Sleep(500) MouseClick($MOUSE_CLICK_LEFT) Sleep(200) MouseMove(1390, 220) MouseClick($MOUSE_CLICK_LEFT) MouseClick($MOUSE_CLICK_LEFT)
Marc Posted October 6, 2019 Posted October 6, 2019 Just guessing, but try Opt("MouseCoordMode",0) Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window Of course the coordinates you get with the "AutoIt Window Info" must fit the used mode. torque3d 1 Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
Nine Posted October 6, 2019 Posted October 6, 2019 If you want to create a new .txt file with notepad just do : run ("notepad.exe") Instead of using fuzzy mouse* functions torque3d 1 “They did not know it was impossible, so they did it” ― Mark Twain Reveal hidden contents 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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