Question - Is there a way to get the text displayed when you hover over a system tray application with a mouse from PowerShell?
Back story / info - I have a PowerShell script set to run on my wife's computer on logoff which checks to see if there are any USB drives plugged in. If there are, it copies the contents of the drives to the OneDrive folder (which is inside her Google
Drive folder) on the laptop.
The script uses the drive name as the root folder and maintains the structure below this. My problem is, the files are copied to the computer and then the laptop shuts down. They have not yet been synced to OneDrive or Google Drive. This
means they are always one running of the laptop behind as they will sync the next time it is turned on.
I would like to have the PowerShell script check the notification text of the Google Drive icon in the system tray on a determined basis (every 30 seconds) and if the text contains 'syncing', pause till the next check. If the text contains 'sync complete',
it would continue with the log off / shutdown of the system.
Randy