#Requires AutoHotkey v2 ; Set the tray icon to the GeoGet icon TraySetIcon("C:\Program Files (x86)\GeoGet\GeoGet.exe", 1) ; Copy this function into your script to use it. HideTrayTip() { TrayTip ; Attempt to hide it the normal way. if SubStr(A_OSVersion,1,3) = "10." { A_IconHidden := true Sleep 200 ; It may be necessary to adjust this sleep. A_IconHidden := false } } ; Stop OneDrive RunWait('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /shutdown') TrayTip "OneDrive sync stopped, `nstarting GeoGet...",,36 Sleep 3000 ; Let it display for 3 seconds. HideTrayTip ; Run GeoGet and wait until it is closed RunWait('"C:\Program Files (x86)\GeoGet\GeoGet.exe"') ; Start OneDrive Run('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /background') TrayTip "GeoGet closed, `nOneDrive sync started.",,36 Sleep 3000 ; Let it display for 3 seconds. HideTrayTip ExitApp()