from ahk import AHK, Hotkey
import time
import keyboard
ahk = AHK()
if keyboard.is_pressed('Page_Up'):
while True:
ahk.key_press('TAB')
if keyboard.is_pressed('Page_Down'):
print("Stoping...")
break
from ahk import AHK, Hotkey
import time
import keyboard
ahk = AHK()
while True:
if keyboard.is_pressed('Page_Up'):
while True:
ahk.key_press('TAB')
if keyboard.is_pressed('Page_Down'):
print("Stoping...")
break