Jump to content

Help needed with ALTGr key press(with German keyboard)


Go to solution Solved by Exit,

Recommended Posts

Posted (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 by shaktiku1
Posted (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 by shaktiku1
  • Solution
Posted

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()                             

Posted

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

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