the OSD triggers for every wParam=12 event
Thank you. I will correct it.
similar topic. sound alert whenver a network cable is unplugged. any idea?
Sorry! I do not know of a solution for it.
( Wake up forum! Wake up! )
the OSD triggers for every wParam=12 event
similar topic. sound alert whenver a network cable is unplugged. any idea?
You say "The shell receives HSHELL_GETMINRECT ( with a shellhook structure ) whenever a window is being Minimised/Maximised. A script may monitor it to Minimize a window to the tray."
UNKNOWN [32772] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x3f0184 Title : EditPlus [_Taskbar] - [D] Class : Afx:400000:8:10003:0:58044f HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x1e0118 Title : Total Commander 7.04a Class : TTOTAL_CMD HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x3f0184 Title : EditPlus [_Taskbar] - [D] Class : Afx:400000:8:10003:0:58044f HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x3f0184 Title : EditPlus [_Taskbar] - [D] Class : Afx:400000:8:10003:0:58044f HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x1e0118 Title : Total Commander 7.04a Class : TTOTAL_CMD UNKNOWN [32772] hWnd : 0x2a8051e Title : Tips N Tricks - Opera Class : OpWindow UNKNOWN [32772] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x2a8051e Title : Tips N Tricks - Opera Class : OpWindow HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x1e0118 Title : Total Commander 7.04a Class : TTOTAL_CMD HSHELL_SYSMENU [9] HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : HSHELL_WINDOWDESTROYED [2] hWnd : 0x0 Title : Class : HSHELL_REDRAW [6] hWnd : 0x0 Title : Class : UNKNOWN [32772] hWnd : 0x0 Title : Class :
Yes here!Does anybody have problems with Shell hook and activation ?
Where to find it plz?here is the output of SKANs utuility
don't duplicate, iterate!
i used shellhook code but while i right clicked 'my computer' on start menu to open 'system properties' i received nothing.
it looks like the hook method only works on toplevel windows.
There must be a way to hook all window and even control handles!
Explained that way, it absolutly does make sense!For windows which do not have a taskbar button, the messages will not be sent, which makes sense.
don't duplicate, iterate!
Gui +LastFound hWnd := WinExist() DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( MsgNum, "ShellMessage" ) Return ; // End of Auto-Execute Section // ShellMessage( wParam,lParam ) { ; Execute a command based on wParam and lParam }
I tried adding this code as it is at end of the file , it doesn't work however.
Return ; // End of Auto-Execute Section //
I tried adding this code as it is at end of the file , it doesn't work however.
Return ; // End of Auto-Execute Section //
Please refer AHK Documentation for 'auto-execute section'.
Revert back if you have a problem in understanding the concept.
#include %A_ScriptDir%\My Scripts\notifylockunlock.ahk #include %A_ScriptDir%\My Scripts\iSwitcher.ahk notify_lock_unlock() ; Calls function "on_lock()" when computer is locked and "on_unlock()" when computer is unlocked
Gui +LastFound hWnd := WinExist() DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( MsgNum, "ShellMessage" ) Return
It is preferable that you use #include at the end of the script.