Kostadin Posted December 30, 2018 Share Posted December 30, 2018 Why did the current script that worked with windows 7 no longer work properly at windows 10? It's not because of regional settings, I've done them in Bulgarian #NoTrayIcon #RequireAdmin ; Reboot Question $Reboot=MsgBox(32+4+256,"User Account Control - Reboot","Трябва да рестартирате компютъра."&@CRLF&"Желаете ли да го направите сега?",5) If $Reboot=6 Then $Sure=MsgBox(64+1,"User Account Control - Reboot","Компютърът ще се рестартира"&@CRLF&@CRLF&"Продължете",5) If $Sure=2 Then Exit Shutdown(2+4) ; 2 - Reboot / 4 - Force EndIf Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2018 Developers Share Posted December 30, 2018 When I open your script and do the following it seems to work fine: Open this script (ANSI file) Open a new script file and ensure the encoding is set to UTF8. Copy all text from original and paste it into the new file. Save and run the new file. Jos Kostadin 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kostadin Posted December 30, 2018 Author Share Posted December 30, 2018 I know where I'm wrong. I found one more region settngs. Just type there Bulgarian and everything worked out. Thank you for helpful information. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2018 Developers Share Posted December 30, 2018 Good you found it. The change I proposed will ensure that the text is also shown correctly on a Windows system with different regional settings like my system. UTF8 is really a better base to use for scripting in this case. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now