taultunleashed logoFormat of .mac files? : Developer's Corner
newtopic  postreply
 [ 4 posts ] 
blue large dot

Format of .mac files? : Developer's Corner

Posted: July 9th, 2003, 1:45 pm
 
Tanek
Tanek's Reps:
User avatar
My sample .mac file:

17474593
256 818 3 17474656
257 818 3 17474750
256 818 3 17531812
257 818 3 17531890
256 818 3 17588328
257 818 3 17588421
0 0 0 17644984

What is the format of this file? (since I can't find the source code and try and figure out that way)

First line is what I guess is some kind of start timestamp?

Next lines I am guessing 256 is key down event, and 257 is key up event, followed by what may be what key was pressed, and an unknown value, and another timestamp when it occured.

And last line is what I think to be the timestamp of when macro ends.

But my biggest question is what is the format of the timestamp value?


Reply with quote
Posted: July 9th, 2003, 2:42 pm
 
Admin
Admin's Reps:
User avatar
The values are taken directly from the MFC structure EVENTMSG as follows:

DWORD message;
DWORD paramL;
DWORD paramH;
DWORD time;

You can get the time with the SDK function GetTickCount().

If you are planning on making your own macros, you can use an initial tick value of 0 if you wish. This is what we should have done, but were just lazy and used the tick values directly from the function instead of adjusting them to be 0 initially.


Reply with quote
Posted: July 15th, 2003, 12:03 pm
 
Tanek
Tanek's Reps:
User avatar
Thanks.


Reply with quote
Posted: July 15th, 2003, 12:53 pm
 
WyvernX
WyvernX's Reps:
User avatar
You can use the dll to record macros also. Just include the macrohelper dll and use the API functions: Play, Record, etc. . .


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 11 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Developer's Corner RSS Feed 

SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?