StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
yel98559  
#1 Posted : Friday, January 10, 2020 7:03:41 AM(UTC)
yel98559

Rank: Newbie

Reputation:

Groups: Approved
Joined: 1/10/2020(UTC)
Posts: 4
United States
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
Rob  
#2 Posted : Friday, January 10, 2020 12:35:41 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 684
United States
Location: Tampa, FL

Thanks: 13 times
Was thanked: 155 time(s) in 134 post(s)
Does this work?

Code:
action.Window.RootWindow.Minimize();
yel98559  
#3 Posted : Saturday, January 11, 2020 6:41:46 PM(UTC)
yel98559

Rank: Newbie

Reputation:

Groups: Approved
Joined: 1/10/2020(UTC)
Posts: 4
United States
Location: LA

Thanks: 1 times
Originally Posted by: Rob Go to Quoted Post
Does this work?

Code:
action.Window.RootWindow.Minimize();


thank you,but it still not work
Rob  
#4 Posted : Sunday, January 12, 2020 8:39:26 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 684
United States
Location: Tampa, FL

Thanks: 13 times
Was thanked: 155 time(s) in 134 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?
yel98559  
#5 Posted : Sunday, January 12, 2020 11:56:24 PM(UTC)
yel98559

Rank: Newbie

Reputation:

Groups: Approved
Joined: 1/10/2020(UTC)
Posts: 4
United States
Location: LA

Thanks: 1 times
Originally Posted by: Rob Go to Quoted Post
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
Rob  
#6 Posted : Monday, January 13, 2020 7:08:26 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 684
United States
Location: Tampa, FL

Thanks: 13 times
Was thanked: 155 time(s) in 134 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();
}
yel98559  
#7 Posted : Monday, January 13, 2020 7:34:47 PM(UTC)
yel98559

Rank: Newbie

Reputation:

Groups: Approved
Joined: 1/10/2020(UTC)
Posts: 4
United States
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.
Rob  
#8 Posted : Tuesday, January 14, 2020 6:16:23 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 684
United States
Location: Tampa, FL

Thanks: 13 times
Was thanked: 155 time(s) in 134 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!
thanks 1 user thanked Rob for this useful post.
yel98559 on 1/14/2020(UTC)
Users browsing this topic
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.