Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.
Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
-
3cmSailorfuku
- Posts: 354
- Joined: Mon Jan 21, 2008 6:25 pm
#1
Post
by 3cmSailorfuku » Fri Mar 07, 2008 11:48 am
Suggestions & fixes please.
It's my first script. That's why it looks stupid and got stolen snippets.
Code: Select all
IsMenuOpen_addr = 0x00108CC0;
function main()
attach( findWindow("DJMAX") );
proc = openProcess( findProcess("DJMAX") );
setPriority(PRIORITY_HIGH);
while(true) do
IsMenuOpen = memoryReadInt(proc, IsMenuOpen_addr);
if( IsMenuOpen() > 1 ) then
keyboardPress(VK_D);
keyboardPress(VK_F);
keyboardPress(VK_SPACE);
keyboardPress(VK_J);
keyboardPress(VK_K);
end
if( IsMenuOpen() == 1 ) then
mouseSet(233, 451);
mouseLClick();
end
yrest(50);
end
end
startMacro(main, true);
I think the error I got in MicroMacro was that I cant call a global value or something like that.
Too lazy to check it now.
-
Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
#2
Post
by Administrator » Fri Mar 07, 2008 8:08 pm
It's hard to say without the log. At first look, everything looks fine. The only thing I see that could be a problem is startMacro(). You're calling it with the second parameter, which I just added for the Perfect World bot version. If you aren't using the MicroMacro included with that, then that's probably what the error is. I hope to update again this weekend (0.96c), it just needs a little more testing.
EDIT: Oh, duh. You're calling IsMenuOpen(). IsMenuOpen is a variable, you don't want to call it as a function. Just remove the ().
-
3cmSailorfuku
- Posts: 354
- Joined: Mon Jan 21, 2008 6:25 pm
#3
Post
by 3cmSailorfuku » Sat Mar 08, 2008 6:07 am
elverion wrote:It's hard to say without the log. At first look, everything looks fine. The only thing I see that could be a problem is startMacro(). You're calling it with the second parameter, which I just added for the Perfect World bot version. If you aren't using the MicroMacro included with that, then that's probably what the error is. I hope to update again this weekend (0.96c), it just needs a little more testing.
EDIT: Oh, duh. You're calling IsMenuOpen(). IsMenuOpen is a variable, you don't want to call it as a function. Just remove the ().
Yea I am using the pw edition ;D And thanks, that was some silly mistake I did. Better not copy again from your bots lol.
Who is online
Users browsing this forum: No registered users and 4 guests