Jump to content

Company logo on external app?


Recommended Posts

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]")

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

$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

Link to comment
Share on other sites

  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...