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

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

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

    24-05-2023 - Full Script rework

    Script was made with AHK version: v1.1.34.04 -64 bit unicode

    Simple ahk script for opening stacked decks with 2 different modes:

    Ground drop-mode
    Mouse over a stack(10 cards) of stacked decks and right click to drop the card to the ground or hold to drop up to 10 cards.
    Around 50 cards can be dropped on the same spot before you have to change spot by moving.

    Inventory-mode
    Hold right click to open and send the stacked deck back to the stash.
    This is useful if you want to save all cards and don't want to move around to make space for more cards to drop.



    Preview:
    Ground drop mode:
    unstacked_deck.gif
    Inventory mode:
    PathOfExile_xdch6Scvgj.gif


    Changelog

    24-05-2023
    -Full script rework
    -Added Inventory-based opening method

    07-02-2022
    -optimized code




    Code:
    ; ##################
    ; # Unstacked deck #
    ; ##################
    #IfWinActive Path of Exile
    #NoEnv
    #SingleInstance Force
    
    #If GetKeyState("CapsLock", "T")
    SetMouseDelay 40
    SetWorkingDir %A_ScriptDir%
    SendMode Input
    
    ConfigINI=%A_scriptdir%\Config.ini
    ifnotexist,%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
    }
    
    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, Config.ini, 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, Config.ini, 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
    Copy above script and put in a NEW folder to not mess up the config generation for the script.
    or download the attached archive here: 24-05-2023 - unstacked_deck.zip


    Hokeys:

    Note: Caps lock needs to be ON for the script to work

    shift+f9 (only need to be set once during your first run PER Mode)
    For Ground mode: Mouse-over somewhere outside of your inventory and press shift+f9 , this will set the x/y axel to dump your stacked decks.
    For Inventory mode: Mouse-over an empty inventory slot and press shift+f9, this will set the slot where you want to drop your opened stack deck and where to click to send it back to the stash.

    Ctrl+Shift+M
    Will swap between Ground-mode and Inventory-mode.

    Right click
    For Ground mode: right click(hold)= Will open 10 stacked decks if you hold r down, a single click will open one stacked deck.
    For Inventory mode: Will continue to open stacked decks and send them back to your stash as long as you are holding right click, a single click will open one stacked deck.
    Last edited by xerance; 05-24-2023 at 06:40 PM.

    [AHK] Simple script for opening Stacked decks - hold right click to open
  2. Thanks dodger, camapxam, Winterweave, BombokaLusitana, Dant121 (5 members gave Thanks to xerance for this useful post)
  3. #2
    Conservative's Avatar Member Curb Creature CoreCoins Purchaser
    Reputation
    1
    Join Date
    Aug 2018
    Posts
    9
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for this release.
    This is honestly a lot more efficient than the macro recorder that I use and a lot quicker too.

  4. #3
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Conservative View Post
    Thank you for this release.
    This is honestly a lot more efficient than the macro recorder that I use and a lot quicker too.
    you are welcome! got tired from opening 2k stacked deck by hand :P

  5. #4
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Does anyone get any problem with click and HOLD?

  6. #5
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by camapxam View Post
    Does anyone get any problem with click and HOLD?
    what problem are you encountering?

  7. #6
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xerance View Post
    what problem are you encountering?
    well, i hold rm, but it only do open the 1st deck, drop it, then mouse went back to the deck, and stuck there, nothing happen, not openning the 2nd deck, not going out the inven to drop the deck too.

  8. #7
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by camapxam View Post
    well, i hold rm, but it only do open the 1st deck, drop it, then mouse went back to the deck, and stuck there, nothing happen, not openning the 2nd deck, not going out the inven to drop the deck too.
    sounds weird af?

    test.zip

    test if any of these work.

  9. #8
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by camapxam View Post
    well, i hold rm, but it only do open the 1st deck, drop it, then mouse went back to the deck, and stuck there, nothing happen, not openning the 2nd deck, not going out the inven to drop the deck too.
    updated code in OP, see if this one still have the same issue.

  10. #9
    miracle1's Avatar Active Member
    Reputation
    37
    Join Date
    Jun 2014
    Posts
    261
    Thanks G/R
    107/30
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Remember to bind blade vortex on left mouse click so your character will not move if it missclick

  11. #10
    threetwoone's Avatar Banned
    Reputation
    1
    Join Date
    Jun 2022
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for sharing!:竖起大拇指:

  12. #11
    Alturnatahcount's Avatar Member
    Reputation
    1
    Join Date
    May 2023
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if simply outdated, but the script doesn't work with v1 or v2.

    V1 Error - Error at line 2, line test $RButton
    Error this does not contain a recognised action

    V2 error this line does not contain a recognised action
    test #IfWinActive Path Of Exile
    Line 6

  13. #12
    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 Alturnatahcount View Post
    Not sure if simply outdated, but the script doesn't work with v1 or v2.

    V1 Error - Error at line 2, line test $RButton
    Error this does not contain a recognised action

    V2 error this line does not contain a recognised action
    test #IfWinActive Path Of Exile
    Line 6
    I'm also curious about this and wondering if it's out of date, I would really like a working script for opening decks....

  14. #13
    miracle1's Avatar Active Member
    Reputation
    37
    Join Date
    Jun 2014
    Posts
    261
    Thanks G/R
    107/30
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Btw. you can drop around 50decks under your legs(i mean without moving). Depends on your position tho, avoid obstacles etc.

  15. #14
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Alturnatahcount View Post
    Not sure if simply outdated, but the script doesn't work with v1 or v2.

    V1 Error - Error at line 2, line test $RButton
    Error this does not contain a recognised action

    V2 error this line does not contain a recognised action
    test #If WinActive Path Of Exile
    Line 6
    Originally Posted by Storm_Quake View Post
    I'm also curious about this and wondering if it's out of date, I would really like a working script for opening decks....


    EDIT:

    24-05-2023 - Full Script rework

    See mainpost
    Last edited by xerance; 05-24-2023 at 04:29 PM.

  16. #15
    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
    EDIT:

    24-05-2023 - Full Script rework

    See mainpost
    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!!
    Last edited by Storm_Quake; 05-24-2023 at 06:19 PM.

Page 1 of 2 12 LastLast

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 07:45 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