MaxMeyer123 Posted July 30, 2014 Posted July 30, 2014 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.
MaxMeyer123 Posted July 30, 2014 Author Posted July 30, 2014 i already wrote the "structure" of it i just need help with the overlay heres the code + result (msg box for testing) expandcollapse popup#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Ā
Jfish Posted July 30, 2014 Posted July 30, 2014 Take a look at "SplashImageOn" use a transparent image and the parameter $DLG_MOVEABLE (16) = Window can be moved. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
Solution MaxMeyer123 Posted July 30, 2014 Author Solution Posted July 30, 2014 (edited) if i dont take the dlg_moveable parameter its not movable? it shouldnt be movable // i search a overlay function for textes not picture :SĀ but ty anyways Edited July 30, 2014 by MaxMeyer123
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