Eternium

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
    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


    • #3
      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


      • #4
        Nevermind...i figured this out but, is this cheating?

        how much rebinding keys can i do before dev's are mad?
        Last edited by Cultusfit; 05-10-2018, 10:23 AM.
        Lord Emperor of Bridge Navigational Systems Engineer for:
        Eternium 2: Rise of the bounty Hunters
        see post:https://forum.makingfun.com/forum/et...pply-for-a-job
        and https://forum.makingfun.com/forum/et...414-eternium-2

        Do NOT hire Xagan! He works for the enemy!!!

        Friend code: GEBA WABE WADI 4184

        If it's spelled bad. Horrible Grammar. Random words. No photo I was talking about. Or cut off mid sentence...
        It's my tablet, I'm sorry

        Comment


        • #5
          Originally posted by Cultusfit View Post
          Nevermind...i figured this out but, is this cheating?
          how much rebinding keys can i do before dev's are mad?
          It isn't cheating, if it was Travis wouldn't have made this a guide. You can't fully automate things.

          Comment


          • #6
            Cultusfit pressing one key to do three things probably isn't a good idea.

            Comment


            • #7
              Definitely not a good idea.

              Comment

              Working...
              X