Sign in to follow this  
Followers 0
ayatest

SendKeepActive and subwindows

5 posts in this topic

I noticed, that sometimes when multiple things are running, app of interest isn't keeping active state, and I found this useful:

SendKeepActive("[TITLE:my app name header]")

It works like a charm, but there is another thing that I'd like to simplify if possible.

If from my app - I call some subwindow (like for opening the file, or making a manual selection) - I need to refocus the function, like this:

SendKeepActive("[TITLE:Set Selection]")

...some action here

SendKeepActive("[TITLE:my app name header]")

(title depending on what the window shows of course), and then go back to previous SendKeepActive, to refocus to main app back again. If I don't do the trick - SKA function tries to keep active the background window instead of subwindow that is opened.

So my question here is. Is there a quick way to keep active - the hierarchy of subwindows within the main app automatically?

I guess the question includes also a situation, when two different apps may have the same sub-window name.


functional testing. multimedia recording. flowstone. mouseclick, hotkeys and modularity in general.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

.

WinSetOnTop("title", "text", flag)
Or:

WinActivate("title" [, "text"] )
. Edited by Trong

Regards,
 

Share this post


Link to post
Share on other sites

.

WinSetOnTop("title", "text", flag)
Or:

WinActivate("title" [, "text"] )
.

 

 

Question. Will this set on top any window/subwindow currently running, or ONLY subwindow of an application, that is being focused? Because that's the main thing. Hierarchized subwindows.

I also noticed, that although SendKeepActive is useful, sometimes it brings on focus something that is not related to the app I'm scripting for, and I need turn off few things..


functional testing. multimedia recording. flowstone. mouseclick, hotkeys and modularity in general.

Share this post


Link to post
Share on other sites

Sorry, I was wrong!


Regards,
 

Share this post


Link to post
Share on other sites

MsgBox(flag, "title", "text" [, timeout = 0 [, hwnd]] )
FileOpenDialog("title", "init dir", "filter" [, options = 0 [, "default name" [, hwnd]]] )
FileSaveDialog("title", "init dir", "filter" [, options = 0 [, "default name" [, hwnd]]] )
FileSelectFolder("dialog text", "root dir" [, flag = 0 [, "initial dir" [, hwnd]]] )
InputBox("title", "prompt" [, "default" [, "password char" [, width = -1 [, height = -1 [, left = Default [, top = Default [, timeout = 0 [, hwnd]]]]]]]] )
;.......

Check it, maybe it will help for your problem: [, hwnd]

[, hwnd]

Regards,
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0