'Hold Shift' affects script operation

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

'Hold Shift' affects script operation

Post by Papoulka »

I have a toolbar button script that internally uses "goto <xydata>;". If I launch this script with the Shift key held down, the goto works but creates an unwanted new tab.

This is evidently because the keyboard shortcut of "Hold Shift = Open the location you are going to in a new tab" is having an effect even during script operation. I can't be sure if that's intended or not, but the net effect seems to be unwanted so I'm posting this as a bug.

The reason I would launch a script with Shift held is to guide what the script should do (pop confirmations or not, etc). And I can't release the Shift key in time to avoid interfering with the "goto" commands.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 'Hold Shift' affects script operation

Post by admin »

Papoulka wrote:The reason I would launch a script with Shift held is to guide what the script should do (pop confirmations or not, etc). And I can't release the Shift key in time to avoid interfering with the "goto" commands.
I don 't get the first part. What is the effect of holding Shift?

But anyway, holding Shift will create a new tab when going anywhere, that's kind of a global behavior in XY. This will have to stay like this.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: 'Hold Shift' affects script operation

Post by Papoulka »

OK, I understand that this can't be changed.

To explain anyway: Most of my scripts have a confirmation step. But, if I launch them while holding "Shift", that tells the script to skip the confirmations. This lets me work fast when I'm sure of my material. It's just unfortunate that a "goto" in a script will also see this Shift and generate a new tab.

I may change to using 'Alt' to bypass confirmations.

Post Reply