澄海3C改键工具v1.0

作者: sixtyone | 来源:发表于2016-08-01 19:09 被阅读359次

    /*

    关于作者

    QQ名:Sone

    QQ号:3300372390

    关于软件

    名字:澄海3C改键工具

    版本:V1.0

    时间:2016.08.01

    关于功能

    1、一键回城

    2、快速换传

    3、内置改建(非作者不可修改)

    */

    SetWorkingDir %A_ScriptDir%

    CoordMode,Mouse,window

    SetMouseDelay, -1

    SetFormat,Float,1

    #InstallKeybdHook

    #InstallMouseHook

    SetControlDelay, 0

    ;默认为黑暗

    ;血泉位置

    X1 :=A_ScreenWidth*171/1600 ;默认坐标x1

    Y1 :=A_ScreenHeight*684/900 ;默认坐标y1

    ;传送位置

    X2 :=A_ScreenWidth*683/1600 ;默认坐标x2

    Y2 :=A_ScreenHeight*641/900 ;默认坐标y2

    ;Gui

    Menu,Tray,NoStandard

    Menu,Tray,add,显示

    Menu,Tray,add,关于

    Menu,Tray,add,退出

    Menu,Tray,Default,显示

    Gui,Add,GroupBox,x10 y10 w120 h140 cred, ☆回城☆

    Gui, Add, Text, x20 y30 w30 h20,热键:

    Gui, Add, Edit, x60 y28 w55 h20 v热键 -Multi,*$wheelup

    Gui, Add, Text, x20 y60 w30 h20,时间:

    Gui, Add, Edit, x60 y58 w55 h20 v时间 -Multi,50

    Gui, Add, Text, x20 y90 w30 h20,  X :

    Gui, Add, Edit, x60 y88 w55 h20  v坐标1 -Multi,%x1%

    Gui, Add, Text, x20 y120 w30 h20,  Y :

    Gui, Add, Edit, x60 y118 w55 h20  v坐标2 -Multi,%y1%

    Gui,Add,GroupBox,x145 y10 w120 h140 cred, ☆换传☆

    Gui, Add, Text, x155 y30 h20,热键:  WheelDown

    Gui, Add, Text, x155 y60 h20,时间:    50

    Gui, Add, Text, x155 y90 w30 h20,  X :

    Gui, Add, Edit, x195 y88 w55 h20  v坐标3 -Multi,%x2%

    Gui, Add, Text, x155 y120 w30 h20,  Y :

    Gui, Add, Edit, x195 y118 w55 h20  v坐标4 -Multi,%y2%

    gui,add,Text,x9 y155 cgreen, 1、【回城】先用Alt + d 获取生命源泉处的坐标

    gui,add,Text,x9 y175 cgreen, 2、【换传】先用Alt + c 获取背包里传送的坐标

    ;Gui, Add, Button, x215 y190 w50 h25, 确定    ;若不自己输入坐标,此行可以不需要。

    goSub,Button确定   ;若上行需要,则此行删除

    Gui, Show, Center  , 澄海3C改键工具

    Return

    ;命令

    GuiClose:

    goSub,Button确定

    gui,Hide

    return

    显示:

    gui,Show

    return

    关于:

    tray关于=

    (

    关于作者

    QQ名:Sone

    QQ号:3300372390

    关于软件

    名字:澄海3C改键工具

    版本:V1.0

    时间:2016.08.01

    关于功能

    1、一键回城

    2、快速换传

    3、内置改键(非作者不可修改)

    )

    msgbox,%tray关于%

    return

    退出:

    ExitApp

    return

    Button确定:

    if  热键2

    Hotkey,%热键2%,off

    gui,Submit

    Hotkey, IfWinActive,Warcraft III

    Hotkey,%热键%,主体,on

    Hotkey,*$WheelDown,换传,on

    热键2 :=热键

    return

    主体:

    send,{Numpad7}

    BlockInput,on

    Click %坐标1%,%坐标2%

    sleep,%时间%

    Click

    BlockInput,off

    return

    换传:

    if A_Priorkey = WheelDown

    return

    MouseGetPos,ox,oy

    BlockInput,on

    MouseClick ,Right,%坐标3%, %坐标4%,,0

    Sleep,50

    MouseMove,%ox%,%oy%,0

    BlockInput,off

    return

    ;获取坐标

    !d::

    MouseGetPos,_xx,_yy

    GuiControl,Text,Edit3,%_xx%

    GuiControl,Text,Edit4,%_yy%

    goto,Button确定

    return

    !c::

    MouseGetPos,_xx1,_yy1

    GuiControl,Text,Edit5,%_xx1%

    GuiControl,Text,Edit6,%_yy1%

    goto,Button确定

    return

    ;改键块

    #Ifwinactive,Warcraft III

    F9::suspend,on

    F10::suspend,off

    F1::6

    6::F1

    F2::7

    F3::8

    F4::9

    `::Numpad7

    Space::Numpad4

    Capslock::Numpad5

    v::Numpad2

    q::v

    mbutton::h

    Lwin::return

    ~RButton & LCtrl::

    ^RButton::

    send,{RButton}

    send,+h

    return

    相关文章

      网友评论

        本文标题:澄海3C改键工具v1.0

        本文链接:https://www.haomeiwen.com/subject/qxffsttx.html