shaktiku1 Posted May 6, 2014 Posted May 6, 2014 (edited) Hi , I am working to simulate/automate German keyboard(keyboad layout for reference) keys using Autoit. To print char ~ , we need to press ALTGr key and + sign . To send this i am using below command send("{CTRLDOWN}{ALTDOWN}ß{CTRLUP}{ALTUP}") ; to send send("{ENTER}") send("{CTRLDOWN}{ALTDOWN}+{CTRLUP}{ALTUP}") ; buggy line NOT Working - to send ~ send("{ENTER}") send("{CTRLDOWN}{ALTDOWN}q{CTRLUP}{ALTUP}") ; to send @ Can you please help me how to send + using this command , i tried escape char but not working. Or is there any other way to send ATLGr keys Thanks in Advance!! Edited May 6, 2014 by shaktiku1
shaktiku1 Posted May 6, 2014 Author Posted May 6, 2014 (edited) thanks Palestinian for the link. I am doing in the same way , but when autoit executes the line send("{CTRLDOWN}{ALTDOWN}+{CTRLUP}{ALTUP}") it doesn't print anything. Edited May 6, 2014 by shaktiku1
Solution Exit Posted May 6, 2014 Solution Posted May 6, 2014 ShellExecute("Notepad.exe") (WinWait("[class:Notepad]", "", 0) ? (WinActivate("[LAST]") ? WinWaitActive("[LAST]") : 0) : SetError(1, 0, 0)) Send("A tilde sign ~") Send(@CRLF) Send("20 tildes {~ 20}") Send(@CRLF) Send("Next might work only on German keyboards ???") Send(@CRLF) Send("using AltGr (same as Alt{+}Cntl) !^{+}") Send(@CRLF) Send("20 tildes !^{+ 20}") Send(@CRLF) App: Au3toCmd UDF: _SingleScript()
shaktiku1 Posted May 6, 2014 Author Posted May 6, 2014 Thank you Exit very much, it worked and yes it worked only with German keyboard only. So final conclusion is to use { } brackets send("{CTRLDOWN}{ALTDOWN}{+}{CTRLUP}{ALTUP}") or Send("!^{+}") Regards, Shakti Exit 1
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