| View previous topic :: View next topic |
| Author |
Message |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Fri Jan 18, 2008 9:57 am Post subject: Help with sending Text as keys |
|
|
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)  |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Jan 18, 2008 10:02 am Post subject: |
|
|
You mean like this
| Code: | | SendKeys "I pawn everyone around me!!" |
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Fri Jan 18, 2008 10:10 am Post subject: |
|
|
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 |
|
 |
the_undead Expert Cheater
Reputation: 1
Joined: 12 Nov 2006 Posts: 235 Location: Johannesburg, South Africa
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Jan 18, 2008 10:18 am Post subject: |
|
|
ah. _________________
Intel over amd yes. |
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Fri Jan 18, 2008 10:19 am Post subject: |
|
|
thanks man, but do you have any idea how to convert characters to virtual keycodes??
Sounds hard, probably is |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Jan 18, 2008 10:29 am Post subject: |
|
|
| 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 |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Fri Jan 18, 2008 10:34 am Post subject: |
|
|
|
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Fri Jan 18, 2008 10:42 am Post subject: |
|
|
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
Hope you can help |
|
| Back to top |
|
 |
|