← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678869]: type() functions type incorrect characters

 

Question #678869 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678869

itsmetwenty posted a new comment:
I think I found the cause for the incorrect character
it is due to the creation of instance of the app

here is the code:

import thread

global thread_end
thread_end = False

def thread1():
    while thread_end == False:
        AppTest = App("TextEdit")
    print "END"

first_thread = threading.Thread(target=thread1)
first_thread.start()

switchApp("textedit")
for i in range(20):
    type("/Users/AbCdEFGhij/a_b_c_1_2_3_4_5_6_7_8_9_0/!@#$%67890" + Key.ENTER)
thread_end

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.