Skip to content

Instantly share code, notes, and snippets.

@kurobeniq
Last active December 23, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurobeniq/6583246 to your computer and use it in GitHub Desktop.
Save kurobeniq/6583246 to your computer and use it in GitHub Desktop.
;使い方
;Win + s でクッキー自動クリック開始
;Win + z でストップ
CoordMode, Mouse, Relative ;マウスの座標をアクティブウィンドウの左上基準にする
;基本設定
global BIG_COOKIE_X = 300 ;クッキーのx座標
global BIG_COOKIE_Y = 500 ;クッキーのy座標
global STORE_X = 1780 ;storeのx座標
global STORE_Y = 834 ;storeのy座標
global STORE_Y_WIDTH = 65 ;storeのy間隔
global STORE_NUM = 10 ;storeの数
global EXE_STORE_CLICK_WIDTH = 100 ;クッキーをn回クリックするとstoreを巡回するn
;storeを巡回する関数
store_click(){
buf_y = %STORE_Y%
loop, %STORE_NUM%
{
click %STORE_X%, %buf_y%
buf_y = % buf_y - STORE_Y_WIDTH
}
}
#s::
loop {
click %BIG_COOKIE_X%, %BIG_COOKIE_Y% ,%EXE_STORE_CLICK_WIDTH%
store_click()
}
#z::
Reload
return
@kurobeniq
Copy link
Author

storeを下から順にクリックするように修正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment