maniootek Posted July 27, 2009 Share Posted July 27, 2009 I live with my friends and I know that somebody reading my messages on GG (it's polish communicator). I know that because when I leave my laptop I see that somebody is writing to me (I see the flash on the minimized conversation window) ...... and when I'm back it's not flashing anymore -> That's mean that somebody was activate the conversation window and read this.Is it possible to make something like this:When somebody will try activate window (click on this) it will do nothing (click will do nothing, because somebody could do it by acciden) BUT when somebody click on this again then play alert or something (nvm what, i will be fine after this)Any suggestions to solve my problem?Btw: why I don't see the "Posted Image" lol :S Link to comment Share on other sites More sharing options...
BrettF Posted July 27, 2009 Share Posted July 27, 2009 They will stop flashing after a period of time... See the following example: expandcollapse popup#AutoIt3Wrapper_Au3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <WinAPI.au3> #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) _Main() Func _Main() Local $hwnd, $Flash, $Timeout, $btnFlash, $msg, $flashrate, $timeoutrate, $flashing = False $hwnd = GUICreate("Form1", 229, 170, 193, 125) $Flash = GUICtrlCreateInput("20", 80, 72, 121, 21) $Timeout = GUICtrlCreateInput("500", 80, 103, 121, 21) GUICtrlCreateLabel("Please input the flash rate, and the time between flashes", 8, 24, 214, 41) GUICtrlCreateLabel("Flash Rate:", 16, 72, 58, 17) GUICtrlCreateLabel("Timeout (ms)", 16, 104, 64, 17) $btnFlash = GUICtrlCreateButton("Flash Window", 80, 136, 75, 25, 0) GUISetState(@SW_SHOW) #EndRegion While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $btnFlash If $flashing Then _WinAPI_FlashWindowEx($hwnd, 0) $flashing = False Else $flashrate = GUICtrlRead($Flash) $timeoutrate = GUICtrlRead($Timeout) _WinAPI_FlashWindowEx($hwnd, 2, $flashrate, $timeoutrate) GUICtrlSetData($btnFlash, "Stop Flashing") $flashing = True EndIf EndSwitch WEnd EndFunc ;==>_Main Cheers, 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...
maniootek Posted July 27, 2009 Author Share Posted July 27, 2009 Is it possible to make something to do not let restore window from minimized state after one click but only after double click? Link to comment Share on other sites More sharing options...
BrettF Posted July 27, 2009 Share Posted July 27, 2009 You are unable to lock your computer? 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...
maniootek Posted July 27, 2009 Author Share Posted July 27, 2009 you are not answering to my questions >_< I can't lock my computer because I let my friends to use it. I don't want switch off my GG every time when I leave my computer for cigarette or sandwitch. Btw you are right, it will stop flashing but NOT LIGHTING. Any suggestions? :S Link to comment Share on other sites More sharing options...
Developers Jos Posted July 27, 2009 Developers Share Posted July 27, 2009 you are not answering to my questions >_< I can't lock my computer because I let my friends to use it. I don't want switch off my GG every time when I leave my computer for cigarette or sandwitch. Btw you are right, it will stop flashing but NOT LIGHTING. Any suggestions? :SI think you are not listening either Just do a WindowsKey+L every time you leave the computer and setup a Guest account for other to use. when you are away.It won't get much simpler than using the build in support for it.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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