Jump to content

Clicking on current Mouse Positon

Recommended Posts

$szFunc = "MouseClick"
$szFile = RegRead("HKLM\SOFTWARE\AutoIt v3\AutoIt","InstallDir")
if $szFile <> "" Then
    Run(@ComSpec & ' /c START "" "' & $szFile & '\AutoIt.chm"',"",@SW_HIDE)
    WinWait("AutoIt Help")
    Send("!n" & $szFunc & "{ENTER}")

Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
Link to comment
Share on other sites

Dam i posted in the wrong section, i have V.2, can anyone move this puhlzz?

lol srry, im totally new to "real" scripting

ehh srry i dont think im getting you, can u put that in an example?

Edited by BooMeR
Link to comment
Share on other sites

$Mousepos = MouseGetPos()

This sould get you started


... I must resist the temptation to write a useless post ...

... I must resist ...

... I must ...

Warning: useless post below!

BooMeR has version 2 of AutoIt and has reposted this question to the V2 area.

You could write a script that has a hotkey function which sends the click to the current position of the mouse. Did V2 have hotkey? ...been too long.

run script

manually move mouse to the desired position

press hotkey

the script will then

"send the LeftClick command to the current x and y position of the mouse"

the script can then exit or loop as desired.

perhaps a useful script until you can replace that defective mouse :)

Edited by herewasplato


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

  • Recently Browsing   0 members

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