Ibrahim Posted January 29, 2009 Share Posted January 29, 2009 what i did is to make a tooltip the shows my computer status It's always "OnTop" even on full screen movies "Lightweight" not using lots of my processor "have shadow--means nice" the question is how to make a png transparent Gui with all these features [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
KaFu Posted January 29, 2009 Share Posted January 29, 2009 Give this UDF a try:http://www.autoitscript.com/forum/index.ph...t=0&start=0 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Ibrahim Posted January 29, 2009 Author Share Posted January 29, 2009 man it's not just about using the png background i's about the Ontop mode even on full screen movies [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
BrettF Posted January 29, 2009 Share Posted January 29, 2009 Well maybe have a look at the GUI styles. Specifically $WS_EX_TOPMOST. Then once you have created the PNG and made the GUI, its pretty simple from there... So just give it a go? Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Ibrahim Posted January 30, 2009 Author Share Posted January 30, 2009 Thanks.!But: not working with full screen movies [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
rover Posted January 30, 2009 Share Posted January 30, 2009 Hi Ibrahim I don't have a definitive answer at hand but look into GDI and GDI+ for painting text as an overlay on video search forum, maybe 'text on video' there are many GDI+ examples here's a modified helpfile GDI example tested on fullscreen avi with media player classic expandcollapse popup#include <WinAPI.au3> #include <WindowsConstants.au3> #include <FontConstants.au3> Global $tRECT, $hFont, $hOldFont, $hDC HotKeySet("{ESC}", "_Exit") $tRECT = DllStructCreate($tagRect) DllStructSetData($tRECT, "Left", 10) DllStructSetData($tRECT, "Top", 5) DllStructSetData($tRECT, "Right", 400) DllStructSetData($tRECT, "Bottom", 50) $hDC = _WinAPI_GetDC(0) $hFont = _WinAPI_CreateFont(50, 0, 0, 0, 400, False, False, False, $DEFAULT_CHARSET, _ $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, 'Arial') $hOldFont = _WinAPI_SelectObject($hDC, $hFont) _WinAPI_SetTextColor($hDC, 0x00FFFF) _WinAPI_SetBkColor($hDC, 0x000000) ; comment next line to get black background instead of transparent one _WinAPI_SetBkMode($hDC, $TRANSPARENT) While 1 _WinAPI_DrawText($hDC, "Hello world!", $tRECT, $DT_CENTER) Sleep(1000) _WinAPI_InvalidateRect(0, 0) _WinAPI_DrawText($hDC, "Goodbye world!", $tRECT, $DT_CENTER) Sleep(1000) _WinAPI_InvalidateRect(0, 0) WEnd Func _Exit() _WinAPI_SelectObject($hDC, $hOldFont) _WinAPI_DeleteObject($hFont) _WinAPI_ReleaseDC(0, $hDC) _WinAPI_InvalidateRect(0, 0) $tRECT = 0 Exit EndFunc ;==>_Exit I see fascists... Link to comment Share on other sites More sharing options...
Ibrahim Posted February 2, 2009 Author Share Posted February 2, 2009 $TRANSPARENT,_WinAPI_SetBkMode() what includes that :==>says undefined variables [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
NerdFencer Posted February 3, 2009 Share Posted February 3, 2009 WinAPI.au3 for _WinAPI_SetBkMode() WindowsConstants.au3 for $TRANSPARENT For both you need the beta version of AutoIt _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
CosmicDan Posted February 3, 2009 Share Posted February 3, 2009 (edited) With the whole fullscreen movies thing, it'll be a bit complicated. I don't know too much about it and can't help that much, apart from providing this information, but the way a video is drawn can vary by Windows version and the Media Player being used. For instance, if it's in Overlay mode, which is most common for XP and older Media Players, then graphic card settings might prevent any "on top" drawing. VMR7 is the default in XP though, which uses DirectX 7 to render the video. In Vista and Windows Media Player, EVR is used, and would require a .NET 3.5 communication of some sort to draw over the top of it. With that said, the physical program that is drawing the video might need to be modified by AutoIt3 somehow. A DLL hook might be needed to interface directly with whatever rendering engine is being used (or in the case of EVR, some fancy .NET 3.5 stuff that I know zero about). My point is, I think it will be a bit more involved then simply setting a foremost flag for GDI+ drawing of what you want to do. I could be wrong, but yeah. Try experimenting with MPlayerC as your video player too, as it allows you to specifically choose the output method of the video drawing. Edited February 3, 2009 by DanielC CosmicDan.com Link to comment Share on other sites More sharing options...
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