Sending keystrokes with a button...

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
GUIguy
Posts: 95
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

Sending keystrokes with a button...

Post 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?
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: Sending keystrokes with a button...

Post by highend »

If you don't want to use sendkeys, just use

Code: Select all

#251;
?
One of my scripts helped you out? Please donate via Paypal

GUIguy
Posts: 95
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

Re: Sending keystrokes with a button...

Post by GUIguy »

Thanks. So elegant. But I have absolutely no clue as to what you mean. Can you explain to a newbie?
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: Sending keystrokes with a button...

Post by highend »

That's the scripting code for your button and the id comes from here
Menu - Help - List All Commands...
One of my scripts helped you out? Please donate via Paypal

GUIguy
Posts: 95
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

Re: Sending keystrokes with a button...

Post by GUIguy »

Perfect! Thanks!
How do I buy you a beer? :beer:
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: Sending keystrokes with a button...

Post by highend »

There is a paypal link in my signature :titter:

Thanks for the donation!
One of my scripts helped you out? Please donate via Paypal

Post Reply