Jump to content

How can I make the Autoit type the same text in the notepad every x seconds?


Recommended Posts

I want to make the Autoit program type some text in a discord server that I am a part of automatically , like every x minutes or every x hours, how can I do that? 

My code would be like this : 

WinActivate("Discord")
sleep(2500)
MouseClick("left",500, 770)
Sleep(1800000)
send("hai people ")
send("{enter}")

(the 1800000 seconds mean 30 minutes)

So how can I make the text get typed automatically by autoit every 30 minutes?

Link to comment
Share on other sites

  • Moderators

First, it looks like you have code, what isn't working?

Second, have you looked at the TOS of the discord server to ensure you're not breaking their rules. I know I wouldn't want you spamming my feed like that.

"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

  • Moderators

@Abdulla060 when there is not one but two Moderators active in a thread, it is a good indication to stay out of it until some indication is given to proceed.

"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

  • Developers
33 minutes ago, Jos said:

The question remain why this would be a feature anyone need as legitimate function!

Jos

... and the answer is?

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.
  :)

Link to comment
Share on other sites

  • Developers
53 minutes ago, jameelo25 said:

Because it is an AUTOMATION program

I am clever enough to understand that you are automating something, so please refrain from SHOUTING AT ME!
Please reread my question and this time try explaining the purpose. ;)

Jos

 

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.
  :)

Link to comment
Share on other sites

On 3/26/2018 at 4:56 PM, Jos said:

I am clever enough to understand that you are automating something, so please refrain from SHOUTING AT ME!
Please reread my question and this time try explaining the purpose. ;)

Jos

 

To automate things that they have to do on a regular basis.

Link to comment
Share on other sites

  • Developers
9 hours ago, jameelo25 said:

To automate things that they have to do on a regular basis.

Seems you're ignoring my question and are playing with words, which I don't really appreciate.
I like to get a clear answer when an exact question is asked.

Jos

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.
  :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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