Sign in to follow this  
Followers 0
lowbred

Company logo on external app?

5 posts in this topic

I'm trying to overlay a company logo to external software. I can get the logo to appear and stay where I want it in fullscreen but when the program window is resized the logo disappears. I tried implementing a number of script examples by UEZ with no luck.

If I placed the logo on the left side of the program window it stays in place no matter what the window size. I need it to be on the right side of the window.

#include <GDIPlus.au3>
#include <GuiConstantsEx.au3>

Global $hGUI, $hImage, $hGraphic

WinWait("[CLASS:Waltec]", "", 10)
$hGUI = WinGetHandle("[CLASS:Waltec]")

_GDIPlus_StartUp()
$hImage   = _GDIPlus_ImageLoadFromFile("C:\Users\lowbred\Desktop\logo.png")
$hImage_new = _GDIPlus_ImageResize($hImage, 155, 26)

Do
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)

_GDIPlus_GraphicsDrawImage($hGraphic, $hImage_new, 1109, 39) ;8px offset with x, 9px offset with y and idk why?

If Not ProcessExists("Waltec.exe") Then
    Exit
EndIf
Until GUIGetMsg() = $GUI_EVENT_CLOSE

_GDIPlus_ImageDispose($hImage)
_GDIPlus_ImageDispose($hImage_new)
_GDIPlus_ShutDown()

Share this post


Link to post
Share on other sites



Where is the sense to inject a logo to an external app?


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

It's company software, it's just lacking the good old company logo.

Share this post


Link to post
Share on other sites

If it is a homegrown application for your company, why not do it correctly and rewrite it rather than trying to bastardize it?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I'm testing with a homegrown app but it's for my wife's boss. It's for a restaurant menu interface.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0