diff --git a/ExplorerF11Fix.ahk b/ExplorerF11Fix.ahk index 5335b1a..4785a0b 100644 --- a/ExplorerF11Fix.ahk +++ b/ExplorerF11Fix.ahk @@ -1,20 +1,21 @@ -#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. -SendMode Input ; Recommended for new scripts due to its superior speed and reliability. -SetTitleMatchMode, 2 ; Allow partial window title matches +#Requires AutoHotkey v2.0 +; Recommended for performance and compatibility with future AutoHotkey releases. +SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability. +SetTitleMatchMode(2) ; Allow partial window title matches ; Run File Explorer -Run explorer.exe +Run("explorer.exe") ; Wait for File Explorer to open (adjust the sleep time if needed) -Sleep, 1000 +Sleep(1000) ; Send F11 to toggle fullscreen mode -Send, {F11} +Send("{F11}") ; Wait for a moment (adjust the sleep time if needed) -Sleep, 1000 +Sleep(1000) ; Send F11 again to exit fullscreen mode -Send, {F11} +Send("{F11}") ; Exit the script -ExitApp \ No newline at end of file +ExitApp() diff --git a/ExplorerF11Fix.exe b/ExplorerF11Fix.exe index b49da3c..da04c95 100644 Binary files a/ExplorerF11Fix.exe and b/ExplorerF11Fix.exe differ