Basic discord macro

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
timecode2
Posts: 14
Joined: 22 Feb 2016, 13:51

Basic discord macro

22 Sep 2017, 16:58

I'm wanting to try and make a macro for use in discord.

Ideally I want it to type a message or a character every 2 minutes.
My main questions are is it possible to make it only run on discord only? So I may multi task or is this not possible?
Also any ideas if I could make it instantly delete the message after posted?

I saw someone's coding on here looked like it can generate random numbers I was thinking that might be cool for my idea.

Essentially there's a bot that awards xp for posting but it's set to only every 2 minutes, my plan in my head is to setup a macro with ask that could ideally post something every 2 mins / and possibly delete ( so it's more stealthy)

I'm super noob so some ideas would help, I know the very basics of Ahk, but I find it fascinating.
timecode2
Posts: 14
Joined: 22 Feb 2016, 13:51

Re: Basic discord macro

22 Sep 2017, 21:43

if i may attempt this im trying to make it generate a number in chat every 2 minutes.

1::
loop
{
Random, rand, 1, 10000
Send rand
Sleep 200
Send {Enter}
Sleep 125000
keywait, {Esc}, D T0.01 ;Exit out of loop
if errorlevel = 0
break
}
return


if i did this right the script starts on key press 1 and loops a random number between 1-10000 every 2 minutes (and 5 seconds) and esc to exit
Please can anyone tell me if i made any mistakes? Im not able to run a test since im stuck on the work pc at the moment.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, Tech Stuff and 195 guests