Announcement

Collapse
No announcement yet.

WORKING AHK Script to bind potions to keys - PC game play

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • WORKING AHK Script to bind potions to keys - PC game play

    This is very easy.. download auto hot key and copy past this into a script from: https://autohotkey.com/

    Site is secure and safe, only download from trusted sites.

    The X and Y locations here are Axis locations on your screen. 720x1080 as an example.

    When this script runs and you press F2 or
    F3 the mouse will move to the specificed location of X,Y, and click once, then return your mouse to it's location before you pressed it.
    This is the code

    Originally posted by adjacentengels View Post
    After adding in header lines recommended on some of the scripts I checked, I got this working to have F2 and F3 functions in one script.

    Originally posted by adjacentengels View Post
    Code:
    x_p := 999
    y_p := 999
    
    x_a := 999
    y_a := 999
    
    f2::
    {
    mousegetpos, start_x, start_y
    mouseclick, left, %x_p%, %y_p%, 1, 0
    mousemove, %start_x%, %start_y%, 0
    }
    return
    
    f3::
    {
    mousegetpos, start_x, start_y
    mouseclick, left, %x_a%, %y_a%, 1, 0
    mousemove, %start_x%, %start_y%, 0
    }
    return


    COPY AND PASTE ONLY THE BOLDED SECTION ABOVE - NOTHING ELSEAND ONLY CHANGE F2, F3, X, AND Y LOCATIONS BASED ON YOUR KEY PREFERENCE AND LOCATION ON YOUR PC. (note: you are changing the 999 NOT the Xand Y)

    If you need additional help installing AHK and editing the script please use the AHK forums and the manual (it's not super user friendly but it's VERY easy to set this up. If you're trying your best and you can't figure it out DM my inbox and I will help you.
    Last edited by strut v 900; 01-17-2018, 11:39 AM.
    KIFE NUJE WAFO 1716

    CLICK >>>
    HERE<<< FOR YOUTUBE CHANNEL FOR ETERNIUM PLAY/GUIDES


  • #2
    Great contribution.

    Comment


    • #3
      After adding in header lines recommended on some of the scripts I checked, I got this working to have F2 and F3 functions in one script.

      Code:
      x_p :=  30
      y_p := 800
      
      x_a := 110
      y_a := 800
      
      f2::
      {
         mousegetpos, start_x, start_y
         mouseclick, left, %x_p%, %y_p%, 1, 0
         mousemove, %start_x%, %start_y%, 0
      }
      return
      
      f3::
      {
         mousegetpos, start_x, start_y
         mouseclick, left, %x_a%, %y_a%, 1, 0
         mousemove, %start_x%, %start_y%, 0
      }
      return
      Last edited by adjacentengels; 01-16-2018, 10:19 PM.

      Comment


      • #4
        Travis, I vote that this be moved to the guides section, there have been repeated posts asking for it. Thanks.
        Eternium Guides:
        Eternium Files: (You don't need Dropbox, select "Direct Download" to download)
        • Character Attributes (28 Jan 18 - BH from 1.2.75 have 5% base Parry Chance)
        • Champion Points Distribution "helper" (14 Feb 18 - DPS/Damage with "New" allocations)
        • Jewelry Crafting/Fusing (22 Mar 18 - Added link to Coda's "How to use" video)
        • and others...

        Comment


        • #5
          Depending on your AHK SendMode settings (and, by my curiosity, I'd like to know what others use - I'm with SendMode Event), you may want to encapsulate the click/move back with BlockInput On / BlockInput Off instructions. This will prevent your normal mouse activity from disturbing/conflicting the AHK activity.

          I also use:
          CoordMode, Mouse, Window

          So that the potion and apple coordinates don't change when/if I move the game window around (assuming you can play it in windowed mode).

          Comment


          • #6
            Rytrik you were asking about this.

            Comment


            • #7
              Thanks adjacentengels

              I'll get this going tonight after work

              Comment


              • #8
                Originally posted by Rytrik View Post
                Thanks adjacentengels

                I'll get this going tonight after work
                found it/
                KIFE NUJE WAFO 1716

                CLICK >>>
                HERE<<< FOR YOUTUBE CHANNEL FOR ETERNIUM PLAY/GUIDES

                Comment


                • #9
                  Originally posted by strut v 900 View Post

                  found it/
                  Still not working properly. I'll email you.

                  Comment


                  • #10
                    Originally posted by Rytrik View Post

                    Still not working properly. I'll email you.
                    What's your problem? Feel free to PM me also.

                    Comment


                    • #11
                      What does it exactly do? Newbie here lvl 7

                      Comment


                      • #12
                        It creates a keyboard shortcut to click on the potion or apple icons instead of needing to move your mouse and click.

                        Comment

                        Working...
                        X