Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Sending keystrokes to gunbound

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
PriestproFye
Cheater
Reputation: 0

Joined: 13 Jul 2006
Posts: 29
Location: Singapore

PostPosted: Mon Mar 02, 2009 3:23 am    Post subject: Sending keystrokes to gunbound Reply with quote

I tried using Postmessage or sendinput and many others functions but i cannot send keystorkes to gb to make gb shoot.
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Mar 02, 2009 5:22 pm    Post subject: Reply with quote

Maybe because GameGuard hooked all those functions?
Back to top
View user's profile Send private message
PriestproFye
Cheater
Reputation: 0

Joined: 13 Jul 2006
Posts: 29
Location: Singapore

PostPosted: Tue Mar 03, 2009 2:45 am    Post subject: Reply with quote

I use the edited dll postmessage which is for maple bot, but does not work too.
Back to top
View user's profile Send private message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Tue Mar 03, 2009 8:47 am    Post subject: Reply with quote

post the functions your using
_________________
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Mar 03, 2009 1:52 pm    Post subject: Reply with quote

gb uses directinput not windows message queue
Back to top
View user's profile Send private message
PriestproFye
Cheater
Reputation: 0

Joined: 13 Jul 2006
Posts: 29
Location: Singapore

PostPosted: Wed Mar 04, 2009 2:12 am    Post subject: Reply with quote

So is there a way to like invade the directinput?
Back to top
View user's profile Send private message
123qwe
Newbie cheater
Reputation: 0

Joined: 26 Dec 2006
Posts: 21

PostPosted: Wed Mar 04, 2009 5:20 am    Post subject: Reply with quote

Code:
void TypeStr(char *lpszString)
{
  char cChar;
  while((cChar=*lpszString++)) // loops through chars
  {
    short vk=VkKeyScan(cChar); // keycode of char
    if((vk>>8)&1){keybd_event(VK_LSHIFT,0,0,0);} // hold shift if necessary
    keybd_event((unsigned char)vk,0,0,0); // key in
    keybd_event((unsigned char)vk,0,KEYEVENTF_KEYUP,0); // key out
    if((vk>>8)&1){keybd_event(VK_LSHIFT,0,KEYEVENTF_KEYUP,0);} // release shift if necessary
  }
}


TypeStr("hiii");
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Mar 04, 2009 5:30 am    Post subject: Reply with quote

keybd_event is a wrapper to sendinput
Back to top
View user's profile Send private message
PriestproFye
Cheater
Reputation: 0

Joined: 13 Jul 2006
Posts: 29
Location: Singapore

PostPosted: Thu Mar 05, 2009 12:58 am    Post subject: Reply with quote

I tried
keybd_event(VK_SPACE, 0, 0, 0);
keybd_event(VK_SPACE, 0, KEYEVENTF_KEYUP, 0);
but it not working...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites