Skip to content

Commit

Permalink
Bug fix in startup
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSwift authored Mar 4, 2023
1 parent 68d5eec commit a3ba6fa
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions autohotkey-zoom-wrangler.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Requires AutoHotkey v2.0

; AutoHotKey-Zoom-Wrangler
; Version 0.0.2
; Version 0.0.3
; Created by James Swift
; https://github.com/JamesSwift/AutoHotKey-Zoom-Wrangler

Expand All @@ -12,6 +12,7 @@ UseMonitor := 1

; Show zoom fullscreen on the monitor specified when the key is pressed.
F9::{
DetectHiddenWindows 1
if WinExist("Zoom ahk_class ZPContentViewWndClass", "", "Zoom Meeting"){
WinShow
WinActivate
Expand All @@ -22,6 +23,7 @@ F9::{

; Move zoom behind other applications when the key is pressed
F10::{
DetectHiddenWindows 1
if WinExist("Zoom ahk_class ZPContentViewWndClass", "", "Zoom Meeting"){
WinMoveBottom
WinHide
Expand All @@ -45,7 +47,6 @@ MakeFullscreen(){

try
{
DetectHiddenWindows 1
MonitorGet UseMonitor, &ML, &MT, &MR, &MB
MW := MR - ML
MH := MB - MT
Expand Down Expand Up @@ -73,6 +74,17 @@ try
WinWait("Zoom ahk_class ZPContentViewWndClass", "", , "Zoom Meeting")
WinMoveBottom
WinHide

; Hide the splash zoom window
if WinExist("Zoom ahk_class ZPPTMainFrmWndClassEx", ""){
WinMoveBottom
WinMinimize
}

; Send the main zoom window to the back
; if WinExist("Zoom Meeting ahk_class ZPContentViewWndClass", ""){
; WinMoveBottom
; }

}
catch
Expand All @@ -82,6 +94,7 @@ catch
Persistent
OnExit ExitFunc
ExitFunc(ExitReason, ExitCode){
DetectHiddenWindows 1
if WinExist("Zoom ahk_class ZPContentViewWndClass", "", "Zoom Meeting"){
WinShow
}
Expand Down

0 comments on commit a3ba6fa

Please sign in to comment.