Sign in to follow this  
Followers 0
maniootek

Trap for nosy friends

6 posts in this topic

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) ...

Posted Image

... 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

Share this post


Link to post
Share on other sites



They will stop flashing after a period of time... See the following example:

#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

Share this post


Link to post
Share on other sites

Is it possible to make something to do not let restore window from minimized state after one click but only after double click?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

I 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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0