Guest cxxl-t Posted February 3, 2005 Share Posted February 3, 2005 $initial = InputBox ( "Konfiguration", "Bitte geben Sie nun Ihr Passwort ein:", "", "*") ;msgbox (0,"DebugPrint", $initial) WinActive ( "Unbenannt" ) ControlSend("Unbenannt","","Edit1", $initial & @CR,1) When I type the Chars: 'ABC@abc%' AutoIT will send following to notepad: 'abcqabc5'. The MsgBox shows the right Chars. Is this a Bug? Is there a Workaround? Thx 4 your help. Cxxl-T Link to comment Share on other sites More sharing options...
Lazycat Posted February 3, 2005 Share Posted February 3, 2005 Seems here is a lot of troubles with the send functions on the non-english layouts. I suppose that you default keyboard layout is not english? And you system is 2k/xp? Try to set it to english before using send functions... is this works? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
MHz Posted February 3, 2005 Share Posted February 3, 2005 I tried this and sends correctly. $initial = 'ABC@abc%' WinwaitActive ( "Untitled - Notepad" ) ControlSend( "Untitled - Notepad", "", "Edit1", $initial & @CR, 1) Result: ABC@abc% Try this exact same test, you may need to change the title to suit your language. I am using Autoit v3.1.09. Link to comment Share on other sites More sharing options...
Lazycat Posted February 3, 2005 Share Posted February 3, 2005 Here is not problem with title. If I'm try to send this string with english layout set as default (actually I always have set this in english, but many people don't...) that no any problem with func, and I have "ABC@abc%" in notepad. But if I'm set my default layout in the non-english, that result of ControlSend function is absolutely unpredictable! For example, couple minutes ago when I test your code I got result "ABC~~E~ %"! Today at job result was different. So I suspect cxxl-t have the same problem. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) 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