Hmm, I deleted mine and imported yours, there's obviously something wrong with signature deletion in V10, because I got all my old parameters as well as yours so I deleted them all one by one, then the operation, then the signature and re-imported.
Anyway, I can't see any major differences between the two, but your signature is not giving the error, so there must have been something somewhere.
Long story short, that's working well, thank you.
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------
Original Message:
Sent: 06-08-2022 08:23
From: Hortion Gilles
Subject: Paste from popup menu HTML widget
Hi Iain,
I make an export of our signature.
Cordialy,
------------------------------
Hortion Gilles
Dedalus Healthcare France
Artigues Pres Bordeaux FR
Original Message:
Sent: 06-06-2022 12:06
From: Iain Sharp
Subject: Paste from popup menu HTML widget
So, I've got to the point where I can try this, and it's giving me a -58 on the calls to user32.
I've tried it with user32 as a handle, or public handle, and using user32->keybd_event and also with user32 as a string and using activate.user32.keybd_event.
I can only think I've defined the signature wrong. I've included it here, any advice?
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
Original Message:
Sent: 04-28-2022 03:05
From: Hortion Gilles
Subject: Paste from popup menu HTML widget
Hi All,
An other solution is to simulate the CTRL+C /CTRL+V keypress.
Declare a signature on user32.dll with an operation on the function keybd_event.
something like :
;define code#define KEYEVENTF_KEYUP = 2 ; 0x02#define VK_SHIFT = 16 ; 0x10#define VK_CONTROL = 17 ; 0x11#define I_key = 73 ; 0x49#define C_key = 67 #define V_key = 86 ;ctrl+cnewinstance "USER32",user32activate user32->keybd_event(<VK_CONTROL>, 0, 0, 0)activate user32->keybd_event(<C_key>, 0, 0, 0)activate user32->keybd_event(<C_key>, 0, <KEYEVENTF_KEYUP>, 0)activate user32->keybd_event(<VK_CONTROL>, 0, <KEYEVENTF_KEYUP>, 0);ctrl+vactivate user32->keybd_event(<VK_CONTROL>, 0, 0, 0)activate user32->keybd_event(<V_key>, 0, 0, 0)activate user32->keybd_event(<V_key>, 0, <KEYEVENTF_KEYUP>, 0)activate user32->keybd_event(<VK_CONTROL>, 0, <KEYEVENTF_KEYUP>, 0)
------------------------------
Hortion Gilles
Dedalus Healthcare France
Artigues Pres Bordeaux FR
Original Message:
Sent: 04-27-2022 10:36
From: Iain Sharp
Subject: Paste from popup menu HTML widget
We have used the tinymce editor (based on the samples in the downloads), to allow for editing HTML to send as emails.
I want to create a popup menu including copy/paste from here.
Our current popup menu uses macro "^INS_SELECT" which doesn't work.
Ctrl-C/Ctrl-V do work, is there a method of using these from a uniface popup menu?
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------