Try Script break can leave Step Mode set

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

Try Script break can leave Step Mode set

Post by Papoulka »

This is with XY of Jun30 (almost latest) but I saw it earlier, just didn't realize what was happening.

Sometimes, when pressing "Cancel Script" in a "Try Script" session, I later find "Step Mode" to be enabled. This doesn't always occur, and if I discover more initiating conditions I'll post them. But I suggest that any type of exit from a Try Script session should clear Step Mode.

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

Re: Try Script break can leave Step Mode set

Post by admin »

Absolutely. Let me know when you find a way to reproduce it.

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

Re: Try Script break can leave Step Mode set

Post by Papoulka »

I finally isolated a sequence that will repeat this, with a ::fresh instance of v15.70.0110. Follow these steps exactly:
  • Make a User-Defined command (Category "Run Script") for Try Script (#752;), with hotkey Alt+1.

    In Scripting | Try Script, enter this script:

    $b=1; $a=0/0;

    Use Alt+1 to "Try" this script. Press OK to start, then Ctl-Continue after the first step. When the script breaks on the Overflow error, press Cancel Script.

    Repeat this Alt+1...Cancel Script sequence once or twice.

    Check the Scripting menu - Step Mode will be enabled there.
You might think from this that my scripts don't always work perfectly the first time. Of course they do - I just happened on this by chance and thought I should report it :whistle: .

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

Re: Try Script break can leave Step Mode set

Post by admin »

Tried hard but could not reproduce it. :?

Post Reply