Jump to content

mouse pos acording to gui


corgano
 Share

Recommended Posts

i want to make my script click at 10,10 accorting to the top left corner of my gui instead of 10,10 acording to my screen

i want it to click on the gui instead of the very top left corner of the screen.

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

Opt('MouseCoordMode', 0)

After that you'll need to make sure your window is active otherwise the coordinates will get computed according to the active window (which might be the desktop, for example, if it's the active window).

this will work.

if i wanted to get mousepos according to the gui then how would i do it?

Edited by corgano

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

...Then you'll need to use your brain to search the help file for reasonably making sense expression :) like: "mouse", "mouse position"... Again you'll come up with this:

Opt('MouseCoordMode', 0)

Dim $Coords = MouseGetPos()

May return negative values if it's lefter or upper to the current active window.

Link to comment
Share on other sites

...Then you'll need to use your brain to search the help file for reasonably making sense expression :) like: "mouse", "mouse position"... Again you'll come up with this:

Opt('MouseCoordMode', 0)

Dim $Coords = MouseGetPos()

May return negative values if it's lefter or upper to the current active window.

ok thanks. just wanted to be sure it also worked for getinf the pos as well.

i have made a program that gets the mouse pos

can i have it get BOTH from active wintow AND from top left corner of the screen?

because its a opt how can i have it only effest one and not both?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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