#Regex Version

1 messages ยท Page 1 of 1 (latest)

fading widget
#
Find: [rR]|[lL]
Replace: w
#

w

#

ewm

wind thorn
#
Find: r|l
Replace: w
Find: R|L
Replace: W

thwt works too
wnd it's shorter
so

honest nexus
#

you guys clearly arent cultured enough

#
Find: na
Replace: nya
Find: ni
Replace: nyi
Find: no
Replace: nyo
Find: nu
Replace: nyu
#

i cant be bothered enough to make variants for capitalizations of Na nA and NA

#

and the other vowels

#

avoided ne because of words that end in "ne" like "fine" would become "finye" and thats just not very good is it

#

actually gonna not put this in a thread

honest nexus
#

its not too unreadable

#

especially skipping the ne

#

nyo its nyot

#

i will nya as much as it takes to prove that >:3

#

hmm perhaps

#

and the replacement doesnt need to change right?

#

nice

#

hold on

#
(n([aiou]))(?=.*\s+(:3|[oOuU>]w[<UuOo]))
#

matches OwO, uwu, Uwo, and other variations

#

including >w<

#

ah

#
n([aiou])(?=.*\s+(:3|[oOuU>]w[<UuOo]))
#

try that

#

end your message with uwu

#

yep

#

it matches uwu and >w< and >wo

#

oh wait

#

oh i just had an idea

#

so * basically means "0 or more of this character" right

