Jump to content

Recommended Posts

Posted
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

 

5c27f13374fbc_Anothercyrilicproblem.png.006e4b7032c845db2d02f8fb6e3db2e5.png

  • Developers
Posted

When I open your script and do the following it seems to work fine:

  1. Open this script (ANSI file)
  2. Open a new script file and ensure the encoding is set to UTF8.
  3. Copy all text from original and paste it into the new file.
  4. Save and run the new file.

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.
  :)

Posted
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.
 

Regional settings.png

  • Developers
Posted

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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...