[AHK] Simple script for opening Stacked decks - hold right click to open menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    152
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Storm_Quake View Post
    I'm not sure if I'm doing something wrong here or what but the script isn't functioning properly. I'm trying to do the inventory version but the script only moves 1 card before it gets stuck on a loop trying to move another card to the same slot, because it's not sending the first card back to the stash. I have caps lock turned on, followed the instructions for shift+F9 etc. Any ideas? Or could you possibly just make a quick "how to use" video by chance? Please and thank you very much for your time!!
    make a new ahk script and add this:

    Code:
    Msgbox % "v" A_AhkVersion " " (A_PtrSize = 4 ? 32 : 64) "-bit " (A_IsUnicode ? "Unicode" : "ANSI")
    What version are you running? I made the script using: v1.1.34.04 -64 bit unicode. Try swapping to that version and see if it's an AHK compatibility issue.

    What's your ingame latency? if it's to high try increasing the sleep in the script to higher.

    I have tested the script on 3 computers. works 100% on all 3 machines. if any of the above doesn't work I can't help you.

    If you are on ahk v2 you can try this:

    Code:
    ; ##################
    ; # Unstacked deck #
    ; ##################
    #If WinActive  Path of Exile
    #NoEnv 
    #SingleInstance  Force
    
    #If  GetKeyState("CapsLock", "T")
    SetMouseDelay 40
    SetWorkingDir % A_ScriptDir
    SendMode Input
    
    ConfigINI := A_ScriptDir "\Config.ini"
    if not FileExist(ConfigINI)
    {
        IniWrite 0, %ConfigINI%, InvPos, xx
        IniWrite 0, %ConfigINI%, InvPos, yy
        IniWrite 0, %ConfigINI%, GroundPos, xx
        IniWrite 0, %ConfigINI%, GroundPos, YY
        IniWrite 0, %ConfigINI%, Flag, ToggleFlag
    }
    
    IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    if (ToggleFlag = 0) 
    {
        TrayTip "Flag Status", "GroundDrop-mode is activated", 1
    }
    else
    {
        TrayTip "Flag Status", "Inventory-mode activated", 1
    }
    
    return
    
    $RButton::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
        if (ToggleFlag = 0) ; Drop on ground
        {
            MouseGetPos Rx, Ry
            BlockInput MouseMove
    
            Loop
            {
                if (!(GetKeyState("RButton", "P") && (A_Index < 11)))
                    break
    
                Click Right
                IniRead CordXX, %ConfigINI%, GroundPos, xx
                IniRead CordYY, %ConfigINI%, GroundPos, yy
    
                Sleep 100
                MouseMove CordXX, Ry, 0
                Sleep 100
                Click
                MouseMove Rx, Ry, 0
                Sleep 100
            }
    
            BlockInput MouseMoveOff
        }
        else ; Inventory mode
        {
            MouseGetPos Rx, Ry
            BlockInput MouseMove
    
            While GetKeyState("RButton", "P")
            {
                Click Right
                IniRead CordXX, %ConfigINI%, InvPos, xx
                IniRead CordYY, %ConfigINI%, InvPos, yy
    
                Sleep 50
                MouseMove CordXX, CordYY, 0
                Sleep 100
                Click
                Sleep 100
                Send ^{Click}
                Sleep 100
                MouseMove Rx, Ry, 0
                Sleep 50
            }
    
            BlockInput MouseMoveOff
        }
    	
    return
    
    +^m::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    
        if (ToggleFlag = 0)
        {
            ToggleFlag := 1
            TrayTip "Flag Status", "Inventory-mode activated", 1
        }
        else
        {
            ToggleFlag := 0
            TrayTip "Flag Status", "GroundDrop-mode is activated", 1
        }
    
        IniWrite %ToggleFlag%, %ConfigINI%, Flag, ToggleFlag
    	
    return
    
    +F9::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    
        if (ToggleFlag = 0) ; Drop on ground
        {
            MouseGetPos xx, yy
            IniWrite %xx%, %ConfigINI%, GroundPos, xx
            TrayTip "New Coordinations", "Saved Ground-drop Coordinations: X=" xx, 1
        }
        else
        {
            MouseGetPos xx, yy
            IniWrite %xx%, %ConfigINI%, InvPos, xx
            IniWrite %yy%, %ConfigINI%, InvPos, yy
            TrayTip "New Coordinations", "Saved Empty-inventory slot Coordinations: X=" xx " Y=" yy, 1
        }
    	
    return
    Last edited by xerance; 05-24-2023 at 06:38 PM.

    [AHK] Simple script for opening Stacked decks - hold right click to open
  2. #17
    Storm_Quake's Avatar Member
    Reputation
    1
    Join Date
    May 2023
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Storm_Quake View Post
    I'm not sure if I'm doing something wrong here or what but the script isn't functioning properly. I'm trying to do the inventory version but the script only moves 1 card before it gets stuck on a loop trying to move another card to the same slot, because it's not sending the first card back to the stash. I have caps lock turned on, followed the instructions for shift+F9 etc. Any ideas? Or could you possibly just make a quick "how to use" video by chance? Please and thank you very much for your time!!
    Okay so I figured out that you have to do "Control+Shift+M" to switch modes, but the inventory mode is running into the issue of only dropping one card in the div card tab. Then I have to manually switch back to the currency tab and I try to hold "R mouse button" and it still only moves 1 at a time, it's like it's getting lost trying to drop the card in the div card tab and switching back to the currency tab. Again, I'm a noob here and could be doing something completely wrong I just can't figure out what it is.

    Here's a video example.

    file:///C:/Users/maxbr/Videos/Path%2...7.41.21.14.mp4
    Last edited by Storm_Quake; 05-24-2023 at 06:43 PM.

  3. #18
    Storm_Quake's Avatar Member
    Reputation
    1
    Join Date
    May 2023
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xerance View Post
    make a new ahk script and add this:

    Code:
    Msgbox % "v" A_AhkVersion " " (A_PtrSize = 4 ? 32 : 64) "-bit " (A_IsUnicode ? "Unicode" : "ANSI")
    What version are you running? I made the script using: v1.1.34.04 -64 bit unicode. Try swapping to that version and see if it's an AHK compatibility issue.

    What's your ingame latency? if it's to high try increasing the sleep in the script to higher.

    I have tested the script on 3 computers. works 100% on all 3 machines. if any of the above doesn't work I can't help you.

    If you are on ahk v2 you can try this:

    Code:
    ; ##################
    ; # Unstacked deck #
    ; ##################
    #If WinActive  Path of Exile
    #NoEnv 
    #SingleInstance  Force
    
    #If  GetKeyState("CapsLock", "T")
    SetMouseDelay 40
    SetWorkingDir % A_ScriptDir
    SendMode Input
    
    ConfigINI := A_ScriptDir "\Config.ini"
    if not FileExist(ConfigINI)
    {
        IniWrite 0, %ConfigINI%, InvPos, xx
        IniWrite 0, %ConfigINI%, InvPos, yy
        IniWrite 0, %ConfigINI%, GroundPos, xx
        IniWrite 0, %ConfigINI%, GroundPos, YY
        IniWrite 0, %ConfigINI%, Flag, ToggleFlag
    }
    
    IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    if (ToggleFlag = 0) 
    {
        TrayTip "Flag Status", "GroundDrop-mode is activated", 1
    }
    else
    {
        TrayTip "Flag Status", "Inventory-mode activated", 1
    }
    
    return
    
    $RButton::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
        if (ToggleFlag = 0) ; Drop on ground
        {
            MouseGetPos Rx, Ry
            BlockInput MouseMove
    
            Loop
            {
                if (!(GetKeyState("RButton", "P") && (A_Index < 11)))
                    break
    
                Click Right
                IniRead CordXX, %ConfigINI%, GroundPos, xx
                IniRead CordYY, %ConfigINI%, GroundPos, yy
    
                Sleep 100
                MouseMove CordXX, Ry, 0
                Sleep 100
                Click
                MouseMove Rx, Ry, 0
                Sleep 100
            }
    
            BlockInput MouseMoveOff
        }
        else ; Inventory mode
        {
            MouseGetPos Rx, Ry
            BlockInput MouseMove
    
            While GetKeyState("RButton", "P")
            {
                Click Right
                IniRead CordXX, %ConfigINI%, InvPos, xx
                IniRead CordYY, %ConfigINI%, InvPos, yy
    
                Sleep 50
                MouseMove CordXX, CordYY, 0
                Sleep 100
                Click
                Sleep 100
                Send ^{Click}
                Sleep 100
                MouseMove Rx, Ry, 0
                Sleep 50
            }
    
            BlockInput MouseMoveOff
        }
    	
    return
    
    +^m::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    
        if (ToggleFlag = 0)
        {
            ToggleFlag := 1
            TrayTip "Flag Status", "Inventory-mode activated", 1
        }
        else
        {
            ToggleFlag := 0
            TrayTip "Flag Status", "GroundDrop-mode is activated", 1
        }
    
        IniWrite %ToggleFlag%, %ConfigINI%, Flag, ToggleFlag
    	
    return
    
    +F9::
        IniRead ToggleFlag, %ConfigINI%, Flag, ToggleFlag
    
        if (ToggleFlag = 0) ; Drop on ground
        {
            MouseGetPos xx, yy
            IniWrite %xx%, %ConfigINI%, GroundPos, xx
            TrayTip "New Coordinations", "Saved Ground-drop Coordinations: X=" xx, 1
        }
        else
        {
            MouseGetPos xx, yy
            IniWrite %xx%, %ConfigINI%, InvPos, xx
            IniWrite %yy%, %ConfigINI%, InvPos, yy
            TrayTip "New Coordinations", "Saved Empty-inventory slot Coordinations: X=" xx " Y=" yy, 1
        }
    	
    return
    The only 2 options I see for versions are 1.x being 1.1.36.02 and 2.x being 2.0.2.

    I tried the v2 code that you posted and it's still acting the same way. It just won't cycle from the div card tab after dropping the card, back to the currency tab to pick up a new card.

  4. #19
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    152
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Storm_Quake View Post
    The only 2 options I see for versions are 1.x being 1.1.36.02 and 2.x being 2.0.2.

    I tried the v2 code that you posted and it's still acting the same way. It just won't cycle from the div card tab after dropping the card, back to the currency tab to pick up a new card.
    It's not supposed to cycle between the tabs at all. You are probably running with affinity auto-navigate on Turn this off and it wont change the stash page when you drop cards in.

  5. #20
    Storm_Quake's Avatar Member
    Reputation
    1
    Join Date
    May 2023
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't understand. I watched the video clip you posted, how are your cards going to a random tab without affinity on? Because with it turned off, the first card doesn't go anywhere and it just gets stuck on a loop.

  6. #21
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    152
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Storm_Quake View Post
    I don't understand. I watched the video clip you posted, how are your cards going to a random tab without affinity on? Because with it turned off, the first card doesn't go anywhere and it just gets stuck on a loop.
    Card affinity should be on, auto-navigate shouldn't. https://puu.sh/JHyKM/746b3bf08c.mp4

    I can't make it more clear than this. ¯\_(ツ)_/¯

  7. #22
    Storm_Quake's Avatar Member
    Reputation
    1
    Join Date
    May 2023
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xerance View Post
    Card affinity should be on, auto-navigate shouldn't. https://puu.sh/JHyKM/746b3bf08c.mp4

    I can't make it more clear than this. ¯\_(ツ)_/¯
    Holy..... I'm such an idiot. I misread what you previously typed, that's my fault. Thank you so much for your time and help, everything's working as intended, it was just me being a noob.... I appreciate you a lot!

  8. #23
    crazybear001's Avatar Member
    Reputation
    1
    Join Date
    May 2022
    Posts
    8
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great job! , thank you very much. just a bit greedy, i wonder if you can do a similar AHK for quick trade cards from Lilly?

  9. #24
    harrisonhess's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    16
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello. Is there a way to make the Rbutton Toggleable rather than hold?

  10. #25
    verystun101's Avatar Member
    Reputation
    1
    Join Date
    Jul 2023
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did you solve it? I got same problem can u help ?

  11. #26
    verystun101's Avatar Member
    Reputation
    1
    Join Date
    Jul 2023
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Storm_Quake View Post
    Holy..... I'm such an idiot. I misread what you previously typed, that's my fault. Thank you so much for your time and help, everything's working as intended, it was just me being a noob.... I appreciate you a lot!
    did you solve it? I got same problem can u help ?

  12. #27
    verystun101's Avatar Member
    Reputation
    1
    Join Date
    Jul 2023
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xerance View Post
    Card affinity should be on, auto-navigate shouldn't. https://puu.sh/JHyKM/746b3bf08c.mp4

    I can't make it more clear than this. ¯\_(ツ)_/¯
    ground mode working but inventory mod is not with me.
    Card affinity is on, affinity is on, auto-navigate is not,
    when I Rm the mouse send one card to my location i choose, then it back to the decks without send the last card to inventory, so it stuck here

  13. #28
    clawface's Avatar Member
    Reputation
    6
    Join Date
    Jun 2008
    Posts
    51
    Thanks G/R
    25/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of topic but you guys might know, is there something like this for auto identifying items?

  14. #29
    DunhillSlims's Avatar Member
    Reputation
    1
    Join Date
    Apr 2023
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx for script!
    Last edited by DunhillSlims; 08-29-2023 at 01:32 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Release] [AHK] Simple script for expedition: Tujen Haggle - quick buy/reroll with hotkey
    By xerance in forum PoE Bots and Programs
    Replies: 77
    Last Post: 09-16-2023, 07:16 AM
  2. Created simple script for pindle farming, no autoloot though
    By shnwj in forum Diablo 2 Resurrected Bots and Programs
    Replies: 1
    Last Post: 10-06-2021, 10:47 PM
  3. [Bot] WTB AHK custom Script for Elite dangerous! [Serious Only]
    By BAKERKUSH in forum MMO Exploits|Hacks
    Replies: 0
    Last Post: 08-17-2018, 10:39 AM
  4. Replies: 0
    Last Post: 03-28-2014, 08:48 PM
  5. Need a realllllly simple script for AUTO IT!
    By unfunkable in forum Diablo 3 Bots Questions & Requests
    Replies: 3
    Last Post: 06-06-2012, 07:35 AM
All times are GMT -5. The time now is 04:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search