Writing text/graphx over an active window. (or the screen)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Writing text/graphx over an active window. (or the screen)

Post by EnderFFX » Fri Jul 17, 2009 9:56 pm

Let me give an example:
A window pops out. Based on the properties of the window (which I've already determined) I want to put either a small icon, or write a text message over a part of the window. I would be writing over the window.

Is this possible? I'm a little lost on how to do this or even if it is possible.

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

This would be a good place to start

Post by gdyvig » Sat Jul 18, 2009 12:36 am

This contribution by Dick might help you get started:

http://www.mjtnet.com/usergroup/viewtop ... a705d7e358

Dick is using a GDI32 api to paint on the screen using MoveToEx and LineTo functions. Another GDI32 function called TextOut will let you paint text to the screen.



Gale

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Jul 18, 2009 4:42 pm

Or, for another possible method, look at the last two samples in this Scripts and Tips entry.

EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Post by EnderFFX » Tue Jul 21, 2009 7:46 pm

Just what I was looking for JRL, thank you.

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