Sign in to follow this  
Followers 0
shaktiku1

Help needed with ALTGr key press(with German keyboard)

5 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Maybe >this?

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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

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

1 person likes this

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  
Followers 0