Page 1 of 2

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

Posted: 09 Jan 2021 18:42
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?

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 14 Jan 2021 19:07
by eil
any ideas/advises?.. how you deal such situations?

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 14 Jan 2021 20:31
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

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 14:19
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?

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 14:23
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")

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 15:43
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:

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 16:17
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?

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 19:44
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.

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 20:02
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...

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 16 Jan 2021 23:44
by eil
Thank you! that would be handy.

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 17 Jan 2021 01:23
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:

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 17 Jan 2021 01:30
by highend
Then each XY instance would need to fire it up. For what, why not run it once and have all instances covered?

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 17 Jan 2021 08:50
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:

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 17 Jan 2021 11:38
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

Re: How to Suppress Custom Copy from jumping foreground?

Posted: 17 Jan 2021 15:00
by eil
nice, now it's real module for XY.! :tup: