64-bit steals focus where 32-bit did not

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

64-bit steals focus where 32-bit did not

Post by Quaraxkad »

I have several scripts that use a foreach loop containing a run command. In 32-bit versions, this would show a "Please wait... The shelled process has not finished yet" dialog box. The box would flicker off and back on for each loop iteration. When this occurs in the 64-bit version, that dialog steals focus and moves to the window to the top, interfering with whatever other work you're doing while waiting for the script to finish.

phred
Posts: 551
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Windows 10 at 100% from Boston USA

Re: 64-bit steals focus where 32-bit did not

Post by phred »

From Admin/Don...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.
XY No Info.jpg
XY No Info.jpg (64.39 KiB) Viewed 348 times

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: 64-bit steals focus where 32-bit did not

Post by Quaraxkad »

28.00.0502, Win11, 100%

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

Re: 64-bit steals focus where 32-bit did not

Post by admin »

Got some minimal code for testing?

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: 64-bit steals focus where 32-bit did not

Post by Quaraxkad »

test.xys

Code: Select all

 $sel = <get selecteditemspathnames |>;
 foreach($file, $sel) {
     $parentdir = getpathcomponent($file, "path");
     run """C:\Programs\XYplorer\Data\Scripts\test.bat"" ""$file""", $parentdir, 1, 0;
 }
test.bat

Code: Select all

timeout /t 5
Select several files, run test.xys, change focus to another app while the script runs.

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

Re: 64-bit steals focus where 32-bit did not

Post by admin »

Thank you! It's probably a language issue (tB). Unfortunately, this means it will take considerable time to be fixed. I'll get back to you when I have more information.

Post Reply