CaseyJones Posted February 10, 2007 Share Posted February 10, 2007 I need help scripting a very simple command but i have never used AutoIt. I need a script that will allow me to imitate holding the right or left click of a mouse button until the script is stopped. If anyone could give me one or both of the scripts (one for left mouse, one for right mouse) that would be very helpful. Link to comment Share on other sites More sharing options...
Paulie Posted February 10, 2007 Share Posted February 10, 2007 I need help scripting a very simple command but i have never used AutoIt. I need a script that will allow me to imitate holding the right or left click of a mouse button until the script is stopped. If anyone could give me one or both of the scripts (one for left mouse, one for right mouse) that would be very helpful.MouseDown()See HelpFile. Link to comment Share on other sites More sharing options...
Zedna Posted February 10, 2007 Share Posted February 10, 2007 Welcome to AutoIt comunity. Look at HotkeySet, While, MouseClick in AutoIt HelpFile - there are also nice examples Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CaseyJones Posted February 10, 2007 Author Share Posted February 10, 2007 I'm completely lost. Could you provide a script for me that will click and hold the mouse on a keystroke command (such as "Page down" or "End") and release the mouse once the keystroke is pressed again? Link to comment Share on other sites More sharing options...
goku Posted February 10, 2007 Share Posted February 10, 2007 Desperately seeking HELP!I am new to AutoIt. I have done some research on this topic of mine and have had very little success. If anyone can assist me with any information regarding my "little" problem please e-mail me.I need a program that can read multiple excel files with multiple excel sheets. The program must be able to read/search all my suppliers excel documents and display the search results in a data grid with my sales price. --Must also be able to generate my own price list for my clients.--PROGRAM"Import" each excel work book & sheet-s into the program. Select which two columns (PRICE & ITEM DESCRIPTION) i want to be able search and specify which columns are primary and secondary. Apart from that give that specific workbook a name that must show in the search results.Read information from the pre-specified two columns from all sheets and workbooks and filter the information as i request my search. Once the search has completed it should display all information in a grid view.Search results must be as such:example:| Supplier | Item | Cost Price | Price Incl.Tax | Price Incl. Tax + Comm | Commission | NASA - MOON - $1 - $1.14 - $1.35 - $0.21 IDIOT - IRAQ - $2 - $2.28 - $2.71 - $0.43I Thank you for any help that i may receive.>>> J <<<e-mail : vondempter@gmail.com Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2007 Share Posted February 10, 2007 @Goku: You should have created a new topic, but welcome to the forum, @CaseyJones try: $on = 0 HotKeySet ("{PGDN}", "FunctionDown") While 1 Sleep (100) WEnd Func FunctionDown () IF $on = 0 Then MouseDown ("left") $on = 1 Else MouseUp ("left") $on = 0 EndIf EndFunc 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...
CaseyJones Posted February 10, 2007 Author Share Posted February 10, 2007 (edited) Why are u posting in my thread? Make your own Thanks bert I will try that It worked flawlessly, thanks Edited February 10, 2007 by CaseyJones Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2007 Share Posted February 10, 2007 Why are u posting in my thread? Make your ownThanks bert I will try thatIf you want to change the hotkey, lookup Send () in the helpfile. There is a complete list. Hope it works 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...
Hello Me You Posted February 10, 2007 Share Posted February 10, 2007 Try MouseDown() Take a look at the help file Random 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