Can you make a change so that it runs while out of focus? You could also add a check on the device's time when defocusing and returning to the game That gives the time difference as idle time And use that to speed up by some amount for that time To allow accessible idling, Probably reset each shift