Rover12421's Blog

The End.

手机138主题自动保存脚本(AHK)

因为需要下载 手机138 这个站的手机主题,所以用AHK写了个自动保存的脚本,是用于1024*768,Chrome浏览器。因为是取坐标点的,可以通过修改坐标点来达到通用。不是太实用,但还是可以减少一部分劳动力的。

   1: ;手机138自动保存脚本
   2: ;</span>Ctrl+F1运行一次脚本
   3: ^F1::
   4: ;移动到主题名的最见面
   5: MouseMove, 300, 309
   6: Sleep, 100
   7: ;按下鼠标左键,并移动到主题名之后
   8: Click down
   9: MouseMove, 840, 309
  10: Sleep, 100
  11: ;弹起鼠标左键
  12: Click up
  13: Sleep, 100
  14: ;</span>用Ctrl+c 复制主题名
  15: Send, {CTRLDOWN}c{CTRLUP}
  16: Sleep, 100
  17: ;</span>按PageDown(PgDn)键下翻一页
  18: Send, {PGDN}
  19: Sleep, 100
  20:  
  21: ;移动到图片上,点右键
  22: MouseMove, 340, 160
  23: MouseClick, right,  340, 160
  24: Sleep, 100
  25: ;右键菜单v为保存。在弹出右键菜单后点击v键保存
  26: Send, v
  27: Sleep, 1000
  28: ;</span>保存的文件名为“主题名+扩展名”
  29: Send, {LEFT}{LEFT}{LEFT}{LEFT}
  30: Sleep, 100
  31: Send, {BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}
  32: Sleep, 100
  33: Send, {BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}
  34: Sleep, 100
  35: Send, {CTRLDOWN}v{CTRLUP}
  36: Sleep, 500
  37: Send, {ENTER}
  38: Sleep, 2000
  39:  
  40: ;移动到下载链接上,单击
  41: MouseMove, 566,254
  42: MouseClick, left,  566,254
  43: Sleep, 1000
  44: ;</span>保存的文件名为“主题名+扩展名”
  45: Send, {LEFT}{LEFT}{LEFT}{LEFT}
  46: Sleep, 100
  47: Send, {BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}
  48: Sleep, 100
  49: Send, {BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}
  50: Sleep, 100
  51: Send, {CTRLDOWN}v{CTRLUP}
  52: Sleep, 100
  53: Send, {ENTER}
  54: Sleep, 1500
  55: ;</span>Ctrl+w关闭主题页面
  56: Send, {CTRLDOWN}w{CTRLUP}
  57: Sleep, 1000
  58: return

Comments