Since I was unable to get Winclose to work properly, I found code (process ,close ,msedge) and placed it in my script.
Not only did it not work, the script now loses focus of the MS Edge window after launch and the remaining commands seem to affect everything on the desktop accept for the browser.
Tried to find info to retain focus and multiple re-boots but nothing seems to help.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#p::
Run http://webapps.mysite.com/SearchWiz.aspx
send {tab}{tab}{tab}
send 12/2/2021
send {tab}{tab}{tab}
sleep 3000
send {enter}
sleep 3000
send {tab}
send {enter}
sleep 5000
return