Code: Alles auswählen
import tkinter, webbrowser
from tkinter import messagebox, PhotoImage
def Beenden():
mainwindow.destroy()
def layoutSettings():
pass
def aimbotSettings():
titleLabel = tkinter.Label(frameRight, text = "Aimbot", foreground = "red", font = "arial 33 bold")
titleLabel.pack(side="top",pady=12)
phLabel = tkinter.Label(frameRight, text = "PLACEHOLDER FOR PREVIW VIDEO!")
phLabel.pack(pady = 65)
info1Label = tkinter.Label(frameRight, text = "Information/en:",foreground = "red",font = "arial 18 bold")
info1Label.pack()
info2Label = tkinter.Label(frameRight, text = "<Aktuell stehen noch keine Infos zur Verfügung!>",font = "arial 10")
info2Label.pack(pady=25)
label1 = tkinter.Label(frameRight, text = "Einstellungen:",foreground = "red",font = "arial 18 bold")
label1.pack()
label2 = tkinter.Label(frameRight, text = "Schaltung:",font = "arial 10")
label2.pack()
toggle = tkinter.StringVar()
toggle.set("FALSE")
on = tkinter.Radiobutton(frameRight, text = " ON",variable=toggle,value="TRUE")
on.pack()
off = tkinter.Radiobutton(frameRight, text = "OFF",value="FALSE")
off.pack()
label3 = tkinter.Label(frameRight, text = "Geschwindigkeit Zoom-In:",font = "arial 10")
label3.pack()
entry1 = tkinter.Entry(frameRight)
entry1.pack()
label4 = tkinter.Label(frameRight, text = "Geschwindigkeit Zoom-Out:",font = "arial 10")
label4.pack()
entry2 = tkinter.Entry(frameRight)
entry2.pack()
def aimassistSettings():
titleLabel = tkinter.Label(frameRight, text = "AimAssist", foreground = "red", font = "arial 33 bold")
titleLabel.pack(side="top",pady=12)
phLabel = tkinter.Label(frameRight, text = "PLACEHOLDER FOR PREVIW VIDEO!")
phLabel.pack(pady = 65)
info1Label = tkinter.Label(frameRight, text = "Information/en:",foreground = "red",font = "arial 18 bold")
info1Label.pack()
info2Label = tkinter.Label(frameRight, text = "<Aktuell stehen noch keine Infos zur Verfügung!>",font = "arial 10")
info2Label.pack(pady=25)
label1 = tkinter.Label(frameRight, text = "Einstellungen:",foreground = "red",font = "arial 18 bold")
label1.pack()
label2 = tkinter.Label(frameRight, text = "Schaltung:",font = "arial 10")
label2.pack()
toggle = tkinter.StringVar()
toggle.set("FALSE")
on = tkinter.Radiobutton(frameRight, text = " ON",variable=toggle,value="TRUE")
on.pack()
off = tkinter.Radiobutton(frameRight, text = "OFF",value="FALSE")
off.pack()
label3 = tkinter.Label(frameRight, text = "Geschwindigkeit:",font = "arial 10")
label3.pack()
entry1 = tkinter.Entry(frameRight)
entry1.pack()
label4 = tkinter.Label(frameRight, text = "Y - Wert:",font = "arial 10")
label4.pack()
entry2 = tkinter.Entry(frameRight)
entry2.pack()
label5 = tkinter.Label(frameRight, text = "X - Wert:",font = "arial 10")
label5.pack()
entry3 = tkinter.Entry(frameRight)
entry3.pack()
def norecoilSettings():
titleLabel = tkinter.Label(frameRight, text = "NoRecoil", foreground = "red", font = "arial 33 bold")
titleLabel.pack(side="top",pady=12)
phLabel = tkinter.Label(frameRight, text = "PLACEHOLDER FOR PREVIW VIDEO!")
phLabel.pack(pady = 65)
info1Label = tkinter.Label(frameRight, text = "Information/en:",foreground = "red",font = "arial 18 bold")
info1Label.pack()
info2Label = tkinter.Label(frameRight, text = "<Aktuell stehen noch keine Infos zur Verfügung!>",font = "arial 10")
info2Label.pack(pady=25)
label1 = tkinter.Label(frameRight, text = "Einstellungen:",foreground = "red",font = "arial 18 bold")
label1.pack()
label2 = tkinter.Label(frameRight, text = "Schaltung:",font = "arial 10")
label2.pack()
toggle = tkinter.StringVar()
toggle.set("FALSE")
on = tkinter.Radiobutton(frameRight, text = " ON",variable=toggle,value="TRUE")
on.pack()
off = tkinter.Radiobutton(frameRight, text = "OFF",value="FALSE")
off.pack()
label3 = tkinter.Label(frameRight, text = "Recoil Wert (Y-Achse, positiv):",font = "arial 10")
label3.pack()
entry1 = tkinter.Entry(frameRight)
entry1.pack()
label4 = tkinter.Label(frameRight, text = "Geschwindigkeit:",font = "arial 10")
label4.pack()
entry2 = tkinter.Entry(frameRight)
entry2.pack()
def jitterSettings():
pass
def autorunSettings():
titleLabel = tkinter.Label(frameRight, text = "AutoRun", foreground = "red", font = "arial 33 bold")
titleLabel.pack(side="top",pady=12)
phLabel = tkinter.Label(frameRight, text = "PLACEHOLDER FOR PREVIW VIDEO!")
phLabel.pack(pady = 65)
info1Label = tkinter.Label(frameRight, text = "Information/en:",foreground = "red",font = "arial 18 bold")
info1Label.pack()
info2Label = tkinter.Label(frameRight, text = "<Aktuell stehen noch keine Infos zur Verfügung!>",font = "arial 10")
info2Label.pack(pady=25)
label1 = tkinter.Label(frameRight, text = "Einstellungen:",foreground = "red",font = "arial 18 bold")
label1.pack()
label2 = tkinter.Label(frameRight, text = "Schaltung:",font = "arial 10")
label2.pack()
toggle = tkinter.StringVar()
toggle.set("FALSE")
on = tkinter.Radiobutton(frameRight, text = " ON",variable=toggle,value="TRUE")
on.pack()
off = tkinter.Radiobutton(frameRight, text = "OFF",value="FALSE")
off.pack()
def rapidfireSettings():
pass
#Hauptfenster
mainwindow = tkinter.Tk()
mainwindow.title("xXSkyWalkerXx1 - Fortnite S.G.I. Tool")
mainwindow.resizable(0,0) #Verhindert Möglichkeit Fenster zu vergrößern
mainwindow.geometry("1200x521") #Größe des Fensters - modul.funktion(pixelX,pixelY)
"""backgroundPic = PhotoImage(file = "/home/pi/Bilder/SHAREfactory™_20170530112945.gif")
mainwindow["image"] = backgroundPic"""
#Hauptfenstereinteilung
frameLeft = tkinter.Frame(mainwindow,width=200,height=300,relief="sunken",bd=0)
frameLeft.pack(side="left",expand=1,fill="both")
frameRight = tkinter.Frame(mainwindow, width=500,height=400,relief="sunken",bd=0)
frameRight.pack(side="right",expand=1,fill="both")
#Widgets
infoLabel = tkinter.Label(frameLeft, text = "InGame Layout:", font = "arial 27 bold", foreground = "orange") #Gibt Text in Arial, Größe 25 und Art fettgedruckt aus
infoLabel.pack(pady=12)
layoutButton = tkinter.Button(frameLeft, text = "Layout Settings", command = layoutSettings)
layoutButton.pack(pady=8)
#Leerzeichen (Wie?)
infoLabel = tkinter.Label(frameLeft, text = "Mods:", font = "arial 27 bold", foreground = "orange") #Gibt Text in Arial, Größe 25 und Art fettgedruckt aus
infoLabel.pack(pady=12)
aimbotButton = tkinter.Button(frameLeft, text = "Aimbot", command = aimbotSettings)
aimbotButton.pack(pady=8)
aimassistButton = tkinter.Button(frameLeft, text = "AimAssist", command = aimassistSettings)
aimassistButton.pack(pady=8)
norecoilButton = tkinter.Button(frameLeft, text = "NoRecoil", command = norecoilSettings)
norecoilButton.pack(pady=8)
rapidfireButton = tkinter.Button(frameLeft, text = "RapidFire", command = rapidfireSettings)
rapidfireButton.pack(pady=8)
jitterButton = tkinter.Button(frameLeft, text = "Double Tac & Pump", command = jitterSettings)
jitterButton.pack(pady=8)
autorunButton = tkinter.Button(frameLeft, text = "AutoRun", command = autorunSettings)
autorunButton.pack(pady=8)
mainwindow.mainloop()
Vllt irgendein Code Bsp. ?
z.B. um so zu erkennen wo ein Objekt ist /etc.
Mein RasPi soll halt das Videosignal von (z.B.) PC zum TV lesen und so feststellen wo sich was bewegt oder so
Wie kann ich ein USB Stick erkennen, der aber wie ein Controller oder so an PC angesteckt wird.
Zum Beispiel gibt da nen CronusMax, der wird mittels USB Kabel (PS3 Ladekable) an PC gesteckt - der PC erkennt das Gerät nicht, aber ein Programm (CronusPro) schon.