diff --git a/CubeConverter.ahk b/CubeConverter.ahk index a06adfe..f8c188e 100644 --- a/CubeConverter.ahk +++ b/CubeConverter.ahk @@ -1,13 +1,13 @@ -;======================================================================== +;======================================================================== ; -; CubeConverter v1.4.0 +; CubeConverter v1.5.0 ; ; provides multiple usefull functions regarding cube item conversion ; ; Created by DaLeberkasPepi ; https://github.com/DaLeberkasPepi ; -; Last Update: 2019-05-29 13:00 GMT+2 +; Last Update: 2020-02-20 18:00 GMT+2 ; ;======================================================================== @@ -54,7 +54,7 @@ Loop,% #ctrls GUI, Add, Text, xm, Hotkey for Inventoryclear: If (A_Index == 4) - GUI, Add, Text, xm, Hotkey for DropItems: + GUI, Add, Text, xm, Hotkey for Reforge: IniRead, savedHK%A_Index%, Hotkeys.ini, Hotkeys, %A_Index%, %A_Space% ;Check for saved hotkeys in INI file. @@ -116,12 +116,12 @@ Label3: ;Hotkey for Inventoryclear } Return -Label4: ;Hotkey for DropItems +Label4: ;Hotkey for Reforge IfWinNotActive, CubeConverter Hotkeys { If (ItemSize == "") global ItemSize := 1 - KanaisCube("DropItems") + KanaisCube("Reforge") } Return @@ -171,14 +171,22 @@ KanaisCube(Setting) If (Setting == "Blacksmith") MouseClick, left, Salvage[1], Salvage[2] - If (Setting == "DropItems") + If (Setting == "Reforge") { - XDrop := TopLeftInv[1]-SlotX - YDrop := TopLeftInv[2] - send {i} - MouseGetPos x, y + MouseClick, right, TopLeftInv[1], TopLeftInv[2] + Sleep % Globalsleep + MouseClick, left, Fill[1], Fill[2] + Sleep % Globalsleep + MouseClick, left, Transmute[1], Transmute[2] + Sleep % Globalsleep + 125 + MouseClick, left, SwitchPagesRight[1], SwitchPagesRight[2] + Sleep % Globalsleep + MouseClick, left, SwitchPagesLeft[1], SwitchPagesLeft[2] + Sleep % Globalsleep + MouseMove, TopLeftInv[1], TopLeftInv[2] } - + + If (Setting != "Reforge"){ Loop { ++Cycles @@ -195,14 +203,6 @@ KanaisCube(Setting) MouseClick, left, XClick, YClick } - If (Setting == "DropItems") && (ColumnCount != 0) - { - MouseMove %XClick%, %YClick% - send {Lbutton down} - MouseMove %XDrop%, %YDrop% - send {Lbutton up} - } - If (ItemSize == 2) { ColumnCount++ @@ -241,11 +241,6 @@ KanaisCube(Setting) Send, {Enter} } } Until Cycles>=Columns*Rows/ItemSize - - If (Setting == "DropItems") - { - MouseMove %x%, %y% - send {i} } } @@ -376,4 +371,4 @@ HotkeyCtrlHasFocus() GuiControlGet, ctrl, FocusV ;Associated variable Return, ctrl } -} \ No newline at end of file +}