Sign in to follow this  
Followers 0
FoodStamps

How would i get this repeat?

4 posts in this topic

#1 ·  Posted (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 by FoodStamps

Share this post


Link to post
Share on other sites



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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0