Jump to content

Recommended Posts

Posted

example: i use vietnam VIE keyboard setting in Windows10 on my PC. When writing (or using Send)  "ubuntu1804.exe" at powershell, I get  ubuntu1804.(a square ; the "exe"  key combination give a ễ (vietnamese) ; powershell can´t display utf8, it is why it dispalys a square ).   

This solution will not help, still get the "square".

#include <WinAPISys.au3>  ;for _WinAPI_SetKeyboardLayout
Local $hWnd = WinGetHandle("[CLASS:ConsoleWindowClass]")   ; powershell
_WinAPI_SetKeyboardLayout ( $hWnd,0x0409)   ; change to US keyboard 

I solve by this workaround:

;trick for writing "exe" when using "viet keyboard"
send("ubuntu1804.e {BACKSPACE}")   ; there is a SPACE after "e", this method used to "cut" the sequence when writing foreign language.
sleep(500)  ; not nessecary, i do it anyway
send("xe{ENTER}")

it will show ubuntu1804.exe

Thanks very much for the great Autoit, even after 20Y still going strong.  I hope all the best the next 40Y:-)

The best:

https://i.imgur.com/LvvzXT2.png

  • Developers
Posted

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

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
×
×
  • Create New...