Hello I need to find the center of two points I am using this to get my first position:
Local $pos1 = MouseGetPos() ;CENTER OF AUTOSN
And This to get my second position:
Local $pos2 = MouseGetPos() ;CENTER OF SN
Here is where it would need to get the center:
Local $pos3 = $pos1 (what ever formula to get center) $pos2 ;I need help here
My code:
Local $pos1 = MouseGetPos() ;CENTER OF AUTOSN
And This to get my second position:
Local $pos2 = MouseGetPos() ;CENTER OF SN
Here is where it would need to get the center:
Local $pos3 = $pos1 (what ever formula to get center) $pos2 ;I need help here
My code:
Local $pos1 = MouseGetPos() ;CENTER OF AUTOSN _GDIPlus_Startup() $hImageA =_GDIPlus_ImageLoadFromFile($fileJ) ;this is the SN $hBitmapA = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageA) $x = 0 $y = 0 $result = _ImageSearch($hBitmapA, 1, $x, $y, 20, 0) ;Zero will search against your active screen If $result > 0 Then ToolTip("FOUND SN",0,0) $go4 = 4 MouseMove($x, $y) Local $pos2 = MouseGetPos() ;CENTER OF SN _GDIPlus_ImageDispose($hImageA) _GDIPlus_Shutdown() Else ToolTip("CANT FIND SN",0,0) SLEEP(200) _GDIPlus_ImageDispose($hImageA) _GDIPlus_Shutdown() EndIf Local $pos3 = $pos1 (what ever formula to get center) $pos2 ;I need help here mouseclick("Left",$pos3[0],$pos3[1],2) ;Should click center sleep(200) SEND("^c") sleep(200) Global $text2 = ClipGet() sleep(200)