Resonanace Posted August 2, 2011 Share Posted August 2, 2011 Okay, so I've used scripts created by others for simple things before and I am now attempting to make my own. I understood a lot of the coding by reading through the scripts (Yay for good comments), but there is a function I'm not sure which command to use. Basically, I want to left click location A and then move the cursor to location B before whilst still clicking, and then release. Think of something like simply highlighting a group of cells in a spreadsheet or such. I tried using a record to generate the code and got something along the lines of: MouseMove(29,563) MouseDown("left") MouseMove(281,465) MouseUp("left") I don't fully understand this one, and I was wondering if something like MouseClickDrag would be simpler. Any ideas on what the best way to code it is? Link to comment Share on other sites More sharing options...
pieeater Posted August 2, 2011 Share Posted August 2, 2011 (edited) maby MouseMove() is the function you want Edited August 2, 2011 by pieeater [spoiler]My UDFs: Login UDF[/spoiler] Link to comment Share on other sites More sharing options...
Resonanace Posted August 2, 2011 Author Share Posted August 2, 2011 MouseMove, I believe, just simply moves it to whatever location with no clicking. Link to comment Share on other sites More sharing options...
pieeater Posted August 2, 2011 Share Posted August 2, 2011 right. move the mouse to location a then use MouseClickDrag to drag it to location b. i could be wrong because i never use those functions but just what i thought might work [spoiler]My UDFs: Login UDF[/spoiler] 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