Jump to content

Need Help With Simple Script >.<


Recommended Posts

Hi,

how do i make a script that shows he mouseposition when I leftclick somewhere ??

some1 pz help :)

thx :D

no function can be synchronize on a Leftclick. :huh2:

The only possibility is to use an hotkey after moving the mouse where you want to leftclick.

You can leftclick with mouseclick, you can get the mouse postion with MouseGetPos

I hope that help

Link to comment
Share on other sites

hotkeyset("^a", "pos")

hotkeyset("{ESC}", "end")

$1 = 0

SplashTextOn ( "Help", "Press ctrl+A to get the position and esc to stop", 100, 100)

sleep(2000)

splashoff()

while $1 = 0

Wend

func pos()

$pos = MouseGetPos()

MsgBox(0, "Mouse x,y:", $pos[0]& "," & $pos[1])

endfunc

func end()

exit

endfunc

done :D works fine ^^

:edit

changed script a little :huh2:

Edited by dazzyreil
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...