Window with No Title

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
sailor dude
Pro Scripter
Posts: 50
Joined: Fri Jan 20, 2006 10:43 pm

Window with No Title

Post by sailor dude » Tue Apr 10, 2007 6:11 pm

How can I manipulate a window that has no title. Below is the description using View System Windows - Copy all text.

69838 - ThunderRT6FormDC ""

I tried a number of approaches without success. I am using MS 8.1 with WinXP.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Apr 10, 2007 7:12 pm

You can use FindWindow/FindWindowEx. Is this a parent window? If so you might just be able to do:

LibFunc>user32,FindWindowA,hwnd,ThunderRT6FormDC,

hwnd now has the handle of the window and you can then use the regular window functions with the WIN_USEHANDLE variable set:

Let>WIN_USEHANDLE
SetFocus>hwnd

If this window is a child window you might need a FindWindowEx or two. Search the forums for FindWindowA and FindWindowEx - there are a number of examples. Or feel free to provide more details.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

sailor dude
Pro Scripter
Posts: 50
Joined: Fri Jan 20, 2006 10:43 pm

Using LibFunc>user32... Solved the Problem

Post by sailor dude » Wed Apr 11, 2007 1:33 pm

Using LibFunc>user32... Solved the Problem

ThunderRT6FormDC is a parent window.

What is FindWindow/FindWindowEx? I only can identify FindWindowWithText in the list of commands? I did try Fin without success. ThunderRT6FormDC has child windows with no titles that are forms, buttons, and other objects.

Do you know of a good book/website that describes how to use User32?

Thanks for the great support

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Apr 12, 2007 3:55 pm

>What is FindWindow/FindWindowEx?

FindWindowA and FindWindowEx are functions of User32.

>Do you know of a good book/website that describes how to
>use User32?

http://www.microsoft.com
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Fri Apr 13, 2007 5:08 am

Hi sailor dude,

Did you Search the forums here for FindWindowEx? I just did and found a handful of posts, some with examples. Here are a few you might find helpful:
If you do find any more helpful info out there on this (other than what's on Microsoft's site) please post the links.

Thanks and take care
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

sailor dude
Pro Scripter
Posts: 50
Joined: Fri Jan 20, 2006 10:43 pm

Thanks jpuziano

Post by sailor dude » Thu Apr 19, 2007 1:16 pm

I did find a helpful link to using API calls besides Microsoft.

http://allapi.mentalis.org/agnet/apiguide.shtml

Thanks again

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Apr 19, 2007 3:08 pm

Hi sailor dude,

I just installed their free APIGuide. It looks like it was developed to help Visual Basic programmers use API calls (examples for 900+ API functions are in Visual Basic code) but it should be helpful for us as well.

We can only :shock: dream :shock: that one day, such a resource might be available with examples showing how to call hundreds of API functions from MacroScript. Until then, reading these forums is the best way I know of to keep learning more.

Thanks for sharing that link and take care.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts