def OnKeyPress (KeyID): if KeyID == lobbyKey: print('Lobby') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Lobby') elif KeyID == infectedKey: print('Infected') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Infected') elif KeyID == innocentKey: print('Innocent') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Innocent')
import iCUE game = input('Game Name: ') iCUE.SetGame(game) while True: state = input('State Name: ') iCUE.SetState(game, state) input('Enter to clear...') iCUE.ClearState(game, state)
import iCUE import sys gameName = 'Other' iCUE.ClearAllStates(gameName) iCUE.SetState(gameName, sys.argv[1]) iCUE.SetGame(gameName)
def on_keyboard_event(self, event): try: OnKeyPress(event.KeyID) finally: return True def shutdown(self): PostQuitMessage(0) self.hm.UnhookKeyboard() def OnKeyPress (KeyID): if KeyID == lobbyKey: print('Lobby') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Lobby') elif KeyID == infectedKey: print('Infected') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Infected') elif KeyID == innocentKey: print('Innocent') iCUE.ClearAllStates('Deceit') iCUE.SetState('Deceit', 'Innocent') iCUE.SetGame('Deceit') iCUE.SetState('Deceit', 'Lobby') watcher = Keystroke_Watcher() PumpMessages()
import iCUE iCUE.SetGame('FarCry5') input('Press Enter to continue...') iCUE.SetState('FarCry5', 'FC_Night') input('Press Enter to continue...') iCUE.SetState('FarCry5', 'FC_Bees') input('Press Enter to continue...') iCUE.SetEvent('FarCry5', 'FC_Explosion') input('Press Enter to continue...') iCUE.ClearState('FarCry5', 'FC_Bees') input('Press Enter to continue...') iCUE.SetGame('CSGO') input('Press Enter to continue...') iCUE.SetState('CSGO', 'CS_Smoke') input('Press Enter to continue...')