Import Question
Starting here & here:
https:/
https:/
--testpad.sikuli--
from sikuli import *
# the path containing your stuff - choose your own naming
# on Windows
myScriptPath = "D:\\MikE\\Sikuli Scripts"
# all systems (avoids double entries in sys.path)
addImportPath(
# supposing there is a testpad2.sikuli
import testpad2
reload(testpad2)
from testpad2 import *
setShowActions (True)
# testpad
# Start script with functions
# supposing myLib.sikuli contains a function "def myFunction():"
testpad2.
testpad2.openUE()
#
#
# end of script
exit(1)
--testpad2.sikuli--
# Testing Global Functions
# Launch Nox
def launchNox():
app = App("D:\\Program Files\\
app.open(5) # does the focus as well
reg = app.window(0)
if exists(
else:
sleep(0)
#function open UE app (default account)
def openUE():
wait(
if exists(
else:
sleep(0)
wait(
hover(
and I get this error:
[error] script [ testpad ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "D:\MikE\Sikuli Scripts\
If I comment out line 15 I see this:
[error] script [ testpad ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "D:\MikE\Sikuli Scripts\
Still out of my depth, but making steady progress :D (trying to eliminate any repeat code / reuse as much as possible)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mike Praeuner
- Solved:
- Last query:
- Last reply: