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 2:03:41 PM(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 7:35:41 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
Does this work?

Code:
action.Window.RootWindow.Minimize();
yel98559  
#3 Posted : Sunday, January 12, 2020 1:41:46 AM(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 3:39:26 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
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?
yel98559  
#5 Posted : Monday, January 13, 2020 6:56:24 AM(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 2:08:26 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
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();
}
yel98559  
#7 Posted : Tuesday, January 14, 2020 2:34:47 AM(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 1:16:23 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
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!
thanks 1 user thanked Rob for this useful post.
yel98559 on 1/15/2020(UTC)
konfuzius  
#9 Posted : Sunday, October 10, 2021 1:45:11 PM(UTC)
konfuzius

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/15/2019(UTC)
Posts: 1
Germany

Originally Posted by: yel98559 Go to Quoted Post
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 Go to Quoted Post
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
Rob  
#10 Posted : Wednesday, October 13, 2021 12:41:59 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
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);
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.