yeto Posted June 30, 2019 Posted June 30, 2019 Hi, Can someone point me in the right direction. I need a left mouse click script that clicks at the current mouse position which is not a problem but I also need to be able to set the time of day of the mouse click. Can someone help as to how I can add the time of day part of the script? Thank you in advance for any help, yeto
Subz Posted June 30, 2019 Posted June 30, 2019 Welcome to Autoit, just for future reference, Look at the macros for year, month, day, hour, min and sec https://www.autoitscript.com/autoit3/docs/macros.htm.
yeto Posted July 1, 2019 Author Posted July 1, 2019 19 hours ago, Subz said: Welcome to Autoit, just for future reference, Look at the macros for year, month, day, hour, min and sec https://www.autoitscript.com/autoit3/docs/macros.htm. Could you provide a sample script to get me started as to how to make the time hour, minute and second macros work with mouse click? Thank you, yeto
Subz Posted July 1, 2019 Posted July 1, 2019 "I also need to be able to set the time of day of the mouse click" Have no idea what you're trying to achieve, comment above is vague, please provide the code you've tried and we might be able to figure it out.
yeto Posted July 2, 2019 Author Posted July 2, 2019 21 hours ago, Subz said: "I also need to be able to set the time of day of the mouse click" Have no idea what you're trying to achieve, comment above is vague, please provide the code you've tried and we might be able to figure it out. If @HOUR is & @MIN is & @sec is Then MouseClick ("left") How do I input the hour, minute and second that I would like for the mouse to click? Thank you for any help, yeto
FrancescoDiMuro Posted July 2, 2019 Posted July 2, 2019 @yeto Your statement about what you're trying to do is still vague and badly formatted. If you are trying to save somewhere the moment of a particular mouse click, then you need to use File* functions to write to a file that moment; otherwise, if you are trying to schedule a mouse click, then the way to run across is different. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
yeto Posted July 2, 2019 Author Posted July 2, 2019 58 minutes ago, FrancescoDiMuro said: @yeto Your statement about what you're trying to do is still vague and badly formatted. If you are trying to save somewhere the moment of a particular mouse click, then you need to use File* functions to write to a file that moment; otherwise, if you are trying to schedule a mouse click, then the way to run across is different. I am sorry for the lack of information. I am brand new at this. I have studied hours of tutorials and Google searches but I am just not getting it. Yes, I want to schedule a mouse click. I will be in front of my computer so I don't need x,y coordinates. I can place the cursor myself. When my computer clock hits a certain time I would like for the mouse to left click. I need to specify the time down to milliseconds. I want to learn AutoIt and this is my first try. "if you are trying to schedule a mouse click, then the way to run across is different." Can you point me to a tutorial that will teach me how to code the "run across"? Thank you for taking time to reply, yeto
FrancescoDiMuro Posted July 2, 2019 Posted July 2, 2019 3 hours ago, yeto said: When my computer clock hits a certain time I would like for the mouse to left click. I need to specify the time down to milliseconds. You could use Task Scheduler to start the script one minute before you need the MouseClick(), and then, make a click with more precision using the script. Take a look at Timer* or _Timer* functions in the Help file Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
yeto Posted July 2, 2019 Author Posted July 2, 2019 10 minutes ago, FrancescoDiMuro said: You could use Task Scheduler to start the script one minute before you need the MouseClick(), and then, make a click with more precision using the script. Take a look at Timer* or _Timer* functions in the Help file Thank you. I will take a look. This seems overly complicated though.
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