板 1- 前 次 新 レス
スクリプト投稿スレ
[106]unnamed.ahk:05/05/10 15:46 ID:???
ゲームパッドでマウス操作をするスクリプトです
アナログジョイスティック対応
settimer,getkey,10
return
getkey:
getkeystate,x,JoyX
getkeystate,y,JoyY
x-=50
y-=50
;======遊びの設定。勝手にカーソルが動くのを防止(アナログ用)
if y*y<2
y=0
if x*x<2
x=0
;======カーソルの移動スピード。大きくすると遅くなります
x:=x/5
y:=y/5
mousemove,%x%,%y%,0, R
return
joy1::
send,{Lbutton down}
keywait,joy1
send,{Lbutton up}
return
joy2::
send,{Rbutton down}
keywait,joy2
send,{Rbutton up}
return
esc::exitapp
前 次