Zum Build der MasterCode.au3 benötigt man offenbar eine AutoIt-Version GRÖßER 3.3.14.0. , korrekt ?
Das kann gut sein! Ich benutze v3.3.14.5 und damit funktioniert das.
Ich konnte jetzt im Changelog auch nichts derartiges finden, aber wenn da nur die eine Funktion fehlt:
AutoIt
; #FUNCTION# ====================================================================================================================
; Author.........: Yashied
; Modified.......: jpm
; ===============================================================================================================================
Func _WinAPI_GetMonitorInfo($hMonitor)
Local $tMIEX = DllStructCreate('dword;long[4];long[4];dword;wchar[32]')
DllStructSetData($tMIEX, 1, DllStructGetSize($tMIEX))
Local $aRet = DllCall('user32.dll', 'bool', 'GetMonitorInfoW', 'handle', $hMonitor, 'struct*', $tMIEX)
If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0)
Local $aResult[4]
For $i = 0 To 1
$aResult[$i] = DllStructCreate($tagRECT)
_WinAPI_MoveMemory($aResult[$i], DllStructGetPtr($tMIEX, $i + 2), 16)
; Return SetError(@error + 10, @extended, 0) ; cannot really occur
; EndIf
Next
$aResult[3] = DllStructGetData($tMIEX, 5)
Switch DllStructGetData($tMIEX, 4)
Case 1 ; MONITORINFOF_PRIMARY
$aResult[2] = 1
Case Else
$aResult[2] = 0
EndSwitch
Return $aResult
EndFunc ;==>_WinAPI_GetMonitorInfo
Alles anzeigen