Anyone know how to find or set the current active window and maximize it?
Thanks
John Fuhrman
Titan Global Services
Thanks
John Fuhrman
Titan Global Services
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim sys
Set sys = CreateObject("JSSys3.Ops")
v = Sys.GetOpenWindowTitles(a)
If v > 0 Then
For i = 0 To UBound(a)
If InStr(1, a(i), "textpad", vbTextCompare) <> 0 Then
s = a(i)
Exit For
End If
Next
If s <> "" Then
Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate s
WScript.Sleep 1000
WshShell.SendKeys ("% x")
End If
End if