← Back to team overview

sikuli-driver team mailing list archive

[Question #685555]: how to add the sikulixadb

 

New question #685555 on Sikuli:
https://answers.launchpad.net/sikuli/+question/685555

i use sikulix-2.0.0 and want to use sikulix to connect the android phone, i download the adb and add the (adb path) in Path,
but i want to use the ide toos menu so i try to the option1 

option1 : i add a new key name sikulixadb and the value is adb-path but use sikulix menu will tell me not find adb

use option3 : will sure connect the phone but run my code will error。

my code:

adbscr = ADBScreen.start("C:\\Users\\Andy\\Desktop\\adb\\adb.exe")
a = (r"C:\Users\Andy\Desktop\adb")
print(adbscr)
reg = adbscr.newRegion(0,0,1440,3132)
img = adbscr.capture(reg).getFile()
shutil.move(screenshot_return, os.path.join(a, '_return.png'))     
print('ok')  

the erroe :
 [error] ADBDevice: captureDeviceScreenMat: width or height differ from device values
[error] script [ sikulitemp-4120090980014491323 ] stopped with error in line 6
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
[error] --- Traceback --- error source first
line: module ( function ) statement 
6: main (  <module> )     img = adbscr.capture(reg).getFile()
[error] --- Traceback --- end --------------
[error] ADBClient: package adb not available: C:\Users\Andy\Desktop\2.0
[error] ADBClient: package adb not available: C:\Users\Andy\Desktop\2.0      

if can i want to use option1  。 option3 also can answer me THX 

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