Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 21, 2024 - @513.04 (what is this?)
Forum activity rating: Three Stars Posts: 40/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :4u: ~~~~~~~~~~~  :4u:

+  MelonLand Forum
|-+  Forum Hub
| |-+  ⛄︎ ∙ Forum Info & Questions
| | |-+  posting a message from the terminal?


« previous next »
Pages: [1] Print
Author Topic: posting a message from the terminal?  (Read 306 times)
candycanearter07
Sr. Member ⚓︎
****


i like slimes

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games

View Profile WWW

Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy CaneJoined 2024!
« on: July 31, 2024 @163.08 »

hi

I was wondering if it was possible to post a message from a terminal script (linux)?


I was planning on making a script to make it easier to post a message to the art section when i make a new drawing
Logged

new to oldnet be nice




Memory
Guest
« Reply #1 on: July 31, 2024 @318.97 »

It could be done with a keyboard control program like xdotool. That way you could deliver automatic keystrokes to the system.

Opening the login screen...
Logging in...
Going to the selected board...
Open up a new post...
Detecting the text box...
Paste contents in it...
Find the send message button...

It would need a little maintenance, as any tiny detail change on the forum could destroy the script's path. But that sounds like a fiddly fun project.
Logged
arcus
Jr. Member ⚓︎
**


⛺︎ My Room
StatusCafe: arcus
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #2 on: August 13, 2024 @414.71 »

You should be able to use Curl. The forum works perfectly fine without Javascript.
Logged

Melooon
Hero Member ⚓︎
*****


So many stars!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« Reply #3 on: August 13, 2024 @531.89 »

Yep ^^ ~ Though to do it you really need to learn about how HTTP requests work; (and I'm not actually sure if the SSL certs will get in your way!) There are lots of tutorials on youtube explaining HTTP requests ~ when you understand the basics:

Open your Inspector on the network tab, then post a message ~ you'll see many requests being sent, but one of them will be a POST message sent to the server that contains the actual message you posted (you should be able to see your text in the Headers tab of the request). Copy all the info from that (the url, the main headers such a target board, target thread, message content etc, the SMFCookie for your login) ~ Then make a script that sends custom POST commands replicating what was sent by the forums code, but change the message content to whatever you want it to be ^^

You can use something like PostMan (free version is fine) to prototype your custom request to see if its working (Just please don't spam the forum with posts  :ohdear: )
« Last Edit: August 13, 2024 @535.44 by Melooon » Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Pixel Art - Mini Contest - New message icons!

Started by MelooonBoard ☑︎ ∙ Events and Activities

Replies: 21
Views: 4890
Last post July 18, 2024 @680.65
by Zunne
What community message boards and forums did you frequent?

Started by maryBoard ☞ ∙ Life on the Web

Replies: 44
Views: 6688
Last post November 08, 2024 @213.17
by ayn_sweeet
How to use this section! - Please snoop before posting!!

Started by MelooonBoard ☔︎ ∙ I need Help!

Replies: 0
Views: 2917
Last post May 16, 2022 @449.65
by Melooon

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi