Window Border Restore (ATT:Marcus)

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Window Border Restore (ATT:Marcus)

Post by PepsiHog » Fri Sep 20, 2024 2:32 pm

Hello Everyone,
I'm using this script written(I'm told) by Marcus.

Code: Select all

// Hide the border of a non-MS window


GetWindowHandle>SomeWindowName,dhwnd

Let>WS_CAPTION=12582912
Let>WS_MINIMIZEBOX=131072
Let>WS_MAXIMIZEBOX=65536
Let>WS_SYSMENU=524288
Let>WS_THICKFRAME=262144
Let>WS_POPUP=2147483648
Let>WS_CHILD=1073741824


Let>style=WS_CHILD
LibFunc>user32,SetWindowLongA,sres,dhwnd,-16,style

//The window has to repaint in some manner so minimise and then restore
Let>WIN_USEHANDLE=1
//WindowAction>2,dhwnd
Wait>1
WindowAction>0,dhwnd
//Wait>5
//CloseWindow>dhwnd
Let>WIN_USEHANDLE=0
I am curious if it is possible to revert the window back to its original state?

Thanks,
PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

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