Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by V ( 15 years ago )
#!/usr/bin/python
# -*- coding: utf-8 -*-

import time
import os
import touchpad
import maus

mausstatus = False

while True:
    time.sleep(1)
    if mausstatus != maus.ReadFile():
        touchpadstatus = touchpad.ReadFile()
        mausstatus = maus.ReadFile()
        if mausstatus == False and touchpadstatus == False:
            os.system("/usr/local/bin/touchpad.py")
        elif mausstatus == True and touchpadstatus == True:
            os.system("/usr/local/bin/touchpad.py")

 

Revise this Paste

Your Name: Code Language: