psychotik2k3 Posted April 1, 2006 Share Posted April 1, 2006 Hi i have a little problem, i use autoit to add a simple GUI to show somes information on the corner down right. It half transparent and i want to be able to click trhough it like if it's not there, to be able to click a icon below or resize a window who has its corner below it. is there a way to do it or not ?? thanks Link to comment Share on other sites More sharing options...
nfwu Posted April 4, 2006 Share Posted April 4, 2006 (edited) A soultion: Hide the GUI when the mouse comes over it, then show it when it is out of range #include <GUIConstants.au3> Global $m_hidden = 0 ;;;;;your GUI creation code here... ;;The GUI loop while 1 $msg_adv = GuiGetMsg(1) $msg = $msg_adv[0];;Use $msg in your normal code ;;Your GUI update code here... $m_winpos = WinGetPos ( $msg_adv[1] ) If $msg_adv[3] > 0 And $msg_adv[4] > 0 And $msg_adv[3] < $m_winpos[2] And $msg_adv[4] < $m_winpos[3] And $m_hidden = 0 Then;;If mouse is within bounds of window, GuiSetState(@SW_HIDE, $msg_adv[1]);;Hide window $m_hidden = 1 ElseIf $m_hidden == 1 Then GuiSetState(@SW_SHOW, $msg_adv[1]) $m_hidden = 0 EndIf wend #) Edited April 4, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() 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