Jump to content



Photo
* * * - - 2 votes

Fx-5800P: Secret Of Keycode

fx-5800P keycode

  • Please log in to reply
6 replies to this topic

#1 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 19 December 2013 - 04:23 PM

fx-5800P Basic has Getkey command same as the other graphing calculators. This command makes programming very flexible.

fx-5800P does not have I/O feature to communicate with PC, just excepting source code copy just between fx-5800Ps.

"  GET KEYCODE"
Locate 6,3,"HIT ANY KEY"
Locate 8,4,"<AC>:QUIT"
Lbl 0
Do
Getkey->K
LpWhile K=0
Locate 1,1,"KEYCODE =    "
Locate 11,1,K
Goto 0


Try this short program which tells you keycode of the key you pressed.

Posted Image

...when start this program



Posted Image

... when press EXE, you'll see the Keycode is 34.


Every key has unique 2 digit keycode, but you can get single digit keycode, 1 to 7. I found this when play around with the program.


I think this program code should run on fx-cg10 and fx-9860Gxx, but I did not try this yet (I don't have any of these).

Try pressing more than 2 keys at the same time, if you find the condition to get single digit keucode, this may be used for a secret key for your game.

I'm not sure this is well known or not, but let me introduce this "secret of keycode"

I will post the condition to get single digit keycode later.

Edited by Krtyski, 18 January 2014 - 01:35 PM.


#2 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 19 December 2013 - 07:15 PM

This is interesting, I'll have to try it on my PRIZM when I get a chance.

Also, you can use code tags instead of images in your post if you choose to, like so ;) :
[code]
/* Code goes here */
[/ code]


#3 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 20 December 2013 - 06:04 AM

Test

1: 1
pleft: (
pright: )
arrow:
period: .
down:
fd: F↔D
left: [LEFT]
ln: ln
Alpha+M: M


Also test

-->
->
=>
=
>=
<=
triangle
(zero) 0 and (letter) O
(one) 1 and (letter) I & l


How to write output and wait comand (triangle mark)???

How to describe "Not equal", "equal or greater"???


When I use code tags, is there any benefit for other member?


monology....but someone advise?

Edited by Krtyski, 20 December 2013 - 06:21 AM.


#4 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 20 December 2013 - 12:37 PM

How to write output and wait comand (triangle mark)???

How to describe "Not equal", "equal or greater"???


When I use code tags, is there any benefit for other member?


monology....but someone advise?


It makes it easy to copy and paste code...

You can use this unicode symbol for the disp command: ◣

For the various equality operators, you can either do this:

!= ' Not equal
=  ' equals
<= ' less than or equal to
>= ' greater than or equal to

Or you can do this:
≠ ' not equal
≤ ' less than or equal to
≥ ' greater than or equal to


#5 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 20 December 2013 - 02:58 PM

Hello flyingfisch

Thank you!
I replaced the source code.

#6 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 21 December 2013 - 08:34 AM

To get single digit keycode, try press more than 2 keys at the same time. There are groups to get single digit keycode. When you press more than 2 up to 7 keys int he same group you will get following single digit keys;


1) Grourp 1 to get keycode=1
4, 7, RCL, i, FILE, SHIFT, MODE
<From left to right each key code = 21, 31, 41, 51, 61, 71, 81>

2) Group 2 to get keycode = 2
5, 8, S-D, /, sqrt, ALPHA, FUNCTION
<From left to right each key code = 22, 32, 42, 52, 62, 72, 82>

3) Group 3 to get keycode = 3
6, 9, (, ' '', , EXIT, [LEFT]
<From left to right each key code = 23, 33, 43, 53, 63, 73, 83>

4) Group 4 to get keycode = 4
×, DEL, ), sin, log, FMLA,
<From left to right each key code = 24, 34, 44, 54, 64, 74, 84>

5) Group 5 to get keycode = 5
0, 1, ,, cos, ln, CALC,
<From left to right each key code = 25, 35, 45, 55, 65, 75, 85>

6) Group 6 to get keycode = 6
., 2, M+, tan, x^, SOLVE, [RIGHT]
<From left to right each key code = 26, 36, 46, 56, 66, 76, 86>

7) Group 7 to get keycode = 7
x10x, 3, EXE, (-), -, +, ÷
<From left to right each key code = 27, 37, 47, 57, 67, 77, 87>


I did this with my fx-5800P, now I'm interested in result with the other calcs.

Those groups sound relating to the key matrix, but I'm not entirely sure why the group 7 keys locate such like....

Edited by Krtyski, 22 December 2013 - 04:29 AM.


#7 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 26 December 2013 - 10:48 AM

I'm very interested whether a type of people coming here have already known such tips.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users