Sign in to follow this  
Followers 0
IanN1990

[Closed] Detect when skype or msn is flashing

1 post in this topic

#1 ·  Posted (edited)

I have done alot of forum hunting on this matter and have only come up with two positve results

The first is using pixelsearch (which wouldn't work in my case as the taskbar is hidden unless hovered over so the pixelsearch would have nothing to look for)

The second is this code (This code has been edited to work with steam messages)

Opt('WinTitleMatchMode', 2 )

If _Flash('- Chat') <> 0 Then
  WinSetState('- Chat','',@SW_RESTORE)
  WinSetOnTop('- Chat', '', 1)
endif

Func _Flash($WinHandle)
If WinActive($WinHandle) Then Return 0
    $FlashInfo=DllStructCreate('uint;hwnd;dword;uint;dword')
    DllStructSetData($FlashInfo, 1, 20)
    DllStructSetData($FlashInfo, 2, WinGetHandle($WinHandle))
    $FlashCall=DllCall('user32.dll', 'int', 'FlashWindowEx', 'ptr', DllStructGetPtr($FlashInfo))
    Return $FlashCall[0]
EndFunc

Now i have spent quite a while trying to get my head around this code as it works for steam, but doesn't work for msn or skype. If the return is not zero, it restores the window. Its only zero if the window is active or not flashing but for some reason for msn and skype it returns zero all the time wether its flashing or not.

I was wondering if anyone understands what the DllstrcturSetData or Dllcall call in this matter to help fix the problem

P.S The person that posted this code has not been online sense 2007, ego why i am asking for some help from the commuity :)

Edited by IanN1990

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