I taught myself how to script and have done some pretty basic stuff so far. I wrote the script below to detect the current orientation of my monitor, then switch it to a different orientation.
I'm bored and I've got the day off, so I'd like to tackle a new challenge. Please review the script below to get an idea of my skill level, then suggest something challenging for me to write. Just no API usage. Thanks!
$Desktop_Height = @DesktopHeight
$Desktop_Width = @DesktopWidth
Run("control desk.cpl")
WinWaitActive("Screen Resolution")
ControlSend("Screen Resolution", "", "", "!o")
If $Desktop_Height < $Desktop_Width Then
ControlSend("Screen Resolution", "", "", "{Down}")
ElseIf $Desktop_Height > $Desktop_Width Then
ControlSend("Screen Resolution", "", "", "{Up}")
EndIf
ControlSend("Screen Resolution", "", "", "!a")
WinWaitActive("Display Settings")
ControlSend("Screen Resolution", "", "", "!k")
WinWaitActive("Screen Resolution")
ControlSend("Screen Resolution", "", "", "!{F4}")
Exit