Jump to content

Numbers ON TOP?


Recommended Posts

Hi! I have been trying for a while now and can't figure it out. I want transparent numbers on top at special coordinates. Like this bFzJZ9.png

However all i can manage is getting them on top with a gui but they are not transparent and the rest of the gui overlaps the actual thing. I want them to always stay on top and be transparent.

If possible i would also want to be able to move them by drag-and-dropping. Does anyone have any tips on how i should do this the easiest way?

Link to comment
Share on other sites

Try this:

 

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>

Global $i, $a[10], $iW = 30, $iH = 20, $fRadius = 200, $fAngle = 109.75, $fFontSize = 18, $fDeg = ACos(-1) / 180, $iTransColor = 0x010101
For $i = 0 to 9
    $a[$i] = GUICreate("", $iW, $iH, 500 - Sin($fAngle + $i * 8 * $fDeg) * $fRadius, 400 + Cos($fAngle + $i * 8 * $fDeg) * $fRadius, $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_LAYERED, $WS_EX_TOPMOST))
    GUISetBkColor($iTransColor, $a[$i])
    GUICtrlCreateLabel($i + 1, 0, 0, $iW, $iH, BitOR($SS_CENTER, $SS_CENTERIMAGE), $GUI_WS_EX_PARENTDRAG)
    GUICtrlSetColor(-1, 0x01A101)
    GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetFont(-1, $fFontSize, 800, 0, "Arial", 3)
    _WinAPI_SetLayeredWindowAttributes($a[$i], $iTransColor)
    GUISetState(@SW_SHOW, $a[$i])
Next

Do
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
Until Not Sleep(50

Br,

UEZ

Edited by UEZ

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

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...