Page 1 of 1

Cannot Find My Game On Task Manager...

Posted: Wed Jul 06, 2011 9:13 am
by marmaduke
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);

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

Posted: Wed Jul 06, 2011 10:23 am
by Administrator
Is it failing to find the window or the process? Have you tried findProcessByWindow()? How about findProcessByExe()? Does the game use GameGuard or something?