Jotos Posted May 30, 2023 Posted May 30, 2023 Heya, I use a transparent GUI with: WinSetTrans($Form1, "", 90) But this dont work on Tooltips. How can I change it? I tried - but it didnt work >.< WinSetTrans("[CLASS:tooltips_class32]", "", 150)
Andreik Posted May 30, 2023 Posted May 30, 2023 I don't think it's possible. You can have some color background using GUIToolTip UDF but for what you want I think the best way it's to make a custom window.
Jotos Posted May 30, 2023 Author Posted May 30, 2023 (edited) Okay! I got it working with an extra window. Now I have one other questions: Although the window is on top, you should click below it. Is this possible? The reason is that my tooltip is on top of my browser and I want to see the tooltip, but at the same time I want to operate the broswer. Thats my funtion: Spoiler Func _ToolTip($sText, $iX, $iY) Local $RetAr[2] ;Mainfenster erstellen $tooltipmain = GUICreate("", 123, 123, $iX, $iY, -2147483648, 128) ;$WS_POPUP = -2147483648, $WS_EX_TOOLWINDOW = 128 GUISetBkColor(0XFFFFFF) ;Label mit Text erstellen Global $lab = GUICtrlCreateLabel($sText, 3, 3) $cgp = ControlGetPos($tooltipmain, "", $lab) ;Labelgröße rausfinden WinMove($tooltipmain, "", $iX, $iY, $cgp[2], $cgp[3]) ;Gui perfekt formen WinSetTrans($tooltipmain, "", 90) ;OnTop WinSetOnTop($tooltipmain, "", 1) ;Zeige Tooltip GUISetState(@SW_SHOW, $tooltipmain) ;Bereite das Return array vor, falls man das Tooltip wieder entfernen will $RetAr[0] = $tooltipmain Return $RetAr EndFunc Edited May 30, 2023 by Jotos
Nine Posted May 31, 2023 Posted May 31, 2023 (edited) Here one way to make it more friendly. As you can see the current window does not loose focus on the tooltip display. But if the tooltip gets in the way, you can drag it elsewhere. #include <GUIConstants.au3> _ToolTip("Very Long Test" & @CRLF & "Very Very Long Test" & @CRLF & "Very Very Very Long Test", 200, 200) Sleep(10000) Func _ToolTip($sText, $iX, $iY) Local $tooltipmain = GUICreate("", 123, 123, $iX, $iY, BitOR($WS_POPUP, $WS_BORDER), _ BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST , $WS_EX_CONTROLPARENT, $WS_EX_NOACTIVATE)) GUISetBkColor(0XFFFFFF) Local $lab = GUICtrlCreateLabel($sText, 3, 3, -1, -1, -1, $GUI_WS_EX_PARENTDRAG) Local $cgp = ControlGetPos($tooltipmain, "", $lab) WinMove($tooltipmain, "", $iX, $iY, $cgp[2], $cgp[3]) WinSetTrans($tooltipmain, "", 90) GUISetState(@SW_SHOWNOACTIVATE) EndFunc Edited May 31, 2023 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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