Oracle真难刷啊,,,

搬瓦工机场JMS

Oracle

  1. import mouse
  2. import keyboard
  3. import threading
  4. import time
  5. hit = False
  6. interval = 4
  7. button = ‘left’
  8. def click():
  9.     global hit
  10.     global clicker
  11.     global interval
  12.     while True:
  13.         time.sleep(interval)
  14.         if hit:
  15.             mouse.move(100, -100, absolute=False)
  16.             clicker()
  17.             time.sleep(0.5)
  18.             mouse.wheel(5)
  19.             time.sleep(0.5)
  20.             mouse.wheel(-5)
  21.             time.sleep(0.5)
  22.             mouse.move(-100, 100, absolute=False)
  23.             clicker()
  24. threading.Thread(target=click, args=(), daemon=True).start()
  25. def unHook():
  26.     global hit
  27.     print(‘unHooked.’)
  28.     hit = False
  29. def hook():
  30.     global hit
  31.     print(‘Hooked.’)
  32.     hit = True
  33. def main():
  34.     global interval
  35.     global button
  36.     global clicker
  37.     if button == ‘left’:
  38.         clicker = mouse.click
  39.     else:
  40.         clicker = mouse.right_click
  41.     keyboard.add_hotkey(‘f8’, hook, args=(), suppress=False,
  42.                         timeout=1, trigger_on_release=False)
  43.     keyboard.add_hotkey(‘f9’, unHook, args=(), suppress=False,
  44.                         timeout=1, trigger_on_release=False)
  45.     while True:
  46.         time.sleep(1)
  47. if __name__ == ‘__main__’:
  48.     main()

复制代码

打包好的EXE
在创建实例界面,把鼠标移到创建上,按F8启动,F9停止。
台湾网友:代码比较辣鸡,,, 凑合看
河南网友:怎么勇

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » Oracle真难刷啊,,,

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