Question #203363 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203363
RaiMan proposed the following answer:
Ok, thinking in Sikuli is something that takes some time and some steps
to take.
so lets forget about the loop for now.
We make a workflow, to open a file in an app like notepad by simulating
the clicks and types needed.
App.open("notepad")
wait(3)
# the following workflow might be what goes into
# the loop, if we want to do it more than once
fileName = "test.txt"
type("o", KeyModifier.CTRL)
wait(1)
# this should open the file open dialog
# and the cursor is positioned in the input field for the filename
# positioned in a specific directory
# supposing in this directory, there is a file test.txt
type(fileName)
type(KeyENTER)
# we enter the filename and press enter
wait(3) # wait for the file to open
type("a", KeyModifier.CTRL) #select all content
type(Key.BACKSPACE) # delete it
type("s", KeyModifier.CTRL) # save file again
wait(2)
type(Key.F4, KeyModifier.ALT) # close notepad
A workflow like this you have to implement for one file and then put it
into an appropriate wrapping loop.
So if you want to get a Sikuli user, try to learn from this example and
set up your workflow for your cad app. Might be, that you need some
clicks on buttons.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp