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 


HotKey+Simulation of Keypressing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Tue Jul 31, 2007 11:27 am    Post subject: HotKey+Simulation of Keypressing Reply with quote

Code:

procedure PostKeyEx32(key: Word; const shift: TShiftState; specialkey: Boolean);
{************************************************************
* Procedure PostKeyEx32
*
* Parameters:
*  key    : virtual keycode of the key to send. For printable
*           keys this is simply the ANSI code (Ord(character)).
*  shift  : state of the modifier keys. This is a set, so you
*           can set several of these keys (shift, control, alt,
*           mouse buttons) in tandem. The TShiftState type is
*           declared in the Classes Unit.
*  specialkey: normally this should be False. Set it to True to
*           specify a key on the numeric keypad, for example.
* Description:
*  Uses keybd_event to manufacture a series of key events matching
*  the passed parameters. The events go to the control with focus.
*  Note that for characters key is always the upper-case version of
*  the character. Sending without any modifier keys will result in
*  a lower-case character, sending it with [ssShift] will result
*  in an upper-case character!
************************************************************}
type
  TShiftKeyInfo = record
    shift: Byte;
    vkey: Byte;
  end;
  byteset = set of 0..7;
const
  shiftkeys: array [1..3] of TShiftKeyInfo =
    ((shift: Ord(ssCtrl); vkey: VK_CONTROL),
    (shift: Ord(ssShift); vkey: VK_SHIFT),
    (shift: Ord(ssAlt); vkey: VK_MENU));
var
  flag: DWORD;
  bShift: ByteSet absolute shift;
  i: Integer;
begin
  for i := 1 to 3 do
  begin
    if shiftkeys[i].shift in bShift then
      keybd_event(shiftkeys[i].vkey, MapVirtualKey(shiftkeys[i].vkey, 0), 0, 0);
  end; { For }
  if specialkey then
    flag := KEYEVENTF_EXTENDEDKEY
  else
    flag := 0;
  keybd_event(key, MapvirtualKey(key, 0), flag, 0);
  flag := flag or KEYEVENTF_KEYUP;
  keybd_event(key, MapvirtualKey(key, 0), flag, 0);
  for i := 3 downto 1 do
  begin
    if shiftkeys[i].shift in bShift then
      keybd_event(shiftkeys[i].vkey, MapVirtualKey(shiftkeys[i].vkey, 0),
        KEYEVENTF_KEYUP, 0);
  end; { For }
end; { PostKeyEx32 }

//I Generated a Basic Function of Continuos Key pressing of 'z' until 'v' is //pressed
procedure TForm1.Timer1Timer(Sender: TObject);
begin
If
Odd(getasyncKeyState(86))
Then
Repeat
/////////////////////////////////////////////////////////
////PostKeyEx32(VK_LWIN, [], False);/////////////////////
/////////////////////////////////////////////////////////
  PostKeyEx32(Ord('Z'), [], False);
/////////////////////////////////////////////////////////
/// PostKeyEx32(Ord('C'), [ssctrl, ssAlt], False)////////
/////////////////////////////////////////////////////////
  Until
  odd(getasynckeystate(86))
 End;

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Jul 31, 2007 5:09 pm    Post subject: Reply with quote

Copy pasted from swissdelphicenter.ch/torry ?
Back to top
View user's profile Send private message MSN Messenger
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Tue Jul 31, 2007 9:28 pm    Post subject: Reply with quote

Part of it, but of course, i edited the script and made it a Auto Bot.
Smile

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Wed Aug 01, 2007 3:45 am    Post subject: Reply with quote

ZenX wtf ?

thats only the procedure
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Wed Aug 01, 2007 3:46 am    Post subject: Reply with quote

Kaspersky wrote:
ZenX wtf ?

thats only the procedure

yeah thats really not a full autobot its just the procedure Rolling Eyes

_________________
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Aug 01, 2007 3:58 am    Post subject: Reply with quote

works for ms? no, isn't it ?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Thu Aug 02, 2007 10:38 am    Post subject: Reply with quote

skyllakarean wrote:
Kaspersky wrote:
ZenX wtf ?

thats only the procedure

yeah thats really not a full autobot its just the procedure Rolling Eyes


1)i cant discribe how dumb you are

2)i got all this + functions before ZenX, we work togethour on a autloot so STFU, he just copy/paste it for idk..

@ rEakW0n

no, so dont even try lol.
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Thu Aug 02, 2007 1:12 pm    Post subject: Reply with quote

Of course its not a FULL bot lmao.
how the fuck could i post a full bot script lmaooooo

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Fri Aug 03, 2007 3:24 am    Post subject: Reply with quote

ZenXChaos wrote:
Of course its not a FULL bot lmao.
how the fuck could i post a full bot script lmaooooo


1)its not a script

2)its not easy for your delphi lvl to make a bot (Yet)

3)if you made a "working" bot, dont post it, just release the bin

4)im not home, so i cant go on msn !!!
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