#
n([aiou])(?=.*\s+(:3|[oOuU>]\/*w\/*[<UuOo]))
#

now it can match U//w//U

#

just had to add in the blush yknow

#

cant go without it

#

yes it technically will lmao

#

nah leave it like that

#

too lazy to deal with common variations like O///w///O

#

ah shit theres the

#

variation of

#

/////<

#

didnt know that

#

im new to regex lol

#

used ahk before

#
n([aiou])(?=.*\s+(:3|[oOuU>]\/{0, 5}w\/{0, 5}[<UuOo]))
#

this regex string is looking more cursed with each iteration

#

perhaps

#

but theres a charm in code that looks like keymash

#

:3

#

yuh huh

#

almost

#

god im reminded of my old nekospeak script

#

its on my old laptop

#

ahk script

#

it replaced the n word with fwiend

#

if youre gonna use my script then you better not use slurs

#

does it work live?

#

like, while youre typing

#

you can watch as you type "no" and it inserts the y in real time

#

nice ill check it out later

#

ahk is useful for other things too

#

in real time

#

not after you press enter

#

ive already written a whole script for it but i forgot to move my old programs folder from my old laptop with a broken screen

#

its got loads of scripts

#

well, not really loads

#

more like 20

#

god you shouldve seen my nekospeak at full strength lmao

#

almost impossible to understand anything you say

#

it would even add a funny little ~ every time you press enter

#

oh yeah, the main reason why i dont think its so bad is because theres surprisingly few words that can trigger it :3

#

aeugh hold on im getting the folder

honest nexus
#

oh god i forgot how bad this was

#

alwight time tu test dis and see just how bad it is

#

yep its vewys easys to see de effects

#

holys heck dis is neaw unbeawable

#

hahaha me wuv it

#

dis could tuwn even de most waging gamew into a kittygiwl

rose rain
honest nexus
#

the raw ahk script

#

you can check over it to make sure its not doing any strange things

#

im not sending the compiled exe youll have to compile it yourself -w-

#

lmao fair

rose rain
#

i will abuse this script to my hearts content โค๏ธ

honest nexus
#

be warned of the 4 slurs in the code

#

theyre there to get replaced by nicer words :3

#

yknow, like f****t to cutie

#

if youre gonna use my script you better not be saying slurs >:c

rose rain
#

i promise i have never spoken a slur online jonAmo_Pray

honest nexus
#

good ^w^

rose rain
#

jonAmo watches me i cannot speak poorly of others

honest nexus
#

good philosophy :3

#

ive made a few more other scripts too

#

like one that takes the nya thing to a whole new level

#

and despite it being active right nyow its pretty hard to tell since nyot manya words get effected

lone moss
#

bruh

pure wharf
# honest nexus

dis is gold lol, best file me evew downloaded in me computew

ionic timber
#

I don't know what I did, but for some reason yit's happenying outside of discord and I dont knyow how to turn yit off

#

๐Ÿ˜ญ

#

OK I FIXED IT ๐Ÿ˜ญ

twin gyro
#

I want it outside Discord

ionic timber
#

I was originally gonna work on it more, but decided it wasnt worth the time since I have too many projects atm

twin gyro
#

nice

ionic timber
#

nowhere near complete tho, and the code is pretty bad imo but heres a version that replaces l's and r's with "w"

import os
try:import pynput
except:os.system('pip install pynput')
try:import keyboard
except:os.system('pip install keyboard')
from pynput.keyboard import Key, Listener


n_pressed = False
h_pressed = False
i_pressed = False

def handle_a_pressed():
    global a_pressed
    if n_pressed:
        keyboard.press_and_release('left+y+right')

def handle_e_pressed():
    global e_pressed
    if n_pressed:
        keyboard.press_and_release('left+y+right')

def handle_h_pressed():
    global h_pressed
    h_pressed = True

def handle_i_pressed():
    global i_pressed
    if n_pressed:
        keyboard.press_and_release('left+y+right')
    if h_pressed:
        i_pressed = True

def handle_l_pressed():
    global l_pressed
    keyboard.press_and_release('backspace+w')
    return None

def handle_n_pressed():
    global n_pressed
    n_pressed = True
    return None

def handle_o_pressed():
    global o_pressed
    if n_pressed:
        keyboard.press_and_release('left+y+right')

def handle_r_pressed():
    global r_pressed
    keyboard.press_and_release('backspace+w')
    return None

def handle_u_pressed():
    global u_pressed
    if n_pressed:
        keyboard.press_and_release('left+y+right')

def handle_space_pressed():
    global i_pressed
    global h_pressed
    global n_pressed
    n_pressed = False
    
    if i_pressed and h_pressed:
        keyboard.press_and_release('backspace+left+a+right+space')
        h_pressed = False
        i_pressed = False

def handle_apostrophe_pressed():
    keyboard.press_and_release('backspace')

def handle_other_key():
    global n_pressed
    global h_pressed
    global i_pressed
    i_pressed = False
    n_pressed = False
    h_pressed = False

key_handlers = {
    'a': handle_a_pressed,
    'e': handle_e_pressed,
    'h': handle_h_pressed,
    'i': handle_i_pressed,
    'l': handle_l_pressed,
    'n': handle_n_pressed,
    'o': handle_o_pressed,
    'r': handle_r_pressed,
    'u': handle_u_pressed,
    '\'': handle_apostrophe_pressed,
    'space': handle_space_pressed
}

def on_press(key):
    try:
        key_char = key.char.lower()
        
        if key_char in key_handlers:
            key_handlers[key_char]()
        else:
            handle_other_key()  # Call the fallback function for unknown keys
            print(key_char)
    except AttributeError: 
        key_name = key.name.lower()
        
        if key_name in key_handlers:
            key_handlers[key_name]() 
        else:
            handle_other_key()  # Call the fallback function for unknown keys  
            print(key_name)  


with Listener(on_press = on_press) as listener:
    listener.join()
#

I do plan on improving this, but yeah

ionic timber
#

the prints are only temporary till i fill the functions

#

seeing as the code is readable anough to not need them lol

#

god I needa get some food tho, I drank last night and I feel funny, enjoy tho (I will periodically update my message with the code, if its too long for a message ill change it to a file if need be)

twin gyro
ionic timber
#

hmmmm, it seems to have problems with more than one character at a time, e.g. turning hi into hai

#

found a wowkawound

stuck badger
#

i download .rak

honest nexus
#

search it up

ionic timber
stuck badger
honest nexus
#

search it up

stuck badger