Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance, Force
- SendMode Input
- SetWorkingDir, %A_ScriptDir%
- #IfWinActive Path of Exile
- Toast(txt:="", delay:=-2000)
- {
- ToolTip, %txt%
- SetTimer, RemoveToolTip, %delay%
- }
- RemoveToolTip:
- ToolTip
- return
- ; alt+c 显示坐标位置
- !c::
- MouseGetPos, x, y
- PixelGetColor gColor, x, y
- ToolTip,(%x%`, %y%)
- setTimer,RemoveToolTip, -3000
- return
- getCardPosition(baseX, baseY, btnX, btnY, card:=1, clickCount:=0, offsetX:=50,offsetY:=50, boxOffset:=200)
- {
- Random, VariableDelay, 300, 500
- moveX := (baseX + ((clickCount // 5) * offsetX))
- moveY := baseY + (offsetY * Mod(clickCount,5))
- ; Toast(baseX "," baseY)
- MouseMove, moveX, moveY, 100
- Random, dely, 30, 80
- sleep, dely
- Send, ^{Click}
- sleep, 100
- MouseMove, btnX, btnY, 10
- sleep, 100
- Send, {Click}
- sleep, 100
- MouseMove, btnX, btnY - boxOffset, 10
- sleep, 100
- Send, ^{Click}
- clickCount := clickCount + 1
- sleep, VariableDelay
- if (clickCount < card) {
- getCardPosition(baseX, baseY, btnX, btnY, card, clickCount, offsetX:=50,offsetY:=50, boxOffset)
- }
- return
- }
- ; 使用
- ; 打开兑换命运卡的界面,卡取出来放背包里
- ; (兑换的东西占的格子多的话一次不要开太多组)
- ; F4开始兑换
- ; F9退出脚本
- ; 没用过别的分辨率,我的是1920*1080窗口模式下的
- ; alt+c可以看到鼠标位置的坐标
- ; 修改文件后记得重新加载
- f4::
- ; 兑换的卡组数量(不包括拓展背包,最多60)
- card := 5
- ; 第一组卡坐标 (背包第一件,不包括拓展背包)
- cardx := 1345
- cardy := 600
- ; 兑换命运卡的交易按钮坐标
- btnX := 658
- btnY := 720
- ; 每个格子的偏移量(分辨率不一样可能需要自己手动取坐标算一下)
- offsetX := 50
- offsetY := 50
- ; 按钮到兑换格子的距离(大致就行了)
- boxOffset := 200
- getCardPosition(cardx, cardy, btnX, btnY, card, 0, offsetX, offsetY, boxOffset)
- return
- F9::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement