Key binary compared or ASCII ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Key binary compared or ASCII ? (
/showthread.php?tid=348695)
Key binary compared or ASCII ? -
Azazelo - 06.06.2012
Question:
How to compare key`s pressed by Binary value of key?
How to compare key`s by ASCII value of key?
My interest in this is to see all key`s pressed on keyboard in binary or in ASCII.
Re: Key binary compared or ASCII ? -
MadeMan - 06.06.2012
Not possible in SA-MP, only these keys can be used:
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
Re: Key binary compared or ASCII ? -
Azazelo - 06.06.2012
Ok , i understand this not possible by samp any plugin like keyboard hook , i see in older version of samp function named " getstring " is it possible to link some plugin on this way to get string from keyboard ?
getstring
Quote:
This function reads a string from the keyboard. You can specify the number of cells you want to read (not characters!), The second parameter.
Broken function in the current version of San Andreas - Multiplayer. It can not be used!
Parameters:
({{{1}}})
string [] The line, which can be written input.
size = sizeof (string) The number of cells that must be read from the keyboard.
pack = false Do you want to pack a string?
getstring (string, 256, false);
|
Re: Key binary compared or ASCII ? -
Azazelo - 06.06.2012
Tnx you ****** for save my time if you did`n make it then it definitely not possible.