Jump to content
Sign in to follow this  
MasonMill

{RALT} help

Recommended Posts

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...