Jump to content

Newbie Help


Recommended Posts

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

Link to comment
Share on other sites

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?
Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Developers

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.
  :)

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...