Sign in to follow this  
Followers 0
smokinbudz

Newbie Help

10 posts in this topic

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Well I tried:

Send("MouseClick(Right)")

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

Share this post


Link to post
Share on other sites

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 ? ^_^

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

use the Au3Info tool that came with autoit to see the current mouse position... or write your own script :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#9 ·  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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

got it thanks

Share this post


Link to post
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
Sign in to follow this  
Followers 0