StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
Minimization does not work on xyplorer
Rank: Newbie
Groups: Approved
Joined: 1/10/2020(UTC) Posts: 4 Location: LA Thanks: 1 times
|
xyplorer version:20.60.0300 st.net:0.3.7.7
`action.Window.Minimize();` doesn't work on xyplorer,and it needs at least 5 times to minimize the xyplorer
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Does this work? Code:action.Window.RootWindow.Minimize();
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 1/10/2020(UTC) Posts: 4 Location: LA Thanks: 1 times
|
Originally Posted by: Rob Does this work? Code:action.Window.RootWindow.Minimize();
thank you,but it still not work
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
I just downloaded the free trial (v 20.60.0300) and both the Steps command Minimize Window and action.Window.Minimize() work fine for me.
Do you have any kind of options enabled in XYplorer or S+ that I should try to also test with?
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 1/10/2020(UTC) Posts: 4 Location: LA Thanks: 1 times
|
Originally Posted by: Rob I just downloaded the free trial (v 20.60.0300) and both the Steps command Minimize Window and action.Window.Minimize() work fine for me.
Do you have any kind of options enabled in XYplorer or S+ that I should try to also test with? [img=https://imgur.com/a/iKUuZin]https://imgur.com/a/iKUuZin[/img] both are fresh settings,I backup and delete my own settings. btw I'm useing win10 1909
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Ah, I had only tried when XYplorer was in the maximized state, not the normal/restored window state, in which case I could reproduce the issue. So XYplorer appears to be a Visual Basic 6 application, which like Delphi applications use a separate message window to act as the host window handling the message pump and other top level window functions. This causes issues when looking for the root window as it results in finding this separate window and sending the messages to it doesn't result in the right processing, since this main window doesn't expect to be receiving these messages directly. This script seems to work for me. Essentially it minimizes the main window like normal, but if the window's title contains " - XYplorer" it also minimizes the first moveable parent window from the control below where the gesture began, this should generally be the main application's window unless there was a popup window for the app open or something. Code://normal minimize for all windows
action.Window.Minimize();
//Check for XYplorer
if(action.Window.Title.indexOf(' - XYplorer') > -1) {
//If XYplorer, also minimize the first moveable parent window
//based on the control below where the gesture began.
//This should be the main application's window itself
action.Control.FirstMoveableParent.Minimize();
}
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 1/10/2020(UTC) Posts: 4 Location: LA Thanks: 1 times
|
thanks for your work. your script still not work 100%,so I think this maybe not the best way. After days of searching,I've googled 'thunderrt6 minimize','thunderrt6 gesture','ahk thunderrt'... I suddenly remembered strokeit and found this(Minimizing Delphi program windows). Leo's method is to send keystrokes, and this method can guarantee 100% work. Thank you very much for your work, strokesplus is a tool I use every day.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Oh sure that makes sense. I was initially trying to avoid keystrokes as usually people don't like to have the menu briefly showing or something :)
Glad you got it all worked out!
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 6/15/2019(UTC) Posts: 1
|
Originally Posted by: yel98559 thanks for your work. your script still not work 100%,so I think this maybe not the best way. After days of searching,I've googled 'thunderrt6 minimize','thunderrt6 gesture','ahk thunderrt'... I suddenly remembered strokeit and found this(Minimizing Delphi program windows). Leo's method is to send keystrokes, and this method can guarantee 100% work. Originally Posted by: Rob Oh sure that makes sense. I was initially trying to avoid keystrokes as usually people don't like to have the menu briefly showing or something :)
Glad you got it all worked out! Hallo, can somebody tell, what consequence of this exactly means. What script/keystrokes sequence etc is necessary
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Quote:Hallo, can somebody tell, what consequence of this exactly means. What script/keystrokes sequence etc is necessary This should be all that's needed - Alt+Space then n to select the Minimize system menu option. Code:sp.SendModifiedVKeys([vk.LMENU], [vk.SPACE]);
sp.Sleep(20);
sp.SendVKey(vk.VK_N);
|
|
|
|
StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
Minimization does not work on xyplorer
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close