Read, write and alert script

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
Daniel_San
Posts: 2
Joined: 16 May 2024, 07:01

Read, write and alert script

16 May 2024, 07:09

I need help with a script that can read 2 specific parts of the screen, write a specific message if it reads "text1" or send a sound alert if it reads "text2". Both commands also need a small delay to avoid spam.
User avatar
kunkel321
Posts: 1156
Joined: 30 Nov 2015, 21:19

Re: Read, write and alert script

16 May 2024, 07:24

Welcome to the forums!

When you say, "2 parts of the screen" what do you mean? Is it like 2 parts of the same webpage? If the text that is being read can be copied to variables, it will probably be easier.
ste(phen|ve) kunkel
User avatar
Daniel_San
Posts: 2
Joined: 16 May 2024, 07:01

Re: Read, write and alert script

16 May 2024, 08:32

kunkel321 wrote:
16 May 2024, 07:24
Welcome to the forums!

When you say, "2 parts of the screen" what do you mean? Is it like 2 parts of the same webpage? If the text that is being read can be copied to variables, it will probably be easier.
The script is to run on discord and reply to messages. The action the scripts performs will depend on if it has a set of words ("won","lost" or "draw") in any user message, or by which user it was sent.

The detection of this will have to be confined to 2 places on the screen to avoid repeats/spam.

There also has to be a cooldown/delay on the detections to avoid spam.
User avatar
kunkel321
Posts: 1156
Joined: 30 Nov 2015, 21:19

Re: Read, write and alert script

17 May 2024, 07:37

Removed by author due to concerns indicated in next reply.
Last edited by kunkel321 on 17 May 2024, 09:48, edited 1 time in total.
ste(phen|ve) kunkel
RussF
Posts: 1301
Joined: 05 Aug 2021, 06:36

Re: Read, write and alert script

17 May 2024, 07:58

I'm pretty sure that automating your Discord channel violates their terms of service, so for us to help would be no different than helping someone code any other type of malware, i.e. keyloggers, pranks, etc.

Russ
gregster
Posts: 9096
Joined: 30 Sep 2013, 06:48

Re: Read, write and alert script

17 May 2024, 10:29

Anyway, the most reliable (and allowed) solution would probably be to use the official Discord APIs - which seem to offer some automation techniques for your own channel: https://discord.com/developers/docs/intro I don't know the details, but it's probably not trivial.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: mikeyww, TAC109 and 45 guests