magician13134 Posted May 10, 2008 Share Posted May 10, 2008 Hi, I'm trying to use _IsPressed() when two keys are pressed simultaneously; Ctrl and Alt. I used a basic If statement:If _IsPressed(11) and _IsPressed(12) ThenoÝ÷ Ù»¶²)©,(®G)jëh×6If _IsPressed(11) Then So I started to wonder if it could only pick up one key at a time.... That may of may not be the case, I'm just wondering, I couldn't find it here or in the help file. Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
Generator Posted May 10, 2008 Share Posted May 10, 2008 This will work If _IsPressed(11) and _IsPressed(12) Then Link to comment Share on other sites More sharing options...
FreeFry Posted May 10, 2008 Share Posted May 10, 2008 Works fine for me: #include <Misc.au3> While 1 If _IsPressed("11") And _IsPressed("12") Then ConsoleWrite("Left and Right click is pressed" & @LF) EndIf Sleep(250) WEnd Link to comment Share on other sites More sharing options...
magician13134 Posted May 10, 2008 Author Share Posted May 10, 2008 Ok, it must be a bug somewhere else in my code, I'll check that out, thanks alot! Visit Magic Soft Inc. for some of my software 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