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 


Help with sending Text as keys

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

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Fri Jan 18, 2008 9:57 am    Post subject: Help with sending Text as keys Reply with quote

I am currently working on making a program to send some text, and currently i have it working with the single key. Im not sure what you call the actual kind of code but i know for the "w" key the code is $57(i think)

i was wondering if anyone could tell me what kind of code that is, particularly what it's called.

also, i am trying to use the method of extracting each Ascii character from text and converting it to such a code.

I have the individual character reading, but im not sure how i would convert it in the program

Any ideas?

Thanks for the help (if you make any) Very Happy
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Jan 18, 2008 10:02 am    Post subject: Reply with quote

You mean like this
Code:
SendKeys "{LEFT}"

Code:
SendKeys "I pawn everyone around me!!"

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Fri Jan 18, 2008 10:10 am    Post subject: Reply with quote

no, for a single key the code is $ and some numbers or letter
Someone posted a complete table, but i cant find it RAWR!

thanks anyways
Back to top
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Fri Jan 18, 2008 10:15 am    Post subject: Reply with quote

http://delphi.about.com/od/objectpascalide/l/blvkc.htm
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Jan 18, 2008 10:18 am    Post subject: Reply with quote

ah.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Fri Jan 18, 2008 10:19 am    Post subject: Reply with quote

thanks man, but do you have any idea how to convert characters to virtual keycodes??

Sounds hard, probably is
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Jan 18, 2008 10:29 am    Post subject: Reply with quote

AdamG62 wrote:
thanks man, but do you have any idea how to convert characters to virtual keycodes??

Sounds hard, probably is


Code:
//Drop a Memo control on a Form and handle its OnKeyDown event as:
procedure TForm1.Memo1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState) ;
begin
   Self.Caption := GetCharFromVirtualKey(Key) ;
end;

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Fri Jan 18, 2008 10:34 am    Post subject: Reply with quote

Code:
VkKeyScan('a')
Back to top
View user's profile Send private message MSN Messenger
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Fri Jan 18, 2008 10:42 am    Post subject: Reply with quote

ahh cheers, thanks for that, let me check if it works
it seems to work


here's what ive got

Code:
 for i := 1 to Length(Edit1.text) do
 TempChar := integer(PChar(Edit1.text[i]));
 CharScan := IntToStr(TempChar);
 Char := VkKeyScan(CharScan);


i trying to convert the single character to a virtual keycode, i beleive it needs to end up as a PChar, i am very tired and logic is not with me, so if you could help me, maybe tomorow i can get it working properly Very Happy

Hope you can help
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