The Witcher 3: Wild Hunt

The Witcher 3: Wild Hunt

View Stats:
CAPA Jun 4, 2015 @ 12:00pm
Is there a way to bind a console command to a key?
Well.. the title is the question.

Using Debug console Mod http://www.nexusmods.com/witcher3/mods/28/? , its possible to open console and issue some console commands like:
hidehud, showhud, testpause, testunpause... and use F1 to enable free camera.

Unfortunately, there isn't a hotkey to the other commands.

I want to be able to capture some action screenshots more easily, so it would be nice it i could pause the game with a hotkey and then use the free camera to take some really nice shots.

Btw, I know that I can pause the game using Cheat Engine and a script that has a hotkey to pause(F3) but sometimes it bugs since it conflicts with the natural Pause(ESC) of the game and I have to restart the game.

My hope was to bind and use console commands pushing a key. (Like we can do in Counter-Strike)

So I could bind Numpad0 to hidehud, Numpad1 to showhud, F3 to testpause, F4 testunpause

Any ideias?
Last edited by CAPA; Jun 4, 2015 @ 12:01pm
< >
Showing 1-11 of 11 comments
ThisIsDex Jun 10, 2015 @ 2:06am 
I'd like to know the answer to that too
You'd have to write a script for it, like in AutoHotkey. But you'd need to be able to sequence it, with tild "~" preceding the text commands... not sure if you can copy-paste to the console either.
CAPA Jun 10, 2015 @ 3:08pm 
Originally posted by You Kissed a Boy and Liked It:
You'd have to write a script for it, like in AutoHotkey. But you'd need to be able to sequence it, with tild "~" preceding the text commands... not sure if you can copy-paste to the console either.
Yeah i though of AutoHotKey!

But maybe it wouldn't be fast enough to pause in the right time for example
Spazfrag Jun 10, 2015 @ 3:18pm 
Not within the game. I use my logitech keyboard to bind macros. Takes a while to set up, but works perfectly.
CAPA Jun 10, 2015 @ 3:20pm 
Originally posted by Spazfrag:
Not within the game. I use my logitech keyboard to bind macros. Takes a while to set up, but works perfectly.
Instantly? Like you don't see the debug comming down?
Sentient_Toaster Jun 10, 2015 @ 3:28pm 
A lot of 'gaming'-oriented mice have software with similar scripting capabilities, being able to bind scripts to e.g. a button being pressed, a button being released, or the like.

The speed with these sorts of tools to be ridiculously high unless you manually specify delays between events in the script -- you might need to if you're playing a game where initiating a second action too early during another interrupts and negates the intended outcome of the earlier action; or if the engine is rigged to ignore rather than buffer overly frequent input.
Spazfrag Jun 10, 2015 @ 3:53pm 
Originally posted by CAPA.wtt:
Originally posted by Spazfrag:
Not within the game. I use my logitech keyboard to bind macros. Takes a while to set up, but works perfectly.
Instantly? Like you don't see the debug comming down?

Not instant. But within a second. It records exactly what you type on the keyboard, then you adjust the recording between keypresses to milliseconds (to a speed that wouldn't be humanly possible). It's one second at max.

You do see the debug come down. But it's like some blinding fast invisible force is doing it for you.
CAPA Jun 10, 2015 @ 4:42pm 
Originally posted by Spazfrag:
Originally posted by CAPA.wtt:
Instantly? Like you don't see the debug comming down?

Not instant. But within a second. It records exactly what you type on the keyboard, then you adjust the recording between keypresses to milliseconds (to a speed that wouldn't be humanly possible). It's one second at max.

You do see the debug come down. But it's like some blinding fast invisible force is doing it for you.
I think i will try using the AutoHotKey and see how fast it issues the commands

Thank you for your input
Last edited by CAPA; Jun 10, 2015 @ 4:42pm
CAPA Jun 10, 2015 @ 11:04pm 
Using the sugestion of using AutoHotKey, with a little research and a bit of trials and errors. I came up with a little nice script for AHK. (Below in the post)

It issues the comands so fast that the console not even blinks.

There are some "problems" though(not because of AHK):

1- When the Freecam(F1 from the debug console mod) is ON, it uses WASD to navigate so it locks the keys and you cant write using those letters... so the commands are issued wrong, like "testpuse" when it should be "testpause".

2- I use the command dlgshow/dlghide to hide and show the HUD. When the HUD is OFF you can't do anything, move, attack and so on... nothing.

So with the 2 observations above I recommend that you have to use in the order:
To take screenshots

Pause
Hide Hud
Freecam

to go back to play

Deactivate the Freecam
Show Hud
Unpause


The script below you just need to copy/paste in a txt and save as .ahk:
I used Numpad 0 to pause/unpause and Numpad1 to hide/show hud
Feel free to change to whatever key you want but leave the "$" there, else it won't work.

Edit: Steam won't let me post the script... it says "Sorry, some kind of error has occurred: There was an error communicating with the network. Please try again later."

I will find some way to share tomorrow :)
Last edited by CAPA; Jun 10, 2015 @ 11:06pm
thegreatdivorce Oct 7, 2015 @ 7:32pm 
Were you able to find a way to post the script to a github or something? I'd love to have it, would make taking action screenshots 100x easier!

Originally posted by CAPA.wtt:
Using the sugestion of using AutoHotKey, with a little research and a bit of trials and errors. I came up with a little nice script for AHK. (Below in the post)

It issues the comands so fast that the console not even blinks.

There are some "problems" though(not because of AHK):

1- When the Freecam(F1 from the debug console mod) is ON, it uses WASD to navigate so it locks the keys and you cant write using those letters... so the commands are issued wrong, like "testpuse" when it should be "testpause".

2- I use the command dlgshow/dlghide to hide and show the HUD. When the HUD is OFF you can't do anything, move, attack and so on... nothing.

So with the 2 observations above I recommend that you have to use in the order:
To take screenshots

Pause
Hide Hud
Freecam

to go back to play

Deactivate the Freecam
Show Hud
Unpause


The script below you just need to copy/paste in a txt and save as .ahk:
I used Numpad 0 to pause/unpause and Numpad1 to hide/show hud
Feel free to change to whatever key you want but leave the "$" there, else it won't work.

Edit: Steam won't let me post the script... it says "Sorry, some kind of error has occurred: There was an error communicating with the network. Please try again later."

I will find some way to share tomorrow :)
CAPA Oct 9, 2015 @ 3:15pm 
Hum... I actually made some mods now lol (this post is very old)

Based on this idea... Photomode 2inOne by CAPA
http://www.nexusmods.com/witcher3/mods/190/?

With this you can:

Pause, Hide Hud and Subtitles with the same button
FX selection, Cat, Drunk, Low Health, Intoxicated, be Invisible
Weather Selection
Fog/Mist on demand - Spawn fog/mist anywhere you want to give some atmosphere to the place
Time control: Slowdown or Fastforward

However it might be broken since 1.10 release... wait a notice from me of fixing this and you're good to go ;)
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Jun 4, 2015 @ 12:00pm
Posts: 11