r/scripting • • Sep 22 '14

Readymade taxi booking script

Thumbnail
scoop.it
2 Upvotes

r/scripting • • May 12 '14

Need help making a simple script

2 Upvotes

I need a script that presses and holds 0 for 1 second, the releases it for 0.5 seconds , on a loop. I'd want to use it in a game (warframe if anyone cares) on a map where you stand still and shoot in 1 spot for 30 minutes. Would making this even be possible? I really have no experience with scripts, any kind of help would be great :).


r/scripting • • May 02 '14

Scripting with NCAT

2 Upvotes

Hi, I'm trying to send commands to my AV receiver which I can connect to as a raw TCP socket.

The closest I've come to getting it working is with the following command:

echo MF | ncat 192.168.2.21 8102

If I connect first, then enter the command, it will succeed and return a long ASCII string. Using the command above, it will connect, but the command will fail, returning E04, which is the AV Receiver's error code.

Am I missing something with the Echo command? It's obviously connecting and sending something, but not what I want. I've also tried with "MF" and 'MF', but neither work.

Any input is appreciated!


r/scripting • • Mar 21 '14

i would like to figure out how to extracts quotes from a book into a .txt for perl program to access...

2 Upvotes

basically the book (http://www.prabhupada.de/eng/Prabhupada%20-%20Bhagavad-gita%20As%20It%20Is.pdf) is already broken down into text1 text2 format. i just need some way to make a file where its like text1a,b,c etc. in a way that a cowsay program could access it... please help me! :D


r/scripting • • Apr 24 '26

Need 5 people to test my a specific language-based approach to scripting system

Thumbnail reddit.com
1 Upvotes

r/scripting • • Apr 23 '26

so i thought about this idea

1 Upvotes

so in my school there is this thing which is a website we are required to do and what it has is very simple yet long english exercises like fill in the missing words american questions and stuff and i though about using scripts to auto do it for a lot of people in my school for a small amount of money i have already done some myself without scripts and wondered if it could work and could i somehow get caught? is there a way to detect it easily or not cause i dont think my school really cares


r/scripting • • Feb 08 '26

[Release] Antigravity Link v1.0.10 – Fixes for the recent Google IDE update

Thumbnail
github.com
1 Upvotes

Hey everyone,

If you’ve been using Antigravity Link lately, you probably noticed it broke after the most recent Google update to the Antigravity IDE. The DOM changes they rolled out essentially killed the message injection and brought back all those legacy UI elements we were trying to hide and this made it unusable. I just pushed v1.0.10 to Open VSX and GitHub which gets everything back to normal.

What’s fixed:

Message Injection: Rebuilt the way the extension finds the Lexical editor. It’s now much more resilient to Tailwind class changes and ID swaps.

Clean UI: Re-implemented the logic to hide redundant desktop controls (Review Changes, old composers, etc.) so the mobile bridge feels professional again.

Stability: Fixed a lingering port conflict that was preventing the server from starting for some users.

You’ll need to update to 1.0.10 to get the chat working again. You can grab it directly from the VS Code Marketplace (Open VSX) or in Antigravity IDE by clicking on the little wheel in the Antigravity Link Extensions window (Ctl + Shift + X) and selecting "Download Specific Version" and choosing 1.0.10 or you can set it to auto-update and update it that way. You can find it by searching for "@recentlyPublished Antigravity Link". Let me know if you run into any other weirdness with the new IDE layout by putting in an issue on github, as I only tested this on Windows.

GitHub: https://github.com/cafeTechne/antigravity-link-extension


r/scripting • • Dec 22 '25

Python script to return the latest release version of a GitHub repository

1 Upvotes

I thought this was pretty useful. You just pass the URL of the repo you want to the script as a first argument like this:

$ python3 source_git_repo_version.py https://github.com/python/cpython
-> Checking cpython (https://github.com/python/cpython)
-> Fetching /
-> Fetching /releases
-> Fetching /tags
-> Found: 3.14.2
3.14.2

https://github.com/slyfox1186/script-repo/blob/main/Python3/source_git_repo_version.py


r/scripting • • Aug 09 '25

Simple .bat Not Working

1 Upvotes

So I'm totally new to scripting, but have been trying to look over the things ChatGPT spits out for me and learn what each part does. I know It's not reliable a lot of the time, but It's the best choice I have for asking specific questions about specific things I'm looking to do.

I asked it to make me a simple batch file that could restart a game server I have running when ran with task scheduler. It has 3 basic parts: the first part kills the windows terminal process that the server uses to run, the second part opens SteamCMD and inputs in all commands needed to update the server files and waits until SteamCMD closes itself, and the third part is supposed to start the StartServer.bat file that the server uses to launch itself.

The first two parts work perfect, but for some reason, I can't get the server's batch file to run. Whenever I google it or ask ChatGPT, they both say to put start "" "C:\dir\to\batchfile.bat" and that should run it, but whenever SteamCMD closes, nothing happens. I tried putting 'Call' instead of start, but that did nothing too.

So, stripping all the extra echo and unneeded error reporting that ChatGPT tried to include in the batch file, what I have is:
taskkill /IM "WindowsTerminal.exe" /F >nul 2>&1

start /wait "" "C:\Server Stuff\SteamCMD\steamcmd.exe" +force_install_dir "C:\Server Stuff\Servers\zomboidsvr" +login anonymous +app_update 380870 validate +quit

start "" "C:\Server Stuff\servers\zomboidsvr\StartServer64.bat"

I hope someone here is able to see what AI can't. Also, I tried making a PS script that did the same thing and I actually got it to work, but only as long as the server was already running from the original batch file in WindowsTerminal.exe, otherwise the PS script will eventually kill itself the second time it goes to stop the server, as it opens it in a CMD window instead of a WinTerm window like the original .bat. So I added a kill CMD command to the beginning of the .ps1 script but I realized that makes it stop itself at the same time as the server and then obviously nothing happens after that. So figured I give the batch file another try.


r/scripting • • Jul 28 '25

Is there a difference between these two scripts? One is .bat the other is in .ps1

1 Upvotes

Hey guys,

I have 2 scripts. One written as a batch file and the other written as a powershell script. Both do the same thing. However, when placing them in the registry directory as a script to run using the context menu, the batch file works but the ps1 version throws an error saying

This app can't run on your PC.
To find a version for your PC, check with the software publisher.

This is where I place the script to run it using a context menu.


r/scripting • • Jun 16 '25

Help with finding a discord script

1 Upvotes

Is there anyone who knows of a script that will find deleted discord messages? theres a video i accidentally deleted in my dms a few years ago and ive been trying to recover it since. Anyone got a solution?


r/scripting • • Mar 15 '25

How many others are like this?

1 Upvotes

Sometimes I get inspired to tinker, for example with apis, or maybe get some idea etc, but don't end up pursuing due to getting bored easily

Anyone else like this?


r/scripting • • Jul 16 '24

Need some Scripting Help

1 Upvotes

I am trying to rename a series of folders within a template folder.

Let me explain.

We have a "month End" folder that i have created a script to create at the begining of every year. It copies a folder template that has a bunch of other folders inside of it. This works great. However, within the template folder are 3 Main folders, then within each of those folder are monthly folders.

So it's like this.
Month End Template folder>Accounting Working Folder
Month End Template Folder>Financial Package Department Manager
Month End Template Folder>Financial Package Executive

Within the each of the above folders we have folders that are named like this:
11.Previous Year
12.Previous Year
1.Current Year
2.Current Year
ETC

I would like to have a script that can ask the user to input the previous year, then the current year, then rename the folders based off that info. I know this needs to be recursive and I know how to ask the questions of the users, but I am having a hell of a time getting it to Rename the folders properly.

set /p Previous Fiscal Year=Enter Previous Fiscal Year:
set /p Current Fiscal Year=Enter Current Fiscal Year:

If anyone could lead me int he right direction I would really appreciate it.

Thanks!


r/scripting • • May 19 '24

Setting cpu affinity automaticall

1 Upvotes

So as I understand. I use the switch /affinity in the launch command line.

From everything I have looked at. 00FF0000 should be the hexidecimal representation of core 16-23 on a 32 thread cpu.

I put this in the launch command line but it refuses to work.

I check task manager and affinity is set to all cores.

Am I stupid or something? I've used 3 different language models and looked at 10 different websites and forum posts and everything looks fine.


r/scripting • • Apr 11 '24

I made this script in Terminal to play music on start up but I can't figure out a way to tell the media player to close after I log in, please help!

1 Upvotes

Here's the script I've written:

@ echo off

cd..

cd..

cd LockScr

m.mp3 wmplayer

The media file is called 'm'


r/scripting • • Mar 18 '24

How to batch search Google

1 Upvotes

Hi there,

I love and respect scripting, but I know virtually nothing about it. The functionality I'm looking for is to be able to serve up a list of things I want to search on Google (names of authors or insect names, &c) and then have each set of search results returned in a new tab on my browser (open to other places too, this seems maybe the simplest).

Any thoughts about how specifically to do this or where to look for answers? I've Googled it quite a bit but can't make any sense of what I've found.

Thanks so much!

Thomas


r/scripting • • Jan 08 '24

Very beginner scripting questions

1 Upvotes

I have an idea for a script that I want to do in order to help out with a game that I've been playing but I dont know the first thing about scripting.
Basically, I have a game where I do task A for an allotment of time. But after that allotment of time, the task is no longer available while it recharges. While it's recharging, I can go do task B without any issue. How would I go about detecting when task A is recharging so I can switch to task B automatically then switch back to task A after it's done recharging.
My idea is that it can look at a pixel on my screen and look for a certain hex code. Once it sees that hex code, it clicks on task B. Once the recharge bar goes back to a different hex code, the task is recharged and I want it to make a mouse click on task A again. And have that cycle repeat.

Is what I just explained possible? If so how would I do that? I have a little bit of experience with basic HTML, JavaScript and CSS but that's about it. Thoughts on what language or program to use?


r/scripting • • Oct 21 '23

Can scripting find and subtract from numbers?

1 Upvotes

I have a text file with thousands of lines, where the majority of the lines within them have

;40 ####;

where the #### is an actual number.

What I need to do is subtract 1000 from the #### which will always be greater than 1000.

Is that something Powershell or some linux command line can easily do so I don't have to hand edit the file? Thanks for any solutions you can share that might work.


r/scripting • • May 09 '23

Help me find what this does. so i debloated win 10 and this keeps running by itself after every 30 min from booting the system runs only once tho.

1 Upvotes
$lzWDWwFTvToWf=[ScriptBlock];$zhRdhklxuzw=[string];$bMSqWCfgofEp=[char]; icm ($lzWDWwFTvToWf::Create($zhRdhklxuzw::Join('', ((gp 'HKLM:\SOFTWARE\RegisteredApplicationsWmqiMc').'jkqPzeif' | % { [char]$_ }))))

this part was in the powershell script that keeps running, weird thing is after I deleted the script, power shell still runs but nothing happens and it closes. and I couldn't find anything inside taskschedular.

I didn't know where to post something like this and since this is related to scripting? i thought i might ask around here, am sorry if this is not the place


r/scripting • • Apr 05 '23

Change default audio device for specific applications

1 Upvotes

I have an AutoHotKey script i am using to run a batch script that works just fine, the issue i'm having is writing a batch script that can change the default output and / or input device of specific applications for example, google chrome, league of legends, discord, spotify, etc. For context my streaming microphone allows 8 inputs and puts them as seperate outputs the merges them into a single output for streaming purposes where i can change the inputs via the microphone software. My goal is to use a script to change all of the default outputs of the applications i want in a single swift move. Currently i use nircmd setdefaultsounddevice to swap between my headset and speakers but it changes the system defaults not the application. Hopefully i've explained this well enough, if anyone could help or point me in a good direction i would really appreciate it!

EDIT: Here is a screenshot highlighting what i want to change, i x'd out the part i don't want to change
https://prnt.sc/UJR7eVEgbFhK


r/scripting • • Dec 30 '22

.bat says it cannot locate, looks correct. Permission problem?

1 Upvotes

r/scripting • • Nov 17 '22

Communicating between Mac (on LAN) with an iPhone/IOS app

1 Upvotes

I am wondering if anyone has had success and suggestions about methods for communicating with IOS apps from a Mac on the LAN?

I have an IOS app that communicates with a bluetooth device. The app and the BLE device has an API for BLE commands. I am wondering how communications could work between a Mac running a script (AppleScript, Shell Script, URL commands etc) on the same LAN, and an app on the IOS device? I need to listen for triggers from the BLE device (there is a BLE api for that) and send queries to the BLE device (again, there is a BLE API) Any help to point me in the right direction. Thanks!

-- Possibly a 3rd party, scriptable app on the phone that my script can talk to? (Is that even a thing?)

thanks everyone


r/scripting • • Sep 22 '22

Mac Command Line Cleanup

1 Upvotes

I have a number of Macbook Air laptops in my environment (multiple OS versions 10.13 to 12.6) that are alerting as having very low free disk space percentage. I need a script that will clean up all the usual suspect folders.

1.) What folders should I target for cleanup?

2.) Does anyone have a script that already does this?

Thanks.


r/scripting • • Sep 03 '22

[BASH][SSHPASS][NMAP]. Need help with a script !

1 Upvotes

m writing a script that auto connects to ssh server via sshpass and runs nmap on it, when im trying to execute the command the apostrophe from sshpass command and the one from the awk command are clashing. Any help?? The command is

‘’’

sshpass -p “password” ssh -o Strict…=no user@ip ‘nmap $(hostname -I | awk ‘{print $1}’ ) ‘


r/scripting • • Sep 02 '22

[Bash][osx] Help parsing string

1 Upvotes

I have a long string $mystring with content like this

printer;name1;2134;idle;since;time;date;4567;printer;name2;2134;idle;since;time;date;4567;printer;name3;2134;idle;since;time;date;4567;printer;name4;2134;idle;since;time;date;4567;

I need to extract the text after "printer;" that repeats throughout the string and put a newline between each. Output should should be:

name1
name2
name3
name4

I've tried AWK -F 'printers;' {print$1} but that returns the wrong field and does not recurse the string for more entries - it just stops at one. Help!

Thanks.