金猪脚本Autojs之抖音养号+上传视频


**脚本源码:金猪脚本
**脚本作用:抖音养号+上传视频脚本
*-*学习交流扣扣裙:741318378
**测试系统:安卓8.1
**测试版本:4.1.1 Alpha2
 * 多个脚本按照顺序执行
 * @param {Array} scriptNames 
 */
 var scriptsPath = "/sdcard/脚本/";
if(!files.exists(scriptsPath)){
    scriptsPath = "/sdcard/Scripts/";
}
var scriptFiles = "网络监视器悬浮窗.js";

var path = files.join(scriptsPath, scriptFiles);
engines.execScriptFile(path);
 
function Observer(scriptNames) {
  this.scriptNames = scriptNames || []
  this.currentScriptContent = null;
  this.addNotice = function (scriptName) {
    var scriptPath = files.join(files.getSdcardPath(), '脚本', scriptName + '.js')
    var scriptContent = files.read(scriptPath)
    var notice = ";(function () {  var args = engines.myEngine().execArgv;  var observer = args.observer;  events.on(\"exit\", function () {    log('exit event!');    observer.next();  });})();;"
    var tempScriptContent = scriptContent + notice
    this.currentScriptContent = tempScriptContent;
  }
  this.next = function () {
    if (scriptNames.length > 0) {
      var scriptName = this.scriptNames.shift()
      this.addNotice(scriptName)
      engines.execScript(scriptName, this.currentScriptContent, {
        arguments: {
          observer: this
        }
      })
    } else {
      return true
    }
  }
}

var scriptNames = ['自动上传视频UI', '切换IP','抖音养号脚本','自动上传视频主文件'];
(new Observer(scriptNames)).next();

学习交流扣扣裙:74-13-18-378

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是一个使用Python编写的简单游戏脚本示例,该脚本控制一个玩家角色在屏幕上移动和跳跃: ```python import pygame # 初始化Pygame pygame.init() # 创建游戏窗口 screen_width = 800 screen_height = 600 screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption("My Game") # 加载玩家图像 player_image = pygame.image.load("player.png") player_rect = player_image.get_rect() player_rect.x = screen_width // 2 player_rect.y = screen_height // 2 # 设置玩家移动速度 player_speed = 5 # 设置跳跃参数 jump_height = 80 jump_speed = 5 jumping = False jump_count = 0 # 游戏循环 running = True while running: # 处理事件 for event in pygame.event.get(): if event.type == pygame.QUIT: running = False # 处理玩家输入 keys = pygame.key.get_pressed() if keys[pygame.K_LEFT]: player_rect.x -= player_speed if keys[pygame.K_RIGHT]: player_rect.x += player_speed if keys[pygame.K_SPACE] and not jumping: jumping = True # 处理跳跃 if jumping: if jump_count >= jump_height: jumping = False jump_count = 0 else: player_rect.y -= jump_speed jump_count += jump_speed # 绘制游戏场景 screen.fill((255, 255, 255)) screen.blit(player_image, player_rect) pygame.display.flip() # 退出Pygame pygame.quit() ``` 这个脚本使用Pygame库创建了一个游戏窗口,并加载了一个玩家图像。玩家可以使用左右箭头控制移动,使用空格键进行跳跃。跳跃高度和速度可以通过调整脚本中的参数来更改。游戏循环处理事件和玩家输入,并在屏幕上绘制游戏场景。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值