-
★ Elder ★
Lorekeeper of Exploration
Read-write bot
Hello, I've created a small automation tool for work, and this is a topic to share it to you.
Currently it does :
[Readbot] Records mouse movements/clicks, and keyboard inputs
[Writebot] Playback the record once, or loop indefinitely
Restrictions :
- 4k resolution causes an issue with the mouse : coordinates are offsetted a bit.
It could be because of the way I get coordinates : (65536/GetSystemMetrics(SM_CXSCREEN))
But I didn't really try to fix it yet.
- Looping only works for text, there's currently an issue for mouse movement when looping (don't know why, didn't search why).
Code can be found here : https://github.com/Nyarlygames/Write_Read-bot
It's commented a bit, and shouldn't be too messy. Feel free to ask questions if you have hard times understanding something.
Executables can be found here : https://github.com/Nyarlygames/Write...master/Release
Usage :
- Open WriteBot.exe
- Go to the start point of your bot
- Press PageUp to start recording
- Do inputs
- Press PageDown to stop recording
- Open ReadBot.exe
- Go to the start point of your bot
- Press PageUp to start playing the track once
- Press Home to start playing the track unlimited times
=> The bot will perform the action recorded again
- Press PageDown to stop the loop
Example :
- Full video : http://nyarly.fr/videos/Bot.mp4 (playback starts at 30sc)
- Result on paint : http://nyarly.fr/videos/Bot.jpg
Why am I posting this newb code?
1) It could be useful to someone
2) If can be a starting point to do something else with inputs recording/playback
3) It's quite fun and somehow working already
But the main reason is :
I tried using every clocks available, and I can't find a reliable one that can play the inputs at the proper timing every time, depending on the performances.
All I want is to have a tool that can play a set of inputs with the exact same timing every time it's used, even if I have lags, and even if I use it on a different computers.
And here is where I need help : do you think this is possible ? do you have any hints on how I should do it or what I should use ? Do you see mistakes in my code that would explain why it doesn't do it already ?
Thank you very much for any answers, and have fun if it's useful to you.
Last edited by Nyarly; 12-28-2015 at 05:44 PM.
-
Post Thanks / Like - 5 Thanks
-
-
Originally Posted by
Nyarly
Nobody has any clue about my questions ?

I don't but thanks for posting ^_^.
This is clearly maclone and smithers territory : P
-
Post Thanks / Like - 1 Thanks
Nyarly (1 members gave Thanks to hackerlol for this useful post)