Jump to content

Help needed with ALTGr key press(with German keyboard)


Go to solution Solved by Exit,

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Solution

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

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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