Search found 4474 matches

by Administrator
Sat Jul 05, 2008 8:14 pm
Forum: Everything else
Topic: Shaiya Fighter Bot
Replies: 221
Views: 73268

Re: Shaiya Fighter Bot

Code: Select all

  if( HP <= 0 ) then     -- if you're dead
    keyboardHold(key.VK_LALT); -- hold ALT
    keyboardPress(key.VK_F4); -- press F4
    keyboardRelease(key.VK_LALT); -- release
  end
by Administrator
Sat Jul 05, 2008 1:11 pm
Forum: MicroMacro general & support
Topic: System Sound?
Replies: 2
Views: 1235

Re: System Sound?

Code: Select all

printf("\a"); // \a means to send a system beep to the standard output.
by Administrator
Wed Jul 02, 2008 8:36 pm
Forum: Everything else
Topic: Shaiya Fighter Bot
Replies: 221
Views: 73268

Re: Shaiya Fighter Bot

You tell me. What's the error message?
by Administrator
Wed Jul 02, 2008 6:29 pm
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

Ok, lets try this again. This time I tested to make sure it worked (at least under XP) before I uploaded it. In the last version, it was not hooking the address (hence, not effecting the game in any way). This is what I've got logged: traget_hModule: 0x7e410000 GetProcAddress(target_hModule, "G...
by Administrator
Wed Jul 02, 2008 5:36 pm
Forum: Everything else
Topic: Shaiya Fighter Bot
Replies: 221
Views: 73268

Re: Shaiya Fighter Bot

Wait, what? Both of them? There should only be one instance of "--sprintf = string.format;" in micromacro/lib/lib.lua. That is the one you need to remove the "--" from.
by Administrator
Wed Jul 02, 2008 12:20 pm
Forum: Everything else
Topic: Shaiya Fighter Bot
Replies: 221
Views: 73268

Re: Shaiya Fighter Bot

That was my mistake. Open your lib/lib.lua file in notepad, and press CTRL+F. Search for "--sprintf" (without quotes). On the line that it finds, remove the -- then save and restart MicroMacro.
by Administrator
Wed Jul 02, 2008 3:02 am
Forum: MicroMacro general & support
Topic: Error - attempt to call global 'sprintf' (a nil value)
Replies: 1
Views: 1355

Re: Error - attempt to call global 'sprintf' (a nil value)

Woops. Looks like I accidently commented that line out. Just open lib.lua, and find

Code: Select all

--sprintf = string.format;
Remove the -- and you're set.
by Administrator
Wed Jul 02, 2008 2:59 am
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

Can you define "not working"? Do you mean it starts, but does not prevent outside input from effecting Shaiya? Or do you mean that once it locks onto the window, you cannot input any method? And yes, it should give the same HWND. I might've created a bug somehow, so it may not be on your e...
by Administrator
Tue Jul 01, 2008 11:18 am
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

zerosignal: Try injecting this version of the DLL, then post your hooklog.txt here. You will find this file in the Shaiya folder after injecting (or, attempting to, rather).
by Administrator
Tue Jul 01, 2008 10:35 am
Forum: MicroMacro general & support
Topic: Is MicroMacro able to read color codes?
Replies: 1
Views: 1381

Re: Is MicroMacro able to read color codes?

Sure can. You can get the full details on it in the manual->process functions->getPixel(). You really only need the hardware to device context (HDC) opened once, and will typically do that before entering your main loop (the while(1) section).
by Administrator
Mon Jun 30, 2008 7:20 am
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

No, not using os.execute(). It can be attached after the game has started by doing this:

Code: Select all

  local success = inject(findWindow("Shaiya"), getPath() .. "/data/hook_GetAsyncKeyState.dll");
  if( success == false ) then
    printf("Injecting has failed.\n");
  end
by Administrator
Mon Jun 30, 2008 1:16 am
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

I'm thinking the crashes have more to do with how it hooks. Try running Shaiya under Windows XP compatability mode. Let me know if that works.
by Administrator
Sun Jun 29, 2008 11:00 pm
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

You can use os.execute(path .. exe_name .. " game start"); to launch it without injecting.
by Administrator
Sun Jun 29, 2008 6:59 pm
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

Ok, I think I've made the necessary fixes. It's strange that it crashed for you, but not for me under WinXP 32bit.
by Administrator
Sun Jun 29, 2008 1:27 am
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

Rather than manipulate the binary (which can be difficult -- especially in this case), I've started writing a DLL which can be injected, and overrides GetAsyncKeyState(). It is now officially working. Download hook_GetAsyncKeyState.dll and put it in micromacro/data folder. You will then use the shai...
by Administrator
Sat Jun 28, 2008 12:45 pm
Forum: MicroMacro general & support
Topic: v0.96 - Application not recieving input
Replies: 11
Views: 3206

Re: v0.96 - Application not recieving input

Nice find. I never would have figured that out. I'm sure there is a way to get the full window name (and/or class). If you can find information on that, I can perhaps write a fix that willll prevent MicroMacro from targeting those windows.
by Administrator
Sat Jun 28, 2008 12:43 pm
Forum: MicroMacro general & support
Topic: shaiya - Using multiple window instances, and keyboard input
Replies: 35
Views: 14342

Re: shaiya - Using multiple window instances, and keyboard input

As far as I know, there's nothing that can be done about it. It should be considered a bug in Shaiya and fixed. Like you said, it happens even if you press enter in a whole other window. I'm guessing that this is because they used GetKeyState()/GetAsyncKeyState() where they shouldn't have. I suppose...
by Administrator
Sat Jun 28, 2008 7:13 am
Forum: Everything else
Topic: Shaiya bot
Replies: 432
Views: 145175

Re: Shaiya bot

Nope. Ploxasaurus's game.exe was supposed to do just that, but apparently it didn't work. I couldn't get any more information from him about how to fix it. Also, it's pretty much pointless to multi-client, as the bot can only function on the focused window.
by Administrator
Fri Jun 27, 2008 10:48 pm
Forum: Everything else
Topic: Shaiya bot
Replies: 432
Views: 145175

Re: Shaiya bot

No. You need to spell things right. It also makes no sense that you have multiple else statements. __hp_use_count = 0; function use_hp_potion() if( __hp_use_count < 10 ) then keyboardPress(key.VK_NUMPAD1); elseif( __hp_use_count < 20 ) then keyboardPress(key.VK_NUMPAD2); elseif( __hp_use_count < 30 ...
by Administrator
Fri Jun 27, 2008 6:46 pm
Forum: Everything else
Topic: Shaiya bot
Replies: 432
Views: 145175

Re: Shaiya bot

You can find information on that here.