Jump to content

Recommended Posts

Posted

I was wondering if anyone could help me by telling me the command for Lmouse and Rmouse buttons

Ex:

Global $Paused

HotKeySet("{HOME}", "TogglePause")

HotKeySet("{END}", "Terminate")

While 1

Sleep(1000)

Send("5") <----------how can i change this 5 to left mouse click or right mouse click

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('"Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Sorry am new to macros, but you guys are very helpful thanks in advance

Posted

I was wondering if anyone could help me by telling me the command for Lmouse and Rmouse buttons

Ex:

Global $Paused

HotKeySet("{HOME}", "TogglePause")

HotKeySet("{END}", "Terminate")

While 1

Sleep(1000)

Send("5") <----------how can i change this 5 to left mouse click or right mouse click

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('"Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Sorry am new to macros, but you guys are very helpful thanks in advance

MouseClick?
  • Developers
Posted

Well I tried:

Send("MouseClick(Right)")

but that doesnt work. I'm just not sure how to word the command is all :)

Guess you haven't checked the Helpfile to check the syntax for the mouseclick() command ... right ? ^_^

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Well I did look at help file.. but must have overlooked it lol. OK i just figured out the command by searching through old threads.

It seems that I have to insert the coordinates of the mouse cursor to click on though. followed by number of clicks and time etc... How do I find the coordinates of mouse cursor? What i mean by that, is there some way to position the mouse where I need it and see what coordinates that is?

Posted

Thanks, found the tool. I want it to click like mid-screen roughly which is like 500,400, one click, one secoond delay

While 1

Sleep(1000)

Send(MouseClick "(Right)",500,400,1,1000)

WEnd

Still doing something wrong here cause I get error.

  • Developers
Posted (edited)

It will really help when you take 5 minutes and read what is in the helpfile and look at the examples supplied. :)

You will find there is NO Send... and that the parameter for the right mouse key is wrong ...

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...