pause a few frames before typing on a keyboard

For names that weren't starting with a capletter, the "select" button to
switch to downcase was happening too soon. So add in a small delay to
get the keyboard writing to work.
This commit is contained in:
Bryan Bishop
2013-09-22 12:14:49 -05:00
parent e3f6d91d06
commit 6e4c7d5a0f

View File

@@ -430,7 +430,12 @@ class crystal(object):
"""
for buttons in button_sequence:
self.vba.press(buttons)
self.vba.step(count=2)
if buttons == "select":
self.vba.step(count=5)
else:
self.vba.step(count=2)
self.vba.press([])
def write(self, something="TrAiNeR"):
@@ -440,7 +445,9 @@ class crystal(object):
Uses a planning algorithm to do this in the most efficient way possible.
"""
button_sequence = keyboard.plan_typing(something)
self.vba.step(count=10)
self.keyboard_apply([[x] for x in button_sequence])
return button_sequence
def set_partymon2(self):
"""