Macro actions (mouse and keyboard) with Delphi

I know this could be an old topic, but I find really useful to know how to send the key strokes or how to simulate the mouse click using our favourite language: Delphi. It's for this, that I have create a small open source project where you can find one of my latest tools "thundax macro actions". In here you will be able to add a sequence of actions e.g move the mouse to a particular position, perform right click or left click and type any kind of message or just press a special key like CONTROL or F1, etc. to automate repetitive tasks or actions that you usually perform and that you need to do as quick as possible. As I always automate everything, it was a really nice idea to come up with this solution and it is quite pleasant to see it working for you. All the source code is available and it is free for anybody to inspect, comment and give suggestions to improve this little tool. I have used the tool to perform a series of operations without me interacting and it saved me loads of time.

Imagine that you need to go through a text where you need to add an extra character or something which would be really tedious to perform manually. With this stand-alone tool, you will be able to perform the same operation with just defining the list of actions to execute and off you go.

The code is really easy to understand and the way to send the key strokes or to perform the left/right click of the mouse are really easy to do. You'll find hundreds of examples on the net:

Here is the tool:

Download it from the following link:
There are still loads of things to do to complete the tool, but at least there is a working solution which can now be used.

Related links:

Comments

  1. Very good tool! Nice one! But I would add two things to make it perfect:
    · A wait command, so there is a pause between events (i.e. click in a button which opens a window, wait 100 ms until the window is actually opened, perform more operation in the window).
    · Save / Load from file, so the commands can be saved and loaded to the hard disk.

    Appart from that, it is really good the app!

    ReplyDelete
    Replies
    1. Thanks LoPiTaL,

      It's in my plan. Now it's hard-coded and it will wait 200ms for every command. And for the load/save I'll do it later on.

      Jordi

      Delete
  2. It's small but functional. Maybe stealth feature to run off screen and record user activity is needed to be added.
    Thanks for make the source available!

    ReplyDelete
    Replies
    1. Thanks Joko,

      I might add more features later on. But feel free to check out the source code and play with it.

      Jordi

      Delete
  3. is the source code available?
    thank you.

    ReplyDelete
    Replies
    1. Hi bahaa bou akl,

      Yes, source code is available as it is quite simple.

      Jordi

      Delete
  4. That's really good stuff. My buddies at work will definitely be awestruck ! Thanks for sharing.

    ReplyDelete

Post a Comment

Popular Posts