Local $hCompress = ControlGetHandle(WinGetHandle('[TITLE:Zlib Tools; CLASS:obj_Form]'),'','[CLASS:obj_SysTabControl32; INSTANCE:1]')
If Not @error Then
_MouseClick($hCompress,8,8)
EndIf
Func _MouseClick($hWnd, $x, $y)
Local $lParam = BitOR(BitAND($x, 0xFFFF), $y * 0x10000)
_PostMessage($hWnd, 0x200, 0, $lParam) ;WM_MOUSEMOVE
Sleep(10)
_PostMessage($hWnd, 0x201, 0, $lParam) ;WM_LBUTTONDOWN
_PostMessage($hWnd, 0x202, 0, $lParam) ;WM_LBUTTONUP
EndFunc ;==>_MouseClick
Func _PostMessage($hWnd, $iMsg, $iwParam, $ilParam)
DllCall('user32.dll', 'bool', 'PostMessage', 'hwnd', $hWnd, 'uint', $iMsg, 'wparam', $iwParam, 'lparam', $ilParam)
EndFunc ;==>_PostMessage
|