Jump to content

[SOLVED] GDI+ clickable overlay on app.


Recommended Posts

Hi community

I am trying to set some GDI+ graphism on Bluestacks app

At this point I am able to display some things, but as soon as I click on Bluestacks, the GDI+ drawings vanished

How can I keep my graphisms and still click through it

My script

#include <GDIPlus.au3>
#include <Misc.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

Global $hBlueStacks = WinGetHandle ( "BlueStacks" )
WinActivate ( $hBlueStacks )
Send ( "{F11}" )
$hGUI = GUICreate ( "GDI+", 2560, 1440, 0, 0, $WS_POPUP, $WS_EX_LAYERED )
GUISetBkColor ( 0xABCDEF )
_WinAPI_SetLayeredWindowAttributes ( $hGUI, 0xABCDEF )
GUISetState ( )

_GDIPlus_Startup ( )
$hGraphic = _GDIPlus_GraphicsCreateFromHWND ( $hGUI )
Global $hImage = _GDIPlus_ImageLoadFromFile ( @ScriptDir & "\icon.png" )
_GDIPlus_GraphicsDrawImage ( $hGraphic, $hImage, 50, 50 )
            
            
While 1
    If _IsPressed ( "1B", "user32.dll" ) Then Exit
WEnd

 

Edited by Ebola57
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
 Share

  • Recently Browsing   0 members

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