Jump to content
Sign in to follow this  
MaxMeyer123

Overlay

Recommended Posts

MaxMeyer123

Hi guys,

how can i create an undraggable, transparent, foreground (over Chrome, VLC Player etc, idc Games because i want dat Overlay for my second Screen) overlay?

(just for textes (like Wlan on/off, NAS on/off(i already wrote the functions)))

Ty guys.

Share this post


Link to post
Share on other sites
MaxMeyer123

i already wrote the "structure" of it i just need help with the overlay heres the code + result (msg box for testing)

#RequireAdmin
#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GDIPlus.au3>
#include "includes/Pyload_Selfmade.au3"
#include "includes\_FB_Tools_api.au3"
#include "includes\_FB_Tools.au3"
#include "includes\GetWlanState_Selfmade.au3"
Global $Logpathov = FileOpen(@ScriptDir & "\Overlay.log", 2)
LoginFB()
Func LoginFB()
   If _FB_Init() = 0 Then
         _FileWriteLog($Logpathov, "FB | Init failed")
        Exit
    Else
        _FileWriteLog($Logpathov, "FB | Init OK")
    EndIf
    ;now log in
    If _FB_LogIn() = 0 Then;log in to the fritzbox and generate a new sid
        _FileWriteLog($Logpathov, "FB | Login failed")
        Exit
    Else
        _FileWriteLog($Logpathov, "FB | Login OK. Current SID is " & _FB_getSID())
    EndIf
    ;are we logged in?
    If _FB_IsLoggedIn() Then
        _FileWriteLog($Logpathov, "FB | Login OK, running login Pyload")
        Loginpy()
    Else
        _FileWriteLog($Logpathov, "FB | Login failed.")
     EndIf
     _FileWriteLog($Logpathov, "FB | Shutdown")
    _FB_shutdown()

 EndFunc ;==> LoginFB

Func LoginPY()
   If _py_Connect() = 1 Then
      Global $PyConnected = 1
   Else
      Global $PyConnected = 0
   EndIf
   Overlay()
EndFunc ;==> LoginPY

Func Overlay()
If $PyConnected = 0 Then
$OvText = _FB_GetWLAN()
Endif
If $Pyconnected = 1 and _PY_GetDLStatus() = 1 Then
$OvText = _FB_GetWLAN() & @CRLF & "Pyload an" & @CRLF & _PY_DLSpeed()
Else
$OvText = _FB_GetWLAN() & @CRLF & "NAS AN"
Endif
MsgBox(1,"", $OvText)
EndFunc
 

ResultĀ 

el4st4f4y23h.png

Share this post


Link to post
Share on other sites
MaxMeyer123

if i dont take the dlg_moveable parameter its not movable? it shouldnt be movable :P

// i search a overlay function for textes not picture :SĀ 

but ty anyways

Edited by MaxMeyer123

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
Sign in to follow this  

×