Jump to content
  • Advertisement
Sign in to follow this  
willthiswork89

Macro Making

This topic is 4685 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have MSVS .net 2003 and i want to make a macro in my program that users can record then play it if you know what i mean...clicks and stuff? im not sure how to go about doing that, tutorials and stuff i googled it but i got programming macros for your source code.

Share this post


Link to post
Share on other sites
Advertisement
There are no secret recipes for that. Depending on the type of program, you might actually want to record the mouse movement, the keypress and/or only the actions performed by the user. There's no "easy" way to do this.

Share this post


Link to post
Share on other sites
Quote:

There's no "easy" way to do this.


It should be relatively straightforward to record windows messages into some sort of queue along with timing information, though practical use of such recordings would be questionable, since something as trivial as running the app at a different resolution would 'break' the recording.

Share this post


Link to post
Share on other sites
Quote:
Original post by willthiswork89
so nobody knows how this is done?
I imagine that it would use much of the same logic as a general undo system. So each action taken would be saved in a generalized action class and pushed onto a stack. Then you'd place a marker at the beginning of the recording and then preserve the entire sequence separately for playback when done, possibly minus the previous state of things only required for undo.
If you've implemented one it should be fairly trivial to implement the other really..

Share this post


Link to post
Share on other sites
yea i know this stuff...i know its hard and i know its not easy, but i dont know what needs to be used what to look at what to search for....from what i see i need to use activity hooks, i only need to record clicks and mouse movements.

Share this post


Link to post
Share on other sites
i have no idea reallyi wanted a source code made in c# of this done so i could see how its done and possible write my own.but seems as if no one really knows what to do about it lol

Share this post


Link to post
Share on other sites
Quote:
Original post by willthiswork89
i have no idea reallyi wanted a source code made in c# of this done so i could see how its done and possible write my own.but seems as if no one really knows what to do about it lol
What kind of application are you writing exactly?
In general you'll need some kind of high-level event recording system (there's plenty of tutorials available on how to handle undos), raw input recording may work in some cases but for the most part it's probably insufficient.

Still.. Intercepting and playing back raw input messages is easy enough in Win32 so I assume that it's trivial in C#.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!