FoodStamps Posted April 25, 2013 Posted April 25, 2013 (edited) So, im trying to make this thing, where it HOLDS "W" for 17 seconds, then after that HOLDS "S" for 17 seconds. then repeat. How would i do that? So far i have this, it works but it doesnt repeat. ______________________________________________ Opt('SendKeyDelay', 50); Default speed _Send('w', 17000) Func _Send($text, $milliseconds) $time = TimerInit() Do Send($text) Until TimerDiff($time) > $milliseconds) EndFunc Opt('SendKeyDelay', 50); Default speed _Send1('s', 17000) Func _Send1($text, $milliseconds) $time = TimerInit() Do Send($text) Until TimerDiff($time) > $milliseconds Return EndFunc Edited April 25, 2013 by FoodStamps
Moderators JLogan3o13 Posted April 25, 2013 Moderators Posted April 25, 2013 Hi, FoodStamps, welcome to the forum. First, this is Dev Chat, not the General Support forum; you should ask a mod to move this, as you'll get a much better response when your thread is in the correct forum. Secondly, what is the application you're trying to manipulate? Often there are much easier ways to do things than using Send. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
FoodStamps Posted April 25, 2013 Author Posted April 25, 2013 Hi, FoodStamps, welcome to the forum. First, this is Dev Chat, not the General Support forum; you should ask a mod to move this, as you'll get a much better response when your thread is in the correct forum. Secondly, what is the application you're trying to manipulate? Often there are much easier ways to do things than using Send.Its an online game that uses java
Developers Jos Posted April 25, 2013 Developers Posted April 25, 2013 Read my other reply. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts