Workaround for hard-bound keys, AutoHotkey tutorial

Post » Fri Nov 27, 2015 1:06 pm

Run this script and hold Enter until the box pops up

count1 := count2 := count3 := count4 := 0Enter::	if % !(count1)	timer(5)	count1++returnEnter up::count2++*Enter::	if % !(count3)	timer(5)	count3++return*Enter up::count4++timer(t) {	SetTimer, Results, % (t * 1000)}Results:	MsgBox Results:{return}RawButtonPresses:%count1%, RawButtonRelease:%count2%, CombinedPresses:%count3%, CombinedReleased:%count4%,	ExitAp

I would like to know the results. Switch Enter around for keys you think you're having trouble with

User avatar
Emma Louise Adams
 
Posts: 3527
Joined: Wed Jun 28, 2006 4:15 pm

Post » Thu Nov 26, 2015 10:06 pm

Great work IFailed, thank you. One quick question. I want jump to be Numpad0::Space. Which works fine, but when I had it using NumpadIns::Space - it kept quick using my stims. How do I bind a key to quick use the stimpacks?

Oh think i answered my ? right as i posted it... it must be 0....

edit: no that didnt work

Got it now, numlock state of keys was screwing me up.... NumpadDot::0 works just fine.

User avatar
Georgia Fullalove
 
Posts: 3390
Joined: Mon Nov 06, 2006 11:48 pm

Post » Fri Nov 27, 2015 12:38 am

I think you need numlock turned off to use NumpadIns lol. Otherwise it will send Numpad0

Edit: didn't read the full post

User avatar
Mrs Pooh
 
Posts: 3340
Joined: Wed Oct 24, 2007 7:30 pm

Post » Fri Nov 27, 2015 5:32 am

Hi

I found a facepalming simple solution before I read your post. Just reset the Fallout 4 keys to default! Totally forgot I had tinkered with that too...

Holster works fine now :wink_smile:

Thanks for your work.

z

User avatar
celebrity
 
Posts: 3522
Joined: Mon Jul 02, 2007 12:53 pm

Post » Fri Nov 27, 2015 1:51 am

Bethesda, this is a work around, not a solution.

I haven't tried auto hotkey yet, and assume that all in game menus that show what key to press, will not match the auto hotkey to press, correct?

So, this is not a fix.

Please Bethesda, fix this. Make all keys available and bindable.

User avatar
patricia kris
 
Posts: 3348
Joined: Tue Feb 13, 2007 5:49 am

Post » Fri Nov 27, 2015 10:22 am

Yes, you will have to keep an image file up in your steam overlay until you memorize which keys are mapped to which.

User avatar
Invasion's
 
Posts: 3546
Joined: Fri Aug 18, 2006 6:09 pm

Post » Fri Nov 27, 2015 8:13 am

This was really helpful! Saved me from serious carpel tunnel syndrome as a lefty trying to play this on PC. Thank for posting!!

User avatar
Lexy Corpsey
 
Posts: 3448
Joined: Tue Jun 27, 2006 12:39 am

Post » Fri Nov 27, 2015 7:45 am

Remembering to run my script as admin every time is screwing with my mind!

edit: compiling your script and checking run as admin is a great solution, so you dont forget each time.

User avatar
Helen Quill
 
Posts: 3334
Joined: Fri Oct 13, 2006 1:12 pm

Post » Fri Nov 27, 2015 9:52 am

Heres my lefty setup if anyone wants another take. Everything is based on default controls, with the exception of i use my mouse software to bind mouse 4 to grenade/bash.

#ifWinActive, ahk_class Fallout4Numpad8::wNumpad4::aNumpad6::dNumpad5::sNumpad7::eNumpad3::zNumpad1::qNumpad9::rNumpadAdd::EnterNumpadEnter::LCtrlNumpadDiv::tabNumpadSub::4NumpadMult::tNumpad0::SpaceNumpadDot::0XButton1::LAltins::altdel::xPgDn::Escright::lshiftdown::1up::3left::2+Break::	Suspend	Pause,,1return
User avatar
Tracy Byworth
 
Posts: 3403
Joined: Sun Jul 02, 2006 10:09 pm

Post » Fri Nov 27, 2015 2:17 pm

Is there a smooth way to use build mode besides pausing the script and using default controls?

User avatar
Stephy Beck
 
Posts: 3492
Joined: Mon Apr 16, 2007 12:33 pm

Post » Thu Nov 26, 2015 10:59 pm

Alright guys I added a section for key consolidation. Should be especially handy for disabled players or people who hate where Esc, T and Tab are located.

User avatar
Queen of Spades
 
Posts: 3383
Joined: Fri Dec 08, 2006 12:06 pm

Post » Fri Nov 27, 2015 4:34 am

What's the problem you're having with build mode?

User avatar
Amysaurusrex
 
Posts: 3432
Joined: Wed Aug 09, 2006 2:45 pm

Post » Fri Nov 27, 2015 3:50 am

Im unable to navigate the build menu/submenus. I just end up shift+pause and then use the arrow keys to do it right now. I guess I could just bind the arrow keys to something closer to the numpad. heh!

User avatar
Princess Johnson
 
Posts: 3435
Joined: Wed Feb 07, 2007 5:44 pm

Post » Thu Nov 26, 2015 11:09 pm

Have you tried hitting numlock and using Num8/4/6/2?

Edit: nm that doesn't work interestingly without rebinding all of those functions

The problem is that you have remapped your up/right/left/down without mapping any keys to them. See my http://www.gamesas.com/topic/1546356-workaround-for-hard-bound-keys-autohotkey-tutorial/page-2#entry24493404; I remapped esdf to up/left/down/right

User avatar
Prohibited
 
Posts: 3293
Joined: Tue Jun 12, 2007 6:13 am

Post » Fri Nov 27, 2015 7:24 am

Any ideas on how to make it so whatever your key to open up console is, also pauses your script until you hit that same key again? For me, it's when I hit the ù key (AZERTY keyboard). I've figured out through keyhistory that this counts as virtual key C0, scan code 028, but I can't even get that to work while remapping a different key to just open up the console as a test.

This, for example, should work as far as I can figure, but doesn't:

U::{vkC0sc028}

If I add Send or SendInput, it doesn't change anything. Am I right in thinking I need to send a different key to Fallout 4 than the key that is being intercepted by AutoHotKey?

:Edit: Okay, so just doing u::ù seems to work to remap console... Now I'm trying to make it open console and pause script so I can type my command without remappings, then toggling both again on a second keypress... The problem here is that I can't just do:

u::ùSuspend, Togglereturn

Because then it turns into an error since ù is an unrecognized command. I don't know what to put before it in order to get this to work.

:Edit2: Did a bit more searching and ended up going a different route - this works exactly as I want it to:

~ù::Suspend, Toggle

Basically causing AHK to fire its Suspend command, without blocking the ù key from going through to Fallout 4.

User avatar
Sasha Brown
 
Posts: 3426
Joined: Sat Jan 20, 2007 4:46 pm

Previous

Return to Fallout 4