How can I set focus to a window that has no window title?
Thanks
Problem setting focus
Moderators: Dorian (MJT support), JRL
Are you sure it has no title, or does it just not show the title bar? Have you checked under Tools/View System Windows to see if it is there?
Create the following script and assign it to a hotkey:
GetActiveWindow>title,x,y
MessageModal>title
Then when the window in question is active hit the hotkey for this macro and see what the message box says.
Create the following script and assign it to a hotkey:
GetActiveWindow>title,x,y
MessageModal>title
Then when the window in question is active hit the hotkey for this macro and see what the message box says.
MJT Net Support
[email protected]
[email protected]
Thanks for your reply
I want to switch focus to a application called "Modulolibro". This program has (apparently) no name on window title and in taskbar its tab shows "Modulolibro". Also, it has several child windows without name on window title.
"System Window" utility shows:
>> 66766 - TFLibroTexto "     "
>> 66802 - TPanel "  "
>> 132288 - TApplication "Modulolibro"
I tried your script and the results are that the main program (Modulolibro) has 5 blank spaces on window title and its child windows has 6, 7 and 8 blank spaces on respectives window title.
So when I run SetFocus>     * the focus switchs to one of the child windows instead main program.
P.D. Thanks in advance and I hope you can understand my very poor english [/b]
I want to switch focus to a application called "Modulolibro". This program has (apparently) no name on window title and in taskbar its tab shows "Modulolibro". Also, it has several child windows without name on window title.
"System Window" utility shows:
>> 66766 - TFLibroTexto "     "
>> 66802 - TPanel "  "
>> 132288 - TApplication "Modulolibro"
I tried your script and the results are that the main program (Modulolibro) has 5 blank spaces on window title and its child windows has 6, 7 and 8 blank spaces on respectives window title.
So when I run SetFocus>     * the focus switchs to one of the child windows instead main program.
P.D. Thanks in advance and I hope you can understand my very poor english [/b]
use GAW
Use the GAW - GETACTIVEWINDOW command and it will retreive the title of your active window.
example:
Wait>3
GAW>TITLE,X,Y
MSG>TITLE
after you start your script, click on the main window within 3 seconds, or whatever wait time you put in the first line. There will be a message box that pops up after your wait time...whatever wait time you choose is fine. Just copy and paste the returned GAW message and you'll have your window title
EDIT:
I just realized that this message is a total echo of what was said above...
It isn't letting me delete this post ...sorry...disregard.
Instead of putting: SETFOCUS> *
just remove the "*" and it may work.
example:
Wait>3
GAW>TITLE,X,Y
MSG>TITLE
after you start your script, click on the main window within 3 seconds, or whatever wait time you put in the first line. There will be a message box that pops up after your wait time...whatever wait time you choose is fine. Just copy and paste the returned GAW message and you'll have your window title
EDIT:
I just realized that this message is a total echo of what was said above...
It isn't letting me delete this post ...sorry...disregard.
Instead of putting: SETFOCUS> *
just remove the "*" and it may work.