Register

Syscalls for manipulating clipboard

Discuss issues related to the Casio Prizm 3rd party development
Senior Member
Posts: 141
Joined: Wed May 16, 2012 2:50 pm
Location: Portugal
Calculators: Casio fx-CG20

Syscalls for manipulating clipboard

Postby gbl08ma » Wed Jun 11, 2014 6:24 pm

Are there any syscalls that allow for manipulating the clipboard? I need the one that puts contents in it (because to get its contents out, I can use EditMBStringCtrl2 by telling it that key pressed is KEY_CTRL_PASTE and then using what gets in the buffer - but if there's a simpler solution, I'd appreciate it).
I know where the clipboard is stored in the MCS but I hope there are syscalls to do it "properly". Also, manipulating the MCS file doesn't work in the emulator, because the emulator has an interface to the OS (Windows) clipboard, and uses that instead...

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Syscalls for manipulating clipboard

Postby SimonLothar » Sun Jul 06, 2014 2:14 pm

The interface is

int CLIP_Store( unsigned char*buffer, int length );

With the Prizm it is syscall 0x07E5 (which writes the MCS-Item @REV2.CLIP).
With the fx-9860-calculators it is syscall 0x0804 (which writes the MCS-Items @REV2.CLIP and @REV2.NAT_CLIP).
I'll be back!

Senior Member
Posts: 141
Joined: Wed May 16, 2012 2:50 pm
Location: Portugal
Calculators: Casio fx-CG20

Re: Syscalls for manipulating clipboard

Postby gbl08ma » Sun Jul 06, 2014 2:17 pm

Thank you, I will test and report back.
EDIT: it works as expected, of course.

Return to Casio Prizm SDK

Who is online

Users browsing this forum: No registered users and 10 guests