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 


[Delphi]Custom Hotkey to Postmessage

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

Joined: 09 Nov 2008
Posts: 17

PostPosted: Fri Oct 23, 2009 11:02 pm    Post subject: [Delphi]Custom Hotkey to Postmessage Reply with quote

I'm having a little trouble here.

I'm making a bot for a game and I want to make it in a way whereby the user can change the hotkey which they want to spam.

But whenever I enable it, it will spam both "A" and "B"... That's not the result that I want.

Anybody can share a helping hand?

Here is my code
pastebay. com /63019 (Remove the spaces)
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Oct 23, 2009 11:27 pm    Post subject: Reply with quote

oh god, are you really using a gigantic combo box with all the key possibilities?

just use a hotkey control and pull it from there.
http://msdn.microsoft.com/en-us/library/bb775233%28VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/bb775235%28VS.85%29.aspx
Back to top
View user's profile Send private message
andykhoo
Newbie cheater
Reputation: 0

Joined: 09 Nov 2008
Posts: 17

PostPosted: Sat Oct 24, 2009 4:27 am    Post subject: Reply with quote

I see many people uses combobox and i dun think this work...
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Mon Jan 25, 2010 2:52 am    Post subject: Reply with quote

Use Thotkey
And this function
Code:
procedure ShortCutToHotKey(HotKey: TShortCut; var Key : Word; var Modifiers: Uint);
var
  Shift: TShiftState;
begin
  ShortCutToKey(HotKey, Key, Shift);
  Modifiers := 0;
  if (ssShift in Shift) then
  Modifiers := Modifiers or MOD_SHIFT;
  if (ssAlt in Shift) then
  Modifiers := Modifiers or MOD_ALT;
  if (ssCtrl in Shift) then
  Modifiers := Modifiers or MOD_CONTROL;
end;
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