Vindicator209 Posted January 5, 2008 Share Posted January 5, 2008 For misc reasons, I want to know if someone held the left/right button on their mouse, how would I check for this? [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Paulie Posted January 5, 2008 Share Posted January 5, 2008 (edited) #include <Misc.au3> While 1 If _IsPressed(01) then ;leftmouse $Timer = TimerInit() While _IsPressed(01) Tooltip("You have held the mouse button for "&Round(TimerDiff($Timer)/1000,1)&" seconds",0,0) WEnd EndIf WEnd Edit: Forgot Include Edited January 5, 2008 by Paulie Link to comment Share on other sites More sharing options...
Vindicator209 Posted January 5, 2008 Author Share Posted January 5, 2008 thanks! I figured it would be _IsPressed, but I didnt have the numbers to use in the parameter, you wouldnt know where I couldd find that, would you? cause I havent seen it in the help file [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] 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