Jump to content

How send click to minimize window (DirectX)


Recommended Posts

1 hour ago, 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]")

 

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...