[Solved]How to Suppress Custom Copy from jumping foreground?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
eil
Posts: 1923
Joined: 13 Jan 2011 19:44

[Solved]How to Suppress Custom Copy from jumping foreground?

Post by eil »

i don't think i'm first to have the problem with this, but didn't find similar topics. when CC has several jobs in queue, after ending one it pops foreground, and often if i type in that moment i accidentally Cancel the job. it's not really the problem of Cancel being highlighted, but the foreground pops with each starting job.
any way to suppress it?
Last edited by eil on 27 Jan 2021 14:04, edited 1 time in total.
Win 7 SP1 x64 100% 1366x768|1900x1080

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

any ideas/advises?.. how you deal such situations?
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

Let me see if I can write something...

Try this (it runs in the background until you kill it (e.g. via the task manager)...

What it does?
It sends all new windows with a class of "ThunderRT6Form" and the words "custom copy" in the title to the bottom of the window z-stack...
XY_Put custom copy window to background_x64_v0.1.0.0.zip
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

@highend thank you, will use it and inform if smt wrong.
can you please give me a hint how best to add it to run each time along with XY start?
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

it runs in the background until you kill it
...

So put it in the autostart folder
or create a new task with the task scheduler and run it with highest privileges (so that even XY instances with admin permissions can be "controlled")
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

@highend i presume tool is created in AHK? i'd wish to try add a feature, so to not bother you with possible "wishes", can you please share the code? :oops:
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

An .exe compiled from .ahk is usually in the size of 1 MB+ (without UPX compression).
Mine is ~100k (with resource info + digitally signed) so no, it's not written in AHK but in PB (PureBasic)

What feature are you talking about?
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

nemermind, i wanted app to quit silently when there is one already running and user tries to run one more(warning window felt troublesome), but afterwards i thought it's good as it is.
thank you once again.
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

XY_Put custom copy window to background_x64_v0.1.0.1.zip
You can start this one with the argument /nowarning and you don't get the message requester if it finds another version of it...
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

Thank you! that would be handy.
Win 7 SP1 x64 100% 1366x768|1900x1080

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

don't take it as a wish, just thinking aloud: if this app gets similar argument to check for if there is an XY running(like described above checking for XYcopy), otherwise terminate itself - that would make it finalized. :roll:
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

Then each XY instance would need to fire it up. For what, why not run it once and have all instances covered?
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

highend wrote: ↑17 Jan 2021 01:30 Then each XY instance would need to fire it up. For what, why not run it once and have all instances covered?
i love XY to be so autonomous, so i tend to involve Windows as seldom as possible, that's why i already run it via script on XY start(useful habit from when using XY portably on flash drive). such "self-terminate" argument is not crucial, just could make app more portably-polished, but don't mind, as i said it's just thoughts aloud. :ninja:
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: How to Suppress Custom Copy from jumping foreground?

Post by highend »

v0.1.0.2

It has a new switch /hwnd=<XYs hwnd to monitor>
If it is used, /noWarning is ignored

Run it from XYplorer e.g. with

Code: Select all

run """path to\XY_Put custom copy window to background_x64.exe"" ""/hwnd=<hwnd>""";
XY_Put custom copy window to background_x64_v0.1.0.2.zip
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1923
Joined: 13 Jan 2011 19:44

Re: How to Suppress Custom Copy from jumping foreground?

Post by eil »

nice, now it's real module for XY.! :tup:
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply