Jump to content

Recommended Posts

Posted

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)

 

Posted

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.

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...