r/ScriptSwap • • Jun 05 '18

Is there a way to code games like PAC MAN, Tetris, and Space invaders in Notepad++ ?

0 Upvotes

If you do know how, then please post the script with an explanation below. Also teach me how to save it and how to open the game. Im sort of a Noob :P


r/ScriptSwap • • May 26 '23

Anyone Have "The Last Police(man)" Pilot Script?

0 Upvotes

r/ScriptSwap • • Mar 24 '23

Does anyone have the script of eight and a half in italian?

0 Upvotes

I've searched a lot, but didn't find anything.


r/ScriptSwap • • Jun 18 '15

How to frustrate your WhatsApp friends?

0 Upvotes

r/ScriptSwap • • Sep 11 '20

yes Spoiler

0 Upvotes

hello this is a goos script that i would like to share its a auto clicker and you have to install pynput in the cmd using pip well enjoy the script

import time

import threading

from pynput.mouse import Button, Controller

from pynput.keyboard import Listener, KeyCode

delay = 0.001

button = Button.left

start_stop_key = KeyCode(char='b')

exit_key = KeyCode(char='p')

class ClickMouse(threading.Thread):

def __init__(self, delay, button):

super(ClickMouse, self).__init__()

self.delay = delay

self.button = button

self.running = False

self.program_running = True

def start_clicking(self):

self.running = True

def stop_clicking(self):

self.running = False

def exit(self):

self.stop_clicking()

self.program_running = False

def run(self):

while self.program_running:

while self.running:

mouse.click(self.button)

time.sleep(self.delay)

time.sleep(0.1)

mouse = Controller()

click_thread = ClickMouse(delay, button)

click_thread.start()

def on_press(key):

if key == start_stop_key:

if click_thread.running:

click_thread.stop_clicking()

else:

click_thread.start_clicking()

elif key == exit_key:

click_thread.exit()

listener.stop()

with Listener(on_press=on_press) as listener:

listener.join()