#include #include #include ; Davide Lonardi RotateDisplays.au3 May 2019 RotateDisplays() Func RotateDisplays() Global $logging = true Local $iReturn = 0; Global $hSysTray_Handle, $iSystray_ButtonNumber Global $sToolTipTitle = 'Show'; ; ============= Runs the INTEL GRAPHICS TOOL and reverts the Displays =============== _log('Entering the RotateDisplays ...') If FileExists ( "C:\Diebold\HW\Denver.txt" ) = 1 then _log('The Processor detected is DENVER ...') _log('Running the INTEL GRAPHIC TOOL ...') ControlClick('[Class:Shell_TrayWnd]', '', 1502 ) ControlClick('[CLASS:SysListView32; INSTANCE:1]', '', 1504 ) EndIF ;Sleep(5000) SplashOff() EndFunc ;==>RunBancorInstall Func _log($message) If $logging Then ; global variable where you can globally switch OFF/ON logging FileWriteLine('c:\Agilis\Setuplogs\RotateDisplays.log', @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & ":" & @SEC & " --> " & $message) EndIf EndFunc