Read, write and alert script
- Daniel_San
- Posts: 2
- Joined: 16 May 2024, 07:01
Read, write and alert script
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.
Re: Read, write and alert script
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.
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
- Daniel_San
- Posts: 2
- Joined: 16 May 2024, 07:01
Re: Read, write and alert script
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.
Re: Read, write and alert script
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
Re: Read, write and alert script
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
Russ
Re: Read, write and alert script
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.