How to add a shortcut syntax (ctrl+') to a user button/script?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

How to add a shortcut syntax (ctrl+') to a user button/script?

Post by cadu »

Hi,

I'd appreciate help. I created a user button having in mind to trigger the shortcut (ctrl+'), which launches Listary software.
The shortcut isn't attached to any internal XYplorer command, then simply by pressing the user button I'd like Listary pop-up screen appearing.
How to add a shortcut syntax (ctrl+' in my case) to a user button/script?
I recorded my screen showing what I'm trying to perform in XYplorer: https://goo.gl/wUx8dK

Thanks for assistance!
Cadu

highend
Posts: 15000
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by highend »

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

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by cadu »

Thanks for directions highend!
Based on that, I tried some syntax, but without success:

Test1

Code: Select all

sendkeys "^{'}"
Test2

Code: Select all

sendkeys "^'"
In both cases, when I press the user button there is an error message "sendkeys is not a valid script command", as showed in this snapshot: http://i.imgur.com/YVikTi0.png

Do you have idea on what is going wrong?

Thank you!
Cadu_

highend
Posts: 15000
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by highend »

XY version number?
One of my scripts helped you out? Please donate via Paypal

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by cadu »

v17.80

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by cadu »

The script really doesn't run when used in user button.
However, when I add the very same script as "User-defined Command" it works.
Do you know if there is any limitation to use "sendkeys" as user button script?

highend
Posts: 15000
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to add a shortcut syntax (ctrl+') to a user button/script?

Post by highend »

It works fine in a user button here...
One of my scripts helped you out? Please donate via Paypal

Post Reply