Sending keystrokes(need help)

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Sending keystrokes(need help)

Postby SpeedWing » Tue Apr 21, 2009 1:20 am

so far i got this, the problem is that it does not sends the keystrokes.
it works for msn, but not for the legend of ares. I wonder what would be the problem.

Code: Select all
extern struct hp{
   BYTE bBuffer[0x118];
   DWORD dwValue;      
} * hpBase = {"", 0x689F88};
extern struct mana{
   BYTE bBuffer[0x83C];
   DWORD dwValue;      
} * manaBase = {"", 0x689F88};

BOOL bAddy;

char * charhppot = "2";  //macro 2
char * charmanapot = "3"; //macro 3


VOID Addy(DWORD dwParam){
   while(bAddy == true)
   {
   //making vars with the values of the hp and the mana
   short sHp = hpBase->dwValue;
   short sMana = manaBase->dwValue;
   PrintF("Hp: %u", sHp);
   PrintF("Mana: %u", sMana);
     
   //hp part of the script
   if(sHp < 70){//under this hp there will be potted
   Type( charhppot );
   PrintF("HpPot");//i did this to check if the script runs and it does.
   }
     
     
//because i test it i only want it to run every 1 second
Sleep(1000);
   }
                                    }   
 



VOID On_HK_3( DWORD dw1, DWORD dw2 ) {
   //bAddy false or True
    bAddy = !bAddy;   
   //( i made these just so i can see if bAddy is true or false)
    if (bAddy == true){ PrintF("On");} //on
    if (bAddy == false){ PrintF("Off");}//off
    //void addy maken
    if (bAddy == true)
   {
      HANDLE hAddy = CreateThread("Addy", 0);
      if (!hAddy) { bAddy = false; return; }
      CloseHandle(hAddy);
   }
}
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby L. Spiro » Tue Apr 21, 2009 4:38 am

Your game blocks key strokes.
If all you want is to print the values, use a second monitor or use GetWindowDC() to draw to the game screen manually.


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

Postby SpeedWing » Tue Apr 21, 2009 8:59 pm

L.Spiro, the strange thing is. a few weeks ago someone actually used an "autotyper".

is there an other way to send a keystroke with lss?

edit: i see the KeyBoardEvent function

i saw the example of Mezzo in a previous post, but I don't understand how to send for example the number "2"
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron