Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Autohotkey for tick by tick - help needed  (Read 2092 times)

Afghani84

  • Bay Watcher
    • View Profile
Autohotkey for tick by tick - help needed
« on: December 07, 2022, 06:46:51 pm »

Hey guys,

I am really sad that tick by tick time advancement seems to be removed in the steam version. So I am trying to create my own little "tick by tick" tool with autohotkey.
I never used it before, so I tried to keep it as simple as possible:

.::
send, {Space}
send, {Space}
return

As far as I understand, this should trigger a double press of Space every time I press "."
I tested it in my browser and it works there. It also works in DF options where I can input numbers, e.g. max frame rate.
But as soon as I am in the game itself, it does not procc. I even reconfigured the preset keybind for "." since I thought that this might block it. But no change so far...

Any autohotkey and/or DF specialists who know why this doesn't work out? Thanks!
Logged

lemonyscapegoat

  • Escaped Lunatic
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #1 on: December 07, 2022, 06:59:19 pm »

You can actually set it up in game!


record a macro by pressing <Ctrl+r><space><space><Ctrl+r>
press <Ctrl+s> to save it to file and give it a name then <enter>
you can play the macro by pressing <Ctrl+p>, or you can rebind play macro to <.> to recreate the old tick by tick shortcut!
Logged

Afghani84

  • Bay Watcher
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #2 on: December 08, 2022, 04:35:51 pm »

You can actually set it up in game!


record a macro by pressing <Ctrl+r><space><space><Ctrl+r>
press <Ctrl+s> to save it to file and give it a name then <enter>
you can play the macro by pressing <Ctrl+p>, or you can rebind play macro to <.> to recreate the old tick by tick shortcut!
Wow cool. Didn't know about this. Just made myself that macro and it works like a charm. Thanks!  :)
Logged

NordicNooob

  • Bay Watcher
  • *Not actually Nordic
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #3 on: December 13, 2022, 02:30:19 pm »

It's worth noting why your original program failed to work; the game doesn't seem to like rapid presses from external programs. I've been using an autoclicker as copium for not being able to select things quickly and it fails to send inputs as often as it should.
Logged

Drakonis

  • Bay Watcher
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #4 on: January 06, 2023, 07:57:09 am »

Hey guys, just pitching my 2c  here.
About the quick press thing: could it be related to that DF setting that controls the interval between keypresses?

Maybe also applying to the clicker?
Logged

TBTerra

  • Escaped Lunatic
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #5 on: January 06, 2023, 12:47:20 pm »

in V50.04 they added back the one tick advance. I think its on = by default (its next to pause/unpause in settings
Logged

Ziusudra

  • Bay Watcher
    • View Profile
Re: Autohotkey for tick by tick - help needed
« Reply #6 on: January 06, 2023, 01:41:25 pm »

in V50.04 they added back the one tick advance. I think its on = by default (its next to pause/unpause in settings
)

It's . like it was before.
Can advance the game one frame (default key = period)
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.