smokinbudz Posted December 6, 2007 Share Posted December 6, 2007 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 More sharing options...
Developers Jos Posted December 6, 2007 Developers Share Posted December 6, 2007 MouseClick() ? 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 More sharing options...
BrettF Posted December 6, 2007 Share Posted December 6, 2007 I was wondering if anyone could help me by telling me the command for Lmouse and Rmouse buttonsEx:Global $PausedHotKeySet("{HOME}", "TogglePause")HotKeySet("{END}", "Terminate")While 1Sleep(1000)Send("5") <----------how can i change this 5 to left mouse click or right mouse clickWEndFunc TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('"Paused"',0,0) WEnd ToolTip("")EndFuncFunc Terminate() Exit 0EndFuncSorry am new to macros, but you guys are very helpful thanks in advanceMouseClick? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
smokinbudz Posted December 6, 2007 Author Share Posted December 6, 2007 Well I tried: Send("MouseClick(Right)") but that doesnt work. I'm just not sure how to word the command is all Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2007 Developers Share Posted December 6, 2007 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 More sharing options...
smokinbudz Posted December 6, 2007 Author Share Posted December 6, 2007 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 More sharing options...
DW1 Posted December 6, 2007 Share Posted December 6, 2007 use the Au3Info tool that came with autoit to see the current mouse position... or write your own script AutoIt3 Online Help Link to comment Share on other sites More sharing options...
smokinbudz Posted December 6, 2007 Author Share Posted December 6, 2007 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2007 Developers Share Posted December 6, 2007 (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 December 6, 2007 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 More sharing options...
smokinbudz Posted December 6, 2007 Author Share Posted December 6, 2007 got it thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now