GeoGet

Complete geocaching solutions

User Tools

Site Tools


user:navody:efektivne

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
user:navody:efektivne [2024/07/06 15:41] mikromuser:navody:efektivne [2024/07/14 10:45] (current) – [OneDrive] mikrom
Line 98: Line 98:
 ; Set the tray icon to the GeoGet icon ; Set the tray icon to the GeoGet icon
 TraySetIcon("C:\Program Files (x86)\GeoGet\GeoGet.exe", 1) 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 ; Stop OneDrive
 RunWait('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /shutdown') RunWait('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /shutdown')
-MsgBox("OneDrive sync stopped,`nstarting GeoGet...", "Information")+ 
 +TrayTip "OneDrive sync stopped, `nstarting GeoGet...",,36 
 +Sleep 3000 ; Let it display for 3 seconds. 
 +HideTrayTip
  
 ; Run GeoGet and wait until it is closed ; Run GeoGet and wait until it is closed
Line 108: Line 121:
 ; Start OneDrive ; Start OneDrive
 Run('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /background') Run('"C:\Program Files\Microsoft OneDrive\OneDrive.exe" /background')
-MsgBox("GeoGet closed,`nOneDrive sync started.", "Information")+ 
 +TrayTip "GeoGet closed, `nOneDrive sync started.",,36 
 +Sleep 3000 ; Let it display for 3 seconds. 
 +HideTrayTip
  
 ExitApp() ExitApp()
user/navody/efektivne.txt · Last modified: 2024/07/14 10:45 by mikrom