I'm making a window-organizing app (which I'll share after it's complete) and want to watch for when a window is resized/moved on the desktop.
Edited by mechaflash213, 11 July 2012 - 07:54 PM.
Posted 11 July 2012 - 02:08 PM
Edited by mechaflash213, 11 July 2012 - 07:54 PM.
Posted 11 July 2012 - 02:14 PM
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
Posted 11 July 2012 - 02:25 PM
Posted 11 July 2012 - 02:26 PM
Edited by mechaflash213, 11 July 2012 - 02:26 PM.
Posted 11 July 2012 - 04:08 PM
#include <Array.au3> ;~ HotKeySet("^!e", "_IncludeExclude") GUIRegisterMsg(0x0001, "_WinOrg_RegisterWindow") ; If Window is Created GUIRegisterMsg(0x0002, "_WinOrg_UnRegisterWindow") ; If Window is Destroyed ;~ GUIRegisterMsg(0x0003, "_WinOrg_WindowCheck") ; If Window Moves ;~ GUIRegisterMsg(0x0005, "_WinOrg_WindowCheck") ; If Window is Resized ;~ GUIRegisterMsg(0x0047, "_WinOrg_WindowCheck") ; If Window Position Changes ; Global $ahWinList Defined in _WinOrg_Initialize() _WinOrg_Initialize() _ArrayDisplay($ahWinList) _ArrayDisplay($ahWinList) While 1 Sleep(100) WEnd Func _WinOrg_Initialize() $avWinListTemp = WinList() Global $ahWinList[$avWinListTemp[0][0]] $x = 0 For $i = 1 To $avWinListTemp[0][0] If $avWinListTemp[$i][0] <> "" And _WinOrg_IsVisible($avWinListTemp[$i][1]) Then $x+=1 $ahWinList[$x] = $avWinListTemp[$i][1] EndIf Next $ahWinList[0] = $x ReDim $ahWinList[$x + 1] EndFunc Func _WinOrg_IsVisible($handle) If BitAND(WinGetState($handle), 2) Then Return 1 Else Return 0 EndIf EndFunc Func _WinOrg_RegisterWindow($hWndGUI, $MsgID) msgbox(0,"","REGISTERED WINDOW WITH HANDLE: " & $hWndGUI) EndFunc Func _WinOrg_UnRegisterWindow($hWndGUI, $MsgID) msgbox(0,"","UNREGISTERED WINDOW WITH HANDLE: " & $hWndGUI) EndFunc
Edited by mechaflash213, 11 July 2012 - 05:08 PM.
Posted 11 July 2012 - 07:49 PM
Edited by mechaflash213, 11 July 2012 - 07:55 PM.
Posted 11 July 2012 - 08:43 PM
How would I go about waiting for interaction of a window on the desktop and targeting that window?
I'm making a window-organizing app (which I'll share after it's complete) and want to watch for when a window is resized/moved on the desktop.
0 members, 0 guests, 0 anonymous users