Jump to content

How would i get this repeat?


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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!

Link to comment
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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...