How can I make it keep a button held down for a certain amount of time using:
?Code:SendKeys('1');
How can I make it keep a button held down for a certain amount of time using:
?Code:SendKeys('1');
SCAR Code:KeyDown(WhateverKey);
Wait(What time you want to wait);
KeyUp(WhateverKey);
Oh, that's like one the things I should've remembered. In that case The KeyDown and KeyUp functions take their ascii values, right?
Edit, is it possible to do a wait until something, to do KeyUp? Or would I just like.. repeat a 1ms Wait loop until the conditional statement (color) I want changes? Either way you can provide a simple syntax example? Thanks.
Last edited by Al3x8730; 06-18-2009 at 03:21 AM.
Yeah, they take the ascii values.
Anyway, it's easy to do something like that. Like this:
SCAR Code:KeyDown(Something);
repeat
Wait(100 + random(50));
until (Conditional)
KeyUp(Something);
There are currently 1 users browsing this thread. (0 members and 1 guests)