Hi, I have been making a macro building program. I am trying to handle mouse events right now. I have made a program that hooks the mouse, then puts information into a text file which is then read by another program. The recorder writes the delay in milliseconds, so the events don't just happen at one time. It then writes the type of the event. Then it writes the other information like X and Y, right mouse button, wheel, intensity, etc. . I have no idea if this is a good way to do this or not, or how to read the file so I can simulate mouse events. Please help.:icon_neutral:
The code is attached. I'm using Dev-C++ 126.96.36.199.
Here is some output from the program that records the mouse:
1922 MMOVE 530 437 1938 MMOVE 529 437 3078 MWHEEL 120 7422 MDOWN R 7594 MUP R 11031 MMOVE 529 436 11094 MMOVE 529 435 11172 MMOVE 529 435 11188 MMOVE 529 434 11250 MMOVE 529 434 11860 MMOVE 528 434 11875 MMOVE 528 434 11953 MMOVE 527 434 12547 MDOWN L 12625 MUP L