Helicopter Bot

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Helicopter Bot

Postby gibxam » Fri Oct 10, 2008 11:57 am

Hello I want to try to make a bot similar to the minesweeper bot but it will be updated in real time. I need a jump start for how to write a script that knows what is a wall and what is space how would I go about discovering this?

http://www.addictinggames.com/helicopter.html

Thank you,

-Max
User avatar
gibxam
Acker
 
Posts: 51
Joined: Mon Oct 06, 2008 3:19 am

Postby gibxam » Fri Oct 10, 2008 12:45 pm

Sorry for the double post but I have made a little bit of progress. I still have the same question as before but I have at least a start now. here is my script so far

Code: Select all
void On_HK_4( DWORD dw1, DWORD dw2 )
{
   HWND hWnd = FindWindow("Helicopter Game - Free Arcade & Classic Game from AddictingGames - Mozilla Firefox");
   if(hWnd)
   PrintF("Window Found");
   
   ShowWindowAsync( hWnd, SW_RESTORE );
    while ( GetForegroundWindow() != hWnd )
      {
         SetForegroundWindow( hWnd ); Sleep( 10 );
      }
      
   for(int i =0; i < 100; i++)
   {
      
      MouseEvent( MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN, 0, 0, 0 );
      MouseEvent( MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP, 0, 0, 0 );
      
       
   }
   
}


The things I still don't understand:
1. I need to find the position of the window of the game
2. I need to move my mouse so it is at least inside the window to be able to have the click actually move the helicopter.
3. I need to find the position of the helicopter
4. And I also still need to find out what is a wall and what is space

So far the clicks are just random and the helicopter goes in a straight line untill it runs into something but it is still a start :). I'm very excited to here how I can solve these problems. Thank you

-Max
User avatar
gibxam
Acker
 
Posts: 51
Joined: Mon Oct 06, 2008 3:19 am

Postby L. Spiro » Fri Oct 10, 2008 6:49 pm

#1: The same way as is done in the Minesweeper demo.
#2: The same way as is done in the Minesweeper demo.
#3: By hacking the RAM and reading the value, which you can not do since it is a Flash game.
#4: You can not do this; it is a Flash game.


Complex Addresses for Flash games are too complex. You need to focus on a normal game.
Abandon this project.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby gibxam » Fri Oct 10, 2008 9:23 pm

:sigh: Ok I will L. Spiro,

Thank you for the quick reply. I will find another project.

-Max
User avatar
gibxam
Acker
 
Posts: 51
Joined: Mon Oct 06, 2008 3:19 am

Postby CTS_AE » Tue May 26, 2009 12:49 pm

surely sorry for bringind a dead topic to the front
I haven't even seen the layout of this board, but I was just googling arround.

But one way you could possibly do this is by reading pixels, knowing how fast the walls are coming at you which maybe you could decompile the swf and find the forumulah they use, as well was what the the gravity is for the plane falling, all in all, it'd require alot of math work and pixel reading isn't too fast thus, it'd probally fail pretty hard, but the idea is tangible, but for the sake of what?
CTS_AE
I Have A Few Questions
 
Posts: 3
Joined: Tue May 26, 2009 12:46 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron