Quote from PaulJonestindall on November 2, 2020, 4:03 pmI don't know if this belongs here or in the General section but is there a plugin that allows you to simulate keystrokes?
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
I don't know if this belongs here or in the General section but is there a plugin that allows you to simulate keystrokes?
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
Quote from Gaev on November 2, 2020, 4:48 pm@pauljonestindall
is there a plugin that allows you to simulate keystrokes?
How about using the SendKeys command ? ... https://winhelp.visualneo.com/Applications.html#SENDKEYS
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
{CtrlDn}C{CtrlUp}
is there a plugin that allows you to simulate keystrokes?
How about using the SendKeys command ? ... https://winhelp.visualneo.com/Applications.html#SENDKEYS
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
{CtrlDn}C{CtrlUp}
Quote from Gaev on November 2, 2020, 4:53 pm@pauljonestindall
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
Specifically, in order to get/set the value of the Windows Clipboard, you can use the Global Variable [Clipboard] ... from the Help file ...
The contents of the Windows Clipboard (text format only). You can place text onto the Windows Clipboard using the SetVar Action. For example:
SetVar "[Clipboard]" "Place this on the clipboard."
For example: I'd like to have a button action that acts the same as typing Ctrl-C.
Specifically, in order to get/set the value of the Windows Clipboard, you can use the Global Variable [Clipboard] ... from the Help file ...
The contents of the Windows Clipboard (text format only). You can place text onto the Windows Clipboard using the SetVar Action. For example:
SetVar "[Clipboard]" "Place this on the clipboard."
Quote from PaulJonestindall on November 2, 2020, 5:03 pm@gaev
I haven't tried it yet because the SendKeys action says it's for sending keystrokes to another running application. For lack of a better question, will it work on the program running itself? I may just have to try it.
I'm aware of the [Clipboard] variable, but in this case, my goal is to send highlighted text to the clipboard without the keyboard.
I haven't tried it yet because the SendKeys action says it's for sending keystrokes to another running application. For lack of a better question, will it work on the program running itself? I may just have to try it.
I'm aware of the [Clipboard] variable, but in this case, my goal is to send highlighted text to the clipboard without the keyboard.
Quote from PaulJonestindall on November 2, 2020, 5:07 pmAlso, I'd like to eventually be able to utilize this concept with a tablet where achieving a right mouse click with a stylus is often problematic; not necessarily for copying highlighted text but for other useful keyboard functions.
Also, I'd like to eventually be able to utilize this concept with a tablet where achieving a right mouse click with a stylus is often problematic; not necessarily for copying highlighted text but for other useful keyboard functions.

Quote from PaulJonestindall on November 2, 2020, 5:28 pm@vadim
Thanks Vadim, but not quite what I'm looking for.
Thanks Vadim, but not quite what I'm looking for.

Quote from Vadim on November 2, 2020, 5:33 pmTry to formulate a task that is more accurate. Perhaps I misunderstand it. I use a digital translator and therefore part of the meaning is lost.
Try to formulate a task that is more accurate. Perhaps I misunderstand it. I use a digital translator and therefore part of the meaning is lost.
Quote from Gaev on November 2, 2020, 5:34 pm@pauljonestindall
For lack of a better question, will it work on the program running itself? I may just have to try it.
If I recall, you leave the first parameter empty.
my goal is to send highlighted text to the clipboard without the keyboard.
I am not sure what you mean by 'highlighted text' ... Ctrl-C only copies plain text (or the plain text equivalent of a rich text string)
Also, I'd like to eventually be able to utilize this concept with a tablet where achieving a right mouse click with a stylus is often problematic; not necessarily for copying highlighted text but for other useful keyboard functions.
Unrelated to the original enquiry, but I have also been frustrated by the lack of right-click and cloogy double/click on Touch surfaces. Some work arounds I have been considering are ...
a) when a Button/Image etc. is touched, assuming the object is long enough and there is a way to get the coordinates of the touch point (same as mouse position ?), the same routine would perform logic depending on which side (left-half/right-half) of the object was touched
b) on each screen, show one/two icons (one each for right click and double click) that act as an on-off switch for each click/touch ... then, where applicable, every touch/click is processed depending on the state of the icons)
For lack of a better question, will it work on the program running itself? I may just have to try it.
If I recall, you leave the first parameter empty.
my goal is to send highlighted text to the clipboard without the keyboard.
I am not sure what you mean by 'highlighted text' ... Ctrl-C only copies plain text (or the plain text equivalent of a rich text string)
Also, I'd like to eventually be able to utilize this concept with a tablet where achieving a right mouse click with a stylus is often problematic; not necessarily for copying highlighted text but for other useful keyboard functions.
Unrelated to the original enquiry, but I have also been frustrated by the lack of right-click and cloogy double/click on Touch surfaces. Some work arounds I have been considering are ...
a) when a Button/Image etc. is touched, assuming the object is long enough and there is a way to get the coordinates of the touch point (same as mouse position ?), the same routine would perform logic depending on which side (left-half/right-half) of the object was touched
b) on each screen, show one/two icons (one each for right click and double click) that act as an on-off switch for each click/touch ... then, where applicable, every touch/click is processed depending on the state of the icons)
Quote from PaulJonestindall on November 2, 2020, 7:14 pm@gaev
Success! The SendKeys action worked. I simply left the first parameter blank. Who knew?
As far as "highlighted text", when you click and move the mouse cursor along a line of text to "highlight" it for copying or deleting.
And yes, right click and double click are a source of frustration. My issue comes with differences in styluses. Some don't have buttons, some do, some can be right click buttons or not. My assumption then is to develop my programs for a stylus with no other features but its obvious purpose. I have built buttons for tablet programs where I would otherwise place the actions in the right click tabs. I've gone so far as to place invisible buttons on top of portions of visible buttons to act as a sort of right click simulation.
Thanks for the help.
Success! The SendKeys action worked. I simply left the first parameter blank. Who knew?
As far as "highlighted text", when you click and move the mouse cursor along a line of text to "highlight" it for copying or deleting.
And yes, right click and double click are a source of frustration. My issue comes with differences in styluses. Some don't have buttons, some do, some can be right click buttons or not. My assumption then is to develop my programs for a stylus with no other features but its obvious purpose. I have built buttons for tablet programs where I would otherwise place the actions in the right click tabs. I've gone so far as to place invisible buttons on top of portions of visible buttons to act as a sort of right click simulation.
Thanks for the help.
Quote from Gaev on November 2, 2020, 7:41 pm@pauljonestindall
As far as "highlighted text", when you click and move the mouse cursor along a line of text to "highlight" it for copying or deleting.
Oops; I was thinking of something like what you do (on paper) with a (yellow) highlighter.
My issue comes with differences in styluses
My guess is that a stylus gives you a finer precision re touch point; as such, having two (half) buttons would work.
Other design solution would be to respond to the touch with a small dialog box (placed closed to the last touch point) that would allow the user to select from left click, right click and double click options (or even more) ... i.e. a kind of context menu.
Or, like in Windows programs, instead of two half buttons, have a button (for left click) next to a button with a down arrow; the latter would throw up a context menu.
As far as "highlighted text", when you click and move the mouse cursor along a line of text to "highlight" it for copying or deleting.
Oops; I was thinking of something like what you do (on paper) with a (yellow) highlighter.
My issue comes with differences in styluses
My guess is that a stylus gives you a finer precision re touch point; as such, having two (half) buttons would work.
Other design solution would be to respond to the touch with a small dialog box (placed closed to the last touch point) that would allow the user to select from left click, right click and double click options (or even more) ... i.e. a kind of context menu.
Or, like in Windows programs, instead of two half buttons, have a button (for left click) next to a button with a down arrow; the latter would throw up a context menu.
Quote from PaulJonestindall on November 2, 2020, 7:46 pm@gaev
This also gives me a new perspective on how to create an onscreen keyboard or number pad. This is really good.
I could use a single container object number pad/osk for multiple text entry objects. Wish I'd looked into this about 6 months ago.
I'll create the number pad and post it in tips and tricks.
This also gives me a new perspective on how to create an onscreen keyboard or number pad. This is really good.
I could use a single container object number pad/osk for multiple text entry objects. Wish I'd looked into this about 6 months ago.
I'll create the number pad and post it in tips and tricks.
Quote from Gaev on November 2, 2020, 8:00 pm@pauljonestindall
I could use a single container object number pad/osk for multiple text entry objects.
Once you throw up CustomWindow, there are no limitations on what you can place inside it; many moons ago, I assisted a client who not only simulated an on screen keyboard, but also had buttons for frequently entered text (words, names of prescription drugs, sentences, amounts etc.)
I could use a single container object number pad/osk for multiple text entry objects.
Once you throw up CustomWindow, there are no limitations on what you can place inside it; many moons ago, I assisted a client who not only simulated an on screen keyboard, but also had buttons for frequently entered text (words, names of prescription drugs, sentences, amounts etc.)
Quote from PaulJonestindall on November 3, 2020, 9:21 amThanks for all the help.
Thanks for all the help.