Jump to content
Sign in to follow this  
shaktiku1

Help needed with ALTGr key press(with German keyboard)

Recommended Posts

shaktiku1

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

Share this post


Link to post
Share on other sites
Palestinian

Maybe >this?

Share this post


Link to post
Share on other sites
shaktiku1

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

Share this post


Link to post
Share on other sites
Exit

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)


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
shaktiku1

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

  • Like 1

Share this post


Link to post
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
Sign in to follow this  

×