Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win 8.1 - no alerts nor notifications #21

Closed
ChangePlaces opened this issue Jan 13, 2019 · 8 comments
Closed

win 8.1 - no alerts nor notifications #21

ChangePlaces opened this issue Jan 13, 2019 · 8 comments

Comments

@ChangePlaces
Copy link

Can't get this to display in win 8.1. Instead it comes up with an error "2019/01/13 02:15:38 exec: "msg": executable file not found in %PATH%"

What msg executable?

@gen2brain
Copy link
Owner

That command, msg replaced net send, I think since Vista. Toasts are used only on Windows 10. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/msg

@ChangePlaces
Copy link
Author

ChangePlaces commented Jan 13, 2019

From a bit of research, I found out that msg is only on the professional and above versions of windows 8, so, what's a valid workaround?

@gen2brain
Copy link
Owner

Well, not sure if https://github.com/go-toast/toast can work on 8.1, you can try that, change check for version 10 in https://github.com/gen2brain/beeep/blob/master/notify_windows.go and try to Notify().

Without msg I don't think it is possible to work on older versions, for older Popup/Notification to show, like in Windows 7, app must create window and add tray icon to systray to be able to do that.

@ChangePlaces
Copy link
Author

ChangePlaces commented Jan 13, 2019

Could you do a syscall to the Windows API/MFC that has bubbles appear on an icon in the systray? I have read about people copying msg.exe from xp / vista to 8.1 with success

@gen2brain
Copy link
Owner

For bubbles app needs window created and it needs icon in systray connected with that window, probably needs to be also visible in order to show bubble, and that is up to user to decide I think, what is visible/hidden.
So for every Notify() it will need to do all that and then to remove all that, doesn't sound good if possible at all.

@gen2brain
Copy link
Owner

I added "baloon" notifications in 6be9b2e . It will try that first and fallback to "msg" if Windows version is not 10 .

@martinlindhe
Copy link
Contributor

Windows 8.1 was end-of-lifed January 9, 2018 [1]. Not sure you want to stay on it or bother with supporting it.

1: https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet

@gen2brain
Copy link
Owner

Not a big deal to support older versions, if what we have now works there. The code for that is simple. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants