Syscalls for manipulating clipboard
3 posts
• Page 1 of 1
- gbl08ma
- Senior Member
- Posts: 141
- Joined: Wed May 16, 2012 2:50 pm
- Location: Portugal
- Calculators: Casio fx-CG20
Syscalls for manipulating clipboard
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...
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...
- SimonLothar
- Senior Member
-
- 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
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).
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!
- gbl08ma
- Senior Member
- Posts: 141
- Joined: Wed May 16, 2012 2:50 pm
- Location: Portugal
- Calculators: Casio fx-CG20
Re: Syscalls for manipulating clipboard
Thank you, I will test and report back.
EDIT: it works as expected, of course.
EDIT: it works as expected, of course.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests