lowbred Posted April 14, 2015 Share Posted April 14, 2015 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() Link to comment Share on other sites More sharing options...
UEZ Posted April 14, 2015 Share Posted April 14, 2015 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
lowbred Posted April 14, 2015 Author Share Posted April 14, 2015 It's company software, it's just lacking the good old company logo. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 14, 2015 Moderators Share Posted April 14, 2015 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 More sharing options...
lowbred Posted April 14, 2015 Author Share Posted April 14, 2015 I'm testing with a homegrown app but it's for my wife's boss. It's for a restaurant menu interface. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now