A self-target action for Controller

Thanks so much for the suggestion, tqFan! I really appreciate it. :smiley: I’ve never used AHK but when I have a bit of time I’ll definitely give it a try. Since you asked, my display is 1920 x 1080. I don’t think the need to move the analog stick slightly will be a big deal at all – much better than the current situation, for sure.

Update:

Now when I now your resolution I compiled

center := 960   ;for 1920 x 1080

1::
    if (center > 960)
        center := 960
    else {
        center := 961
    }  

    MouseMove, center, 540
    Sleep, 10
    Send {Click, right}
Return


You don’t even need to install AutoHotkey to run it (it’s only needed for compilation). You can see it running outside of Grim Dawn (when you press ‘1’ your mouse cursor will move to the center (and 1 pixel to the left and to the right back and forth ) and right click. In the game you need to bind some button to 1 in Controller Configuration and bind Right Click to the Seal in Ui skill toolbar. Tell me if it doesn’t work for some reason

How to bind ‘1’ to controller key


[the screen above is from UI Controls by mistake, you need to change Game Controls obviously]

The Seal binded to Right Click

A video showing how it plays (casting The Seal on top of yourself while playing controller)

Update:

Here’s a version that works for every resolution (reads resolution dynamically):

shift := 0
1::
    WinGetActiveStats, Title, Width, Height, X, Y
    MouseMove, shift + Width/2, Height/2
    shift := shift ^ 1
    Sleep, 10
    Send {Click, right}
Return

One more thing - don’t bind ‘1’ to Square (A in Xbox controllers) since in my case it opens Game Menu if you tap the button > 1 times for some reason. others buttons don’t do this.

My next toon is going to be ranged lightning Vindicator so I’ll probably use this script as well.

1 Like

Hi, I know this is quite an old post but I want you to know that because of this, I am now able to play a vindicator with a controller (due to my hand injury). I am computer illiterate and have no idea how to write all of this so this is a god send. Thank you so much!

1 Like

Nice to hear someone has found it useful.
FYI, there’s also a program (but it’s only for Mouse and Keyboard)


which can be used to vastly reduced the number buttons used.
I play piano builds with 3 buttons, have many skills on one button, have skills like Word of Renewal autocasted. Unfortunately not for controller, seems to be like it would require a lot of time to achieved that.

The other thing I could make for a controller that would kinda work is i.e. casting all your buffs at the start of the game with one button. You press a button on a controller which has for example 4 bound to it which triggers casting various buffs from the second quickbar (I have this feature in GDAutocaster but not released yet):

[combos]
combo1=h:t,1,2,3,t

If you press h, it instead presses T, 1, 2, 3,T with a delay between them, wherre T is for switching to another quickbar. This way you can cast all 3 buffs from the second quickbar with one press of a button.

I used these combos to cast i.e. Inquisitor Seal, Solael’s Flame and Word of Pain using one button with my chaos Inqusitor because they can and even should be cast at the same time every 8 seconds or when you approach a new group of enemies.

Other stuff from GDAutocaster like autocasting wouldn’t work with a controller sadly because they demand constant M&K input mode not controller input mode.

Do you mind posting a step-by-step on how to get this to work on steam controller?

If I were to change toons to something that does not need this type of casting would I need to switch steam configurations? I frequently change toons since although I’m looking at playing a deceiver build I want to go back to my warlord from time to time to farm items.

Hmmm… what do you want precisely? :slight_smile: Not sure. Self-targeted seal?
Btw I recommend checking the following guide [what you want is NOT in this guide]


Also please next time reply to me directly (not a standard reply in a topic) because then I get the mail notification.

Sorry I wasn’t more specific. I meant for self-targeting inquisitor seal

1 Like

Update:

Here’s a step by step


Download a newer version from here

It might not be exactly center because head is in the center not feet :rage:
but maybe first test it before we correct it. We can also change it so that it doesn’t work when not in-game so that it can be running permanently on the computer. But first maybe test it. You need to move your analog stick after casting it I think to go back to controller mode.

step by step would be

  1. Bind “1” to controller button as shown in the firsrt picture

  2. Bind Inquisitor Seal to Right Click in Game on the Hotbar as shown in the second picture

now to run it

  1. run the exe

Now in-game

  • pressing a controller button should press 1

  • this in turn is read by the program/script which moves cursor and click Right Mouse Button

  • this casts Inquisitor Seal in the center where cursor now is

  • you now need to move analog stick or something like that to go back to controller mode

This is what I see when I get to the game controls:


How do I get to legacy keys?

nevermind I feel derpy, I was using my controller to set it up but I should be using mouse. So I can bind it to anything? I don’t want to use X since I use that a lot on other builds

You can use a controller to set it up in Big Picture. I don’t use mouse. Just try changing a button, enter it’s menu and you’ll find legacy keys there


I am trying to download the exe from any of the links but they all say you deleted the file.Could you please reupload it?

Links from here work now: [Tool] Inquisitor Seal cast centrally for controllers in Big Picture

Write if something doesn’t work or you’d like to change something about it.

Uhm, weirdly it is not working for me. I am using a nacon controller, i did what the guide on how to use this say but it just wont work apparently.

Dunno, first maybe you could test if you set up Big Picture correctly.
For this you could bind H temporarily (or whatever you used in Big Picture) to some Grim Dawn skill in keyboard bindings.
And then check if you pressing Controller Button activate this skill which would prove it also presses H

I’m sure i have my controller binded through bigpicture,otherwise i wouldnt be able to use the custom controls i am using for controller. The problem is in fact that if i bind 1 to any of the controller buttons or any other keyboard control, it just doesn’t work, which is weird because keyboard controls does work when i try them on my keyboard, they just doesn’t if i bind them to the controller. I dunno what is wrong with it in all sincerity.

so I’m testing it right now and it doesn’t work for me either :laughing:
I mean 1 on R1 doesn’t seem to cast a skill from hotbar after moving a cursor :thinking: (which switches to mouse mode)
but no worry, I should be able to get to the bottom of this

Hey, I managed to do it! Here in the video

  • I press R1 on my Gamepad

  • AutoHotkey detects it, moves the cursor a bit

  • and presses S which I have bound to Oleron’s Rage

AutoHotkey detects that R1 (Joy6) and does some stuff.

Now if you want me to make some initial version of Centered Seal for you,
(or maybe configure the next version of Centered Seal) you need to run this program
JoyDetect.zip (638.3 KB) (it’s from AutoHotkey official site to see which number X (for JoyX in the code below) corresponds to you gamepad button)

image
(the program displays this window near your cursor)

shift := 1
delay := 40
vertical_pixel_shift := -20
key_hotbar := "s"

Joy6::
    WinGetActiveStats, Title, Width, Height, X, Y
    MouseMove, shift + Width/2, Height/2 - vertical_pixel_shift, 0
    shift := shift ^ 1
    Sleep, %delay%
    Send {%key_hotbar%} 
Return

(the script for doing what’s in the video, I’ll make Centered Seal program from this)

I think I’ll try adding this feature to GDAutocaster [Tool] GDAutocaster - play 🎹 builds with ease, autocasting of skills, combos, faster / automatic camera, autohiding of items, centered Inquisitor Seal and more for all games!