Cannot Find My Game On Task Manager...

You may request or share scripts for MicroMacro in this forum.
Post Reply
Message
Author
marmaduke
Posts: 1
Joined: Fri Jul 01, 2011 9:28 am

Cannot Find My Game On Task Manager...

#1 Post by marmaduke » Wed Jul 06, 2011 9:13 am

Hi,, i have made script for battle of immortals indonesia,
it run just fine in my computer windows 7 64 bit,

but here is the problem that i got,, when i run it on my other computer windows 7 32 bit,, it cannot start.

I think i found the problem,, on win 7 32 bit,, the game is hidden on the task manager (only the proses game.exe) i cannot see it on the Applications tab.

so i wonder , how to solve this problem? how to attach the game in 32 bit?

Code: Select all

BOT_VERSION = 1.70; 

include("functions.lua");
---------------------------------------------------------------------------
--ADDRESSES
---------------------------------------------------------------------------

proc = 0;
win = 0;

---------------------------------------------------------------------------
--SETTINGS
---------------------------------------------------------------------------

setStartKey(key.VK_DELETE)
setStopKey(key.VK_END)


------------------------------------------------
-- Variable setup
------------------------------------------------
kill = 0;


---------------------------------------------------------------------------
--MAIN MACRO
---------------------------------------------------------------------------

function main()


-- Greeting
cprintf(cli.green, "Welcome To BOI BOT!\n");
cprintf(cli.green, "version [%s]", BOT_VERSION);
cprintf(cli.green, " Enjoy\n");
cprintf(cli.green, "\n");

--Attach
	cprintf(cli.red, "Looking For Client\n");
		win = findWindow("Battle*");
		local wx,wy,ww,wh = windowRect(win);
		
if( win == 0 ) then printf("Error! Could not locate Battle of Immortals window!\n"); 
return; 
end;
 hdc = openDC(win)
 proc = openProcess( findProcess("Battle*") );
 attach(win);
		win = getHwnd();
		cprintf(cli.red, "Attach Success\n");
		cprintf(cli.yellow, "Starting.......\n");
		 printf("\n");

name = memoryReadString(proc, 0x00BDD730);
setWindowName(win, sprintf("BOI Bot %s - %s", BOT_VERSION, name))

expstart = memoryReadInt(proc, 0x00EFCE68);

registerTimer("updateVar", 100, updateVar);
registerBuffs();



while( 1 ) do

call_stat();
target_monster();
yrest(1200);
end
end



startMacro(main);

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Cannot Find My Game On Task Manager...

#2 Post by Administrator » Wed Jul 06, 2011 10:23 am

Is it failing to find the window or the process? Have you tried findProcessByWindow()? How about findProcessByExe()? Does the game use GameGuard or something?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests