Adele

Ghost Interface

6 posts in this topic

#1 ·  Posted (edited)

I'm trying to make an always on top interface showing informations on an edge of desktop. I'd like that it doesn't disturb the user, so when the user moved cursor over the transparent interface, the cursor should be detected by the bottom window like the interface never exist. Good day.

Edited by Adele

Share this post


Link to post
Share on other sites



@Adele that is a great explanation of what you want. Now, how about what you have tried? There are functions in the help file for making a GUI always on top, as well as transparency. Why don't you post what you have tried on your own, and where you're stuck?

1 person likes this

When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

If you aren't kidding me, it's good to hear that I've explained good, I hadn't thought that my English was enough.

I need just help about to make detecting cursor by the bottom window when cursor was moved over the window. I know things like using gui, transparency.

Edited by Adele

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Check out 4th return array value of 

GUIGetCursorInfo

 

Edited by UEZ
1 person likes this

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

#5 ·  Posted (edited)

@UEZ I've looked it, it isn't actually relevant to that I want but it has given me an idea. I will use that on smartboard (so it is used with touch panel). When a user clicked point where does the interface exist, the script will get cursor's coordinates and quickly click the actual location over bottom window hiding itself. I would want to make that without hiding quickly the interface but it isn't a badly needed. Maybe if I would use that on desktop... If someone has still idea about how can we do that please let them share.

Edited by Adele

Share this post


Link to post
Share on other sites

Something like this here?

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPIGdi.au3>

Global $hGUI = GUICreate("Ghost", 100, 50, @DesktopWidth - 100, 0, $WS_POPUP, $WS_EX_TOPMOST)
GUISetBkColor(0x808080)
Global $iLbl = GUICtrlCreateLabel("Hover me :-)", 10, 10)
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState()

AdlibRegister("HoverChk", 50)
Do
Until GUIGetMsg() = -3
AdlibUnRegister("HoverChk")
GUIDelete()


Func HoverChk()
    Local $iFadeIn = 8, $iFadeOut = 64
    Local Static $iTransparency = 255
    Local $aPos = WinGetPos($hGUI)
    If _WinAPI_PtInRectEx(MouseGetPos(0), MouseGetPos(1), $aPos[0], $aPos[1], $aPos[2] + $aPos[0] + 1, $aPos[3] + $aPos[1] + 1) Then
        If $iTransparency >= 0 Then
            $iTransparency -= $iFadeOut
            $iTransparency = $iTransparency < 0 ? 0 : $iTransparency
            WinSetTrans($hGUI, "", $iTransparency)
        EndIf
    Else
        If $iTransparency <= 255 Then
            $iTransparency += $iFadeIn
            $iTransparency = $iTransparency > 255 ? 255 : $iTransparency
            WinSetTrans($hGUI, "", $iTransparency)
        EndIf
    EndIf
EndFunc

 

3 people like this

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

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