Page 1 of 1

Sending keystrokes with a button...

Posted: 19 Mar 2018 03:00
by GUIguy
This may belong in the scripting forum, but not sure.

I want to be able to deselect files in "one fell swoop) without having to use the keyboard Ctrl+Shift+A or the couple of mouse clicks required. I'd like to create a [custom?] button on the toolbar.

Is there a sendkeys function in the scripting language? I found a few references but I believe they were to undocumented commands and I don't want to rely on that since they might appear.

BTW, AHK is not an option because that's keyboard stuff and I'm trying to avoid that. Anyway, if I use AHK, I might as well do the Ctrl+Shift+A in XY.

Ideas, anyone?

Re: Sending keystrokes with a button...

Posted: 19 Mar 2018 07:58
by highend
If you don't want to use sendkeys, just use

Code: Select all

#251;
?

Re: Sending keystrokes with a button...

Posted: 19 Mar 2018 18:36
by GUIguy
Thanks. So elegant. But I have absolutely no clue as to what you mean. Can you explain to a newbie?

Re: Sending keystrokes with a button...

Posted: 19 Mar 2018 18:38
by highend
That's the scripting code for your button and the id comes from here
Menu - Help - List All Commands...

Re: Sending keystrokes with a button...

Posted: 19 Mar 2018 20:44
by GUIguy
Perfect! Thanks!
How do I buy you a beer? :beer:

Re: Sending keystrokes with a button...

Posted: 19 Mar 2018 20:49
by highend
There is a paypal link in my signature :titter:

Thanks for the donation!