StickyWindow for external programs ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Janni
Enthusiast
Enthusiast
Posts: 127
Joined: Mon Feb 21, 2022 5:58 pm
Location: Norway

StickyWindow for external programs ?

Post by Janni »

Would it be possible to RunProgram("notepad.exe") and make that application StickyWindow somehow ? or is that option only for windows created by PB ? -thanks
Spec: Linux Mint 20.3 Cinnamon, i7-3770K, 16GB RAM, RTX 2070 Super
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: StickyWindow for external programs ?

Post by Mijikai »

U would need to use WinApi for that.

https://docs.microsoft.com/en-us/window ... twindowpos

Code: Select all

SetWindowPos_(WindowHandle,#HWND_TOPMOST,#Null,#Null,#Null,#Null,#SWP_NOMOVE|#SWP_NOSIZE)
User avatar
Janni
Enthusiast
Enthusiast
Posts: 127
Joined: Mon Feb 21, 2022 5:58 pm
Location: Norway

Re: StickyWindow for external programs ?

Post by Janni »

Thanks Mijikai :)
Spec: Linux Mint 20.3 Cinnamon, i7-3770K, 16GB RAM, RTX 2070 Super
Post Reply