Sign in to follow this  
Followers 0
MasonMill

{RALT} help

14 posts in this topic

Hi guys,

How do i send right alt 8?

Send("{RALT}8") doesnt work. Any help would be appreciated!

Share this post


Link to post
Share on other sites



Send("{RALTDOWN}8{RALTUP}")

Share this post


Link to post
Share on other sites

ahhh, cool. thanks!

Share this post


Link to post
Share on other sites

I haven't personally tested but I think that is the correct way to do it :idea:

Share this post


Link to post
Share on other sites

That doesn't seem to work. They dont turn yellow either like {LALT} and {ALTDOWN} do.

Share this post


Link to post
Share on other sites

Does any one know if you can even use {RALT} plus another button?

Share this post


Link to post
Share on other sites

Send("{RALT} down")

Send("8")

Send("{RALT} up")

doesnt work either

Share this post


Link to post
Share on other sites

So, no one knows if there is any way to send right alt plus a key? It must be possible?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I have tried rightALT and 8 and it works:

HotKeySet("!8", "Mesaj")
 sleep(10000);this is just to get time to test it
Func Mesaj()
      MsgBox(0,"","it works!")
EndFunc

Probably you should try Send("!8")

Edited by taietel

Share this post


Link to post
Share on other sites

I have tried rightALT and 8 and it works:

HotKeySet("!8", "Mesaj")
 sleep(10000);this is just to get time to test it
Func Mesaj()
      MsgBox(0,"","it works!")
EndFunc

Probably you should try Send("!8")

Problem is i have different things linked to the left and right alt.

Share this post


Link to post
Share on other sites

Try this modified _IsPressed example.

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep ( 250 )
    If _IsPressed("A5", $dll) Then
        MsgBox(0,"_IsPressed", "Right ALT key pressed")
        ExitLoop
    EndIf
WEnd
DllClose($dll)

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

According to this, "...the functionality of AltGr is also available via Ctrl+Alt. This is useful in case the current key mapping is not able to differentiate between the Alt key on the left and the AltGr key on the right."

Thanks somdcomputergui! Maybe someday it will be useful!

[edit] So, in this case, your code will look like

#include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
      Sleep ( 250 )
      If _IsPressed("A5", $dll) And _IsPressed("38", $dll)Then
             MsgBox(0,"_IsPressed", "RightALT+8 pressed")
             ExitLoop
      EndIf
WEnd
DllClose($dll)
Edited by taietel

Share this post


Link to post
Share on other sites

The reason i didnt do isPressed is because the script has a few lines that it goes through liek this

sleep(4000)

send("6")

sleep(2000)

send("r")

sleep(500)

send("y")

sleep(3000)

send("!2")

sleep(500)

send("9")

sleep(3000)

send("g")

sleep(500)

send("^6")

and one of these needs to be right alt plus a number. So im trying to avoid using isPressed.

Share this post


Link to post
Share on other sites

Found it! Its Send("{RALT DOWN}8{RALT UP}") you must have spaces in there

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