Masheen Posted July 29, 2016 Posted July 29, 2016 How send click to minimize window (DirectX). What funtion use? DllCall or _WinAPI_PostMessage WinGetHandle($WinTi) or ControlGetHandle(WinGetHandle($WinTi) Have any body work exemple? thx
Masheen Posted July 29, 2016 Author Posted July 29, 2016 On 7/29/2016 at 11:40 AM, Deye said: you can try WinSetState Expand and then? what use that send click to window?
Deye Posted July 29, 2016 Posted July 29, 2016 Try searching, there are many examples around ShellExecute("dxdiag") $win = WinWaitActive("DirectX Diagnostic Tool") WinSetState("DirectX Diagnostic Tool", '', @SW_MINIMIZE) Sleep(1000) WinSetState("DirectX Diagnostic Tool", '', @SW_RESTORE) ;click next page button ControlClick($win, "", "[CLASS:Button; INSTANCE:5]")
Masheen Posted July 29, 2016 Author Posted July 29, 2016 On 7/29/2016 at 12:24 PM, Deye said: Try searching, there are many examples around ShellExecute("dxdiag") $win = WinWaitActive("DirectX Diagnostic Tool") WinSetState("DirectX Diagnostic Tool", '', @SW_MINIMIZE) Sleep(1000) WinSetState("DirectX Diagnostic Tool", '', @SW_RESTORE) ;click next page button ControlClick($win, "", "[CLASS:Button; INSTANCE:5]") Expand i no need minimize programm i need to send mouse click coordinate to minimize program like this #include <Misc.au3> #RequireAdmin Opt("MouseCoordMode", 0) Opt ('WinTitleMatchMode','2') ; Helps With Getting The Window Information... $Title = 'Metal' ; The Name $Full = WinGetTitle ($Title) ; Get The Full Title.. $HWnD = WinGetHandle ($Full) ; Get The Handle ;WinSetState($HWnD, '', @SW_HIDE ) $iButton = 'left' ; Button The Mouse Will Click I.E. "Left Or Right" $iClicks = '1' ; The Number Of Times To Click $iX = '500' ; The "X" Pos For The Mouse To Click $iY = '500' ; The "Y" Pos For The Mouse To Click If IsHWnD ($HWnD) And WinExists ($Full) <> '0' Then ; Win Check ControlClick ($HWnD, '','', $iButton, $iClicks, $iX, $iY) ; Clicking The Window While Its Minmized EndIf but it is not work
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now