Send a chosen message from a form to a webpage

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SolihullRog
Posts: 7
Joined: 29 Jun 2018, 11:48

Send a chosen message from a form to a webpage

Post by SolihullRog » 12 May 2021, 07:36

I am an absolute newbie and I hope that AHK can solve my issue.
I play a game on a website which contains a 'communications area' where players can exchange information, and chat.
I regularly want to sent some of the same messages, over and over again. Examples might be "Good evening and welcome", or "Well done, how did you do that?"
I would like to create a form which contains my regular messages. At the appropriate time I would then be able to choose a message, click it, and send it to the chat line.
To illustrate my knowledge - I know how to create a form containing buttons referring to programs/apps. I can click the chosen entry to run the appropriate program.
My problems with my latest form are:
1. Which command(s) do I use to generate and send the messages? Would it be something like "Gui, Text message1 "Good Evening" (with correct syntax)?
2. Which command(s) do I use to identify the web page/field to which it should be sent? I imagine something like
"MsgSend, message1 www.webpage.com" - again with correct syntax.

Thanks for your interest.

Return to “Ask for Help (v1)”