MasonMill Posted May 21, 2010 Share Posted May 21, 2010 Hi guys, How do i send right alt 8? Send("{RALT}8") doesnt work. Any help would be appreciated! Link to comment Share on other sites More sharing options...
jbsoccerbrit Posted May 21, 2010 Share Posted May 21, 2010 Send("{RALTDOWN}8{RALTUP}") Link to comment Share on other sites More sharing options...
MasonMill Posted May 21, 2010 Author Share Posted May 21, 2010 ahhh, cool. thanks! Link to comment Share on other sites More sharing options...
jbsoccerbrit Posted May 21, 2010 Share Posted May 21, 2010 I haven't personally tested but I think that is the correct way to do it Link to comment Share on other sites More sharing options...
MasonMill Posted May 21, 2010 Author Share Posted May 21, 2010 That doesn't seem to work. They dont turn yellow either like {LALT} and {ALTDOWN} do. Link to comment Share on other sites More sharing options...
MasonMill Posted May 21, 2010 Author Share Posted May 21, 2010 Does any one know if you can even use {RALT} plus another button? Link to comment Share on other sites More sharing options...
MasonMill Posted May 21, 2010 Author Share Posted May 21, 2010 Send("{RALT} down") Send("8") Send("{RALT} up") doesnt work either Link to comment Share on other sites More sharing options...
MasonMill Posted May 24, 2010 Author Share Posted May 24, 2010 So, no one knows if there is any way to send right alt plus a key? It must be possible? Link to comment Share on other sites More sharing options...
taietel Posted May 24, 2010 Share Posted May 24, 2010 (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 May 24, 2010 by taietel Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
MasonMill Posted May 24, 2010 Author Share Posted May 24, 2010 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. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 24, 2010 Share Posted May 24, 2010 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. Link to comment Share on other sites More sharing options...
taietel Posted May 24, 2010 Share Posted May 24, 2010 (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 May 24, 2010 by taietel Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
MasonMill Posted May 24, 2010 Author Share Posted May 24, 2010 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. Link to comment Share on other sites More sharing options...
MasonMill Posted May 25, 2010 Author Share Posted May 25, 2010 Found it! Its Send("{RALT DOWN}8{RALT UP}") you must have spaces in there Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now