Skip to main content

LdShell

Project description

#from LdShell import d #from LdShell import InitLdPlayer

#声明雷电模拟序号 #InitLdPlayer("2");

#坐标点击 #d().Tap("10 10")

#元素点击 #d(resourceid="jp.naver.line.android:id/lds_box_button_container").Click()

#判断元素是否存在 #if(d(resourceid="jp.naver.line.android:id/lds_box_button_container").Exists()==True):

print("存在")

pass

#else:

print("不存在")

pass

#输入文字 #d().Input("한국")

#在屏幕上做划屏操作,前四个数为坐标点,后面是滑动的时间(单位毫秒) #d().Swipe("50 50 500 500 20")

#按键代码参考https://blog.51cto.com/u_16099257/7853577 #d().Keyevent("4") #返回键

#启动APP,设置包名 #d().StartApp("in.zhaoj.shadowsocksr")

#停止APP,设置包名 #d().StopApp("in.zhaoj.shadowsocksr")

#上传文件 #d().UpFile("C:\aaa.whl","/sdcard/")

#Adb命令 #d().Adb("shell input keyevent 4") #执行返回命令

#Shell命令 #d().Shell("input keyevent 4") #执行返回命令

#获取Text文本 #str=d(resourceid="jp.naver.line.android:id/lds_box_button_container").Text(); #print(str);

#获取Content文本 #str=d(resourceid="jp.naver.line.android:id/lds_box_button_container").Content(); #print(str);

#获取Child 子元素 ##str=d(resourceid="jp.naver.line.android:id/lds_box_button_container").Child(); #print(str);

d(text="雷电游戏中心").Click()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

LdShell-1.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LdShell-1.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file LdShell-1.5.tar.gz.

File metadata

  • Download URL: LdShell-1.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for LdShell-1.5.tar.gz
Algorithm Hash digest
SHA256 8d6c79e2eccc7e43e2130d881b48e6a86144895b0bc0708c5ca2c3d665c556f4
MD5 a68e6b6c666c3c73f73de8be0a6f00f6
BLAKE2b-256 04739e7af99b01b693c18e68bcfb465f821d218e3779baea1464b8bd8ca8081c

See more details on using hashes here.

File details

Details for the file LdShell-1.5-py3-none-any.whl.

File metadata

  • Download URL: LdShell-1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for LdShell-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 32b3c59c10c8034045022e526742819e3d9735b1d3a794a3e3868b17fbcc8442
MD5 bf813eb21ebf3677b26c0800ba9f59cb
BLAKE2b-256 be956b77a2c7048b6ef5f7e066794702e46875054b4a794191d6ed90c862611f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page