Jump to content
The Character Copy service for Beta is currently unavailable ×

Recommended Posts

Posted (edited)

This is a Powershell script you might run in the background while you are playing the game. It will monitor your log file for keywords (such as "DFB" or "Posi") and when found will create the text for a tell and place it on your clipboard.

 

In game, theoretically, when you see someone advertise a DFB (one of the keywords you've defined in line 28), you can quickly hit ENTER to start a new message, Control V to paste from your clipboard, and then ENTER again to send the message. This would allow you to quickly respond to new postings by sending a tell directly to the organizer.

 

Note that the script doesn't differentiate between "I am forming a DFB" and "I would like to join a DFB" - so long as the keyword is found in a new LFG post, the clipboard will be populated. Also, since log files are for 1 day only, if you play across midnight you will want to close and restart this for the new day.

 

Here's the script if you prefer to look at it that way:

 

  Reveal hidden contents

 

DISCLAIMER: I am not a coder (obviously) but I was at one time until I took an arrow to the knee. I dabble now, and I am confident any half-skilled coder could do a much better job with this, even creating something that doesn't require Powershell. Please share if you do!

COH AutoResponse.ps1Fetching info...

Edited by Oklahoman
  • Like 1
  • Thumbs Up 1
Posted

Awesome tool.

 

Just be careful, anyone, if you're playing CoX while working from home.  It might be awkward to accidentally paste, "I'd like to join DFB!" into work Slack.

  • Haha 1
  • Thumbs Up 1
Posted

Decided to try this in real time. If you have dual monitor capabilities, you can have the powershell running on one monitor while you play on the other (see pic). I decided to change the code on my end slightly - I changed the output on line 62 to act more as an alert, rather than just telling me what just got placed on my clipboard. I inserted line 63 after that to make a beep, too, so if I was playing and something popped up I wanted to join I'd have both an audio and visual alert.

 

  Reveal hidden contents

 

IMG_0494.jpg

Posted (edited)

I find it interesting, given your post about wanting people to ask for invites in broadcast rather than tells (hey, it's right there in your signature!), that this script sends a tell by default.  Maybe you could add another keyword check to see if the message includes the words "tell," "PST," "broadcast," or "shout" to determine whether the text to paste is formatted as a tell or a broadcast?

Edited by Zhym
  • Like 1
Posted
  On 9/28/2022 at 9:49 PM, Zhym said:

I find it interesting, given your post about wanting people to ask for invites in broadcast rather than tells (hey, it's right there in your signature!), that this script sends a tell by default.  Maybe you could add another keyword check to see if the message includes the words "tell," "PST," "broadcast," or "shout" to determine whether the text to paste is formatted as a tell or a broadcast?

Expand  

 

I can see that. Personally, I only ask for stuff to be posted in Broadcast for MSRs and Hamis (if I ever run one again) for the reasons outlined in that link, but I also understand other leaders may have different thoughts on the matter. If someone had "MSR" as a keyword and tried to respond with this tool, I wouldn't respond, honestly. All other times it would be fine, though.

 

But, yeah, I imagine the code could try to guess how best to respond. The code could look for the other keywords you suggest and then change it from a tell to a broadcast based on what it finds. You'd have to prioritize somehow for posts like "DFB - send me a tell or holler in broadcast" - perhaps the first option mentioned in the ad? You'd have a hiccup with some ads like "DFB looking for stellar people, BROADCAST ONLY!"

 

The sound could be changed to other audio files rather than a beep, and even customize that by keyword so a BAF plays "Tiny Bubbles" while an MoDD might play "Enter Sandman."

 

If there's interest, and perhaps something noticeably north of zero downloads, I could probably give some examples. Hopefully the young folk with all their computerizing skills will do it for me, though.

Posted (edited)
  On 9/28/2022 at 10:53 PM, Oklahoman said:

If there's interest, and perhaps something noticeably north of zero downloads, I could probably give some examples. Hopefully the young folk with all their computerizing skills will do it for me, though.

Expand  

I'd try it out myself, but I'm on a Mac, so I'd have to rewrite the whole thing in Automator or something anyway (I almost said "AppleScript"; that's how old I am).

Edited by Zhym
Posted
  On 9/29/2022 at 12:39 AM, Zhym said:

I'd try it out myself, but I'm on a Mac, so I'd have to rewrite the whole thing in Automator or something anyway (I almost said "AppleScript"; that's how old I am).

Expand  

 

I'm sure I have Hypercard on the G4 if you'd like me to order a Zip disk for you.

  • Haha 2

OG Server: Pinnacle  <||>  Current Primary Server: Torchbearer  ||  Also found on the others if desired  <||> Generally Inactive


Installing CoX:  Windows  ||  MacOS  ||  MacOS for M1  <||>  Migrating Data from an Older Installation


Clubs: Mid's Hero Designer  ||  PC Builders  ||  HC Wiki  ||  Jerk Hackers


Old Forums  <||>  Titan Network  <||>  Heroica! (by @Shenanigunner)

 

Posted
  On 9/29/2022 at 10:25 PM, WanderingAries said:

 

I'm sure I have Hypercard on the G4 if you'd like me to order a Zip disk for you.

Expand  

 

If we're getting a group together to buy Zip disks in bulk, count me in.

 

I had fun explaining to a group the other day that the predecessor to the internet was SneakerNet.

Posted
  On 10/1/2022 at 3:30 PM, Oklahoman said:

 

If we're getting a group together to buy Zip disks in bulk, count me in.

 

I had fun explaining to a group the other day that the predecessor to the internet was SneakerNet.

Expand  

 

Heh, sadly, I sold what I had ages ago. The USB 2.0 add-on card works for me IF I ever need to move data.

OG Server: Pinnacle  <||>  Current Primary Server: Torchbearer  ||  Also found on the others if desired  <||> Generally Inactive


Installing CoX:  Windows  ||  MacOS  ||  MacOS for M1  <||>  Migrating Data from an Older Installation


Clubs: Mid's Hero Designer  ||  PC Builders  ||  HC Wiki  ||  Jerk Hackers


Old Forums  <||>  Titan Network  <||>  Heroica! (by @Shenanigunner)

 

Posted
  On 10/1/2022 at 3:30 PM, Oklahoman said:

I had fun explaining to a group the other day that the predecessor to the internet was SneakerNet.

Expand  

You shouldn't underestimate the bandwidth of a case of hard drives traveling by vehicle! 

  • Haha 1
  • Thumbs Up 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...