May-31-2020, 07:08 PM
(May-31-2020, 07:02 PM)DreamingInsanity Wrote:(May-31-2020, 05:44 PM)penahuse Wrote: Now it work like my old code:Not sure what to say - are you sure you are using the right code? On my machine, if I hold down 'm' without holding down button 1 and/or button 2, it doesn't print anything.
1 - if user press "button1" and "button2" then "press button3"
Its ok to me "do some 2"
or
2 - if user "press button2" and "button1" then "press button3"
Its ok to me "do some 2"
but
3 - if user press "button"3 before "button1" and "button2"
Its not ok to "do some2", I need just to "do some"
The sequence of which button is pressed first matters to my purpose.. Can you help me with that?
I have to hold down both buttons before holding 'm' will do anything.
Yes, Im using your code, its right: if I hold M without button 1 and button 2 its suposed to do nothing indeed.
If I presse button 1 + button 2 the output is "do some"
But if you press M then press button 1 and button 2 too (so M + button 1+ button2 are pressed right now) the output is "do some 2" but I need just "do some" because M was pressed before other buttons.
Different is if I press buttom 1 + 2 and after buttom M, in this case i want "do some 2"