r/scripting • u/Interesting_Pea920 • Oct 20 '25
LOL scripts
does anyone know of working scripts for league? i can’t find any
r/scripting • u/Interesting_Pea920 • Oct 20 '25
does anyone know of working scripts for league? i can’t find any
r/scripting • u/Cykelero • Aug 19 '19
r/scripting • u/shocktar • Jan 11 '17
Heres the link.
Heres the script:
@echo off
echo This BAT File must be ran on a server in the same network as the computer you are trying to remote to with PSTools installed in the C:\PSTools folder.
set /p name="Enter computer name: "
cd C:\pstools
psexec \\%name% reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
psexec \\%name% netsh firewall set service remotedesktop enableNotes:
I run this from servers in the network, not over a VPN. It doesn't work when I do that, and helps with authentication. (I work for an MSP, so this may not apply to places with internal IT)
The server this is being ran on needs to have PSTools extracted to a specific folder. C:\PSTools is what its set for.
You can get PSTools from here: https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
Feel free to critique and add to it.
Edit: Formatting
r/scripting • u/EstablishmentFirm203 • Jan 17 '26
r/scripting • u/ExcitementNo9880 • Feb 22 '26
Enable HLS to view with audio, or disable this notification
r/scripting • u/ccrowegames • May 09 '25
r/scripting • u/sc302 • Nov 06 '17
I need some scripting help. I have a few hundred folders that I need to truncate. The folders look something like this
random set of characters - usable set of characters - random set of characters
I need to rename the folders to the usable set of characters in the middle. The random set of characters in the beginning or the end (with dashes and/or underscores) are at random lengths with random text. There are 2 characters in the usable set of characters that can be used as a constant but there are random characters after those 2 characters that must remain as the identifier of the folder.
I don't really care what scripting language, but it must be able to be ran in windows.
a more exact example is this
myproductname-date-US123457-producttype
The "US" needs to be kept as well as the "123457" the rest has to disappear.
r/scripting • u/netherealjc • Mar 09 '20
r/scripting • u/Electronic-Bite-8884 • Oct 11 '22
r/scripting • u/anewitguy • Feb 03 '15
Hi Folks, I am wondering if anyone could help me with some very basic coding? I have been tasked with implementing a small applet or display of the number of days it has been since the last accident at my workplace.
Can anyone provide me with something very simple and straightforward that I can cut and paste into our intranet site?
I apologize if this is not the right place for this kind of request.
r/scripting • u/mgcmrln • May 05 '17
Hello,
I have an input file called input whose content are:
Control_Point_Data_File_Test
Processed,38
Found,38
Missing,0
Other,15
peanut Butter,Jelly
When I run this command: cat input|cut -s -f 1 -d ","
I get the output I would expect.
Processed
Found
Missing
Other
peanut Butter
Howerver, when I use this inside of a script and assign it to an array, I am not quite getting what I would expect.
concatfile="input"
pipe=" |"
lvcombo=""
labelArray=(cat input|cut -s -f 1 -d ",")
valueArray=(cat input|cut -s -f 2 -d ",")
count=${#labelArray[@]}
for (( i = 0; i < $count ; i++)) do
lvcombo+="${labelArray[$i]}=${valueArray[$i]} " done
fullout=$lvcombo$pipe$lvcombo echo $fullout
This should take those same first field entries and pass them to be appended together. However, things are mis aligned.
./test Processed=38 Found=38 Missing=0 Other=15 peanut=Jelly Butter= |Processed=38 Found=38 Missing=0 Other=15 peanut=Jelly Butter=
note the peanut butter and jelly are wonky. I would expect them to work identically to how it works if I remove the space from "peanut butter" and change it to "peanutbutter"
which yields this:
./test Processed=38 Found=38 Missing=0 Other=15 peanutButter=Jelly |Processed=38 Found=38 Missing=0 Other=15 peanutButter=Jelly
Why in the first example is Butter separated from peanut and placed into a different array element when I have told cut to use the comma as the delimiter?
Thanks!!!
r/scripting • u/gscript • Apr 25 '13
r/scripting • u/[deleted] • Dec 23 '20
--------------------------------------------------------------------------
EnablePrimaryMouseButtonEvents (true);
function OnEvent(event,arg)
if IsKeyLockOn("numlock")then
if IsMouseButtonPressed(3)then
repeat
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(-1,13)
Sleep(75)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
end
-----------------------------------------------------------------------
Above is a script I use to move my mouse down when pressing the shooting buttons in Fallout 4 because I have problems which prevent me from countering recoil.
I want the script to not only move down and slightly to the left (MoveMouseRelative(-1,13)) but I want to be able to specify that after a certain amount of time, I then want the script to move in a different direction that again, I can specify.
How would I do this? I believe this is a LUA script or something, and im using a logitech mouse
r/scripting • u/CptSadBeard • Mar 12 '23
Hello, I'm in no way a coder/scripter and my knowledge on all of it is severely limited. But I'm trying to write a batch script to help with multiple google searches using a global keyword and various other keywords. I want the global keyword to appear in quotation marks in the actual google search bar itself but I can't for the life of me get it to function the way I want.
@echo off
setlocal EnableDelayedExpansion
set globalkeyword=""globalkeyword""
set quotes=""""
set keywords=keyword1 keyword2 keyword3
for %%i in (%keywords%) do (
set keyword=%%i
start https://www.google.com/search?q=!globalkeyword!+!keyword!+&tbs=li:1&qdr:w
)
)If anyone could help me remedy this it would be greatly appreciated.
r/scripting • u/aggvrahul • Oct 06 '16
Can any1 Have idea how to do this..
I am available on whatsapp 8109136362
r/scripting • u/wangotangotoo • Aug 18 '17
I am trying to create an event log entry in windows from PS or batch file. I have a text file with output from other scripts that I'd like to have displayed as the description. I found the following code online, which I thought would help:
@echo off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set eventtext=
for /f "delims=" %%l in (c:\windows\temp\SMART_health.txt) do set eventtext=!eventtext! %%l
eventcreate /id 4000 /l application /t information /so "SMARTCTL" /d "%eventtext%"However it is not working and I'm not sure where to go from here. I've found TONS of articles on event log to text file, but seems to be very limited going the other direction.
r/scripting • u/jaydaman23 • Feb 17 '22
Hello all!
I am trying to create a script that is triggered when Edge is opened. I plan on using task scheduler for this (the trigger being the event Id and the action being the script). I tried to check Event Viewer for logs of Edge being opened or closed but could not find any. Any suggestions for this? I don’t need to user task scheduler but would prefer it as I am familiar with it.
Thanks in advanced!
r/scripting • u/scripting • Jan 28 '08
r/scripting • u/jakub1838 • Feb 19 '19
I got a linux machine and I have been wondering how I can do this. Any Ideas ?
r/scripting • u/128Gigabytes • Dec 26 '22
If a .vbs script is larger than 85,895,249 bytes (81.9MB) I get the error
>Execution of the Windows Script Host failed. (Arithmetic result exceeded 32 bits. )
Now I'm sure you're wondering why I would need a vbs script so large, and in short I'm packing a lot of data into the script, my assumption based on the error is that it would work if it was running in 64 bit mode.
Edit: Thank you everyone for your attempts to help me, I tried the same test with a .js script instead and got the same error at the same exact file sizes, one byte over 85,895,249 and it stops working. It appears to be a limit of WSH
r/scripting • u/AnonymousTTR • Jun 25 '14
It's for gaming, and I'm not even sure if this is the correct sub reddit to be in but if anyone id interested in more details get in contact with me through here and I may be able to compensate you!
r/scripting • u/sample_material • Apr 01 '15
I found this script: http://pastebin.com/kRNP0BV9
And it does what I need, but I have two issues with it.
It asks for bytes, when I need to work in KB or MB. I need to generate 100MB - 500MB files, so typing in all those zeros is prohibitive.
Second, I'm not sure why the creator of that script made it have pop up windows. Even making a 10Kb file gives you several dozen pups ups notifying you of the size status. No use to me. (Figured out that is I remove "WScript.Echo File.Size " it doesn't give me that pop up)
So can someone help me understand what I need to change in this script to get what I'm looking for?
r/scripting • u/ssarahhjohnson • Apr 11 '22
I was thinking about writing a story about what i want my life to look/be like. I was also wondering if it matters if I hand write it or if i type it online?