AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fallout 3 is disabling my global hotkeys in Foobar 2000

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
isamu



Joined: 06 Mar 2010
Posts: 3

PostPosted: Sat Mar 06, 2010 3:49 am    Post subject: Fallout 3 is disabling my global hotkeys in Foobar 2000 Reply with quote

Hello everyone, nice to be here Smile I have a problem....

I have been playing the game Fallout 3, and have been playing my own music using Foobar 2000 to run in the background while playing the game. Foobar 2000 allows you to make shortcut keys to control any part of the application. For example, I have assigned "Ctrl+Alt+P" to pause the music, which it does. Problem is, Fallout 3 simply disables my Foobar 2000 shortcut keys, and I'm trying to prevent it from doing that. For example pressing Ctrl+Alt+P no longer pauses the song upon launching the game. It simply stops functioning. There is even a box within Foobar's shortkey menu that, when ticked, turns the shortcut key into a Global Hotkey. I have ticked and unticked this box and still, nothing happens.


So can someone tell me what I have to do in Auto Hotkey to prevent Fallout 3 from overriding my Foobar 2000 shortcut keys? I am still very new to Auto Hotkey, so if someone can tell me exactly what steps to do to make this work it would be very appreciated.

Thanks in advance Smile
Back to top
View user's profile Send private message
Guest.
Guest





PostPosted: Sun Mar 07, 2010 3:26 am    Post subject: Reply with quote

First try this script (with control alt t) when playing the game, it will confirm that AutoHotkey works with Fallout 3.

Code:
^!t::msgbox,,Testing, Yes it works


If it works then use Window Spy (by right clicking one of the ahk green icons in the notification tray) to get the ahk class name of Foobar & put it in this script

Code:
$^!p::
IfWinExist, ahk class Foobar-ahk-class-name
     ControlSend, ahk_parent, ^!p, ahk class Foobar-ahk-class-name
Return
Repeat for your other keys

Untested
Back to top
isamu



Joined: 06 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 11:28 am    Post subject: Reply with quote

Guest. wrote:
First try this script (with control alt t) when playing the game, it will confirm that AutoHotkey works with Fallout 3.

Code:
^!t::msgbox,,Testing, Yes it works


If it works .....



Well, much to my dissapointment, AHK simply doesn't work when running Fallout 3. Yes, the little "Testing it Works" prompt *does* come up when not running the game. But upon launching it, and pressing Ctrl+Alt+T, nothing, nada, zilch. Unbelievable the lengths they went to make this game such a ****.

Any other scripts or whatnot I can test out?
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Tue Mar 09, 2010 2:17 am    Post subject: Reply with quote

Try putting
Code:
#IfWinActive, Fallout3
at the top of your script.
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
isamu



Joined: 06 Mar 2010
Posts: 3

PostPosted: Thu Mar 11, 2010 9:11 am    Post subject: Reply with quote

[VxE] wrote:
Try putting
Code:
#IfWinActive, Fallout3
at the top of your script.


Tried it and it doesn't work Sad

I *AM* however, now getting the "Testing it Works" prompt with that code at the top of the script. But not with the Foobar code that he posted:

Code:
$^!p::
IfWinExist, ahk class Foobar-ahk-class-name
     ControlSend, ahk_parent, ^!p, ahk class Foobar-ahk-class-name
Return


Fallout 3 still doesn't respond.

Could there be an error somewhere in the script that he posted?
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Thu Mar 11, 2010 10:40 am    Post subject: Reply with quote

Code:
$^!p::
IfWinExist, ahk class Foobar-ahk-class-name
     ControlSend, ahk_parent, ^!p, ahk class Foobar-ahk-class-name
Return

The parts in red are probably incorrect. Read up on Ahk_Classes and make sure the window is detected properly.
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
hotkeysrock



Joined: 06 Oct 2011
Posts: 5

PostPosted: Mon Oct 10, 2011 2:59 am    Post subject: Reply with quote

I am running into a similar problem with winamp macros. very annoying and effects all versions of bethestda games it seems.


Just to let you know, I do not think autohotkey will work with it. Bethesda games do *something* so that you cant get any keystrokes (except alt tab, ctrl alte del) to interact with other programs. Obviously it works with counterstrike, steam games, etc... Quake 3 IIRC was not passing keystrokes to the OS as well.

just a little tidbit of information there as I am still trying to figure out how to switch mp3s in fallout grrrrrr!!

i wish developers wouldnt do that. who knows what they are thinking!
Back to top
View user's profile Send private message
strDSR



Joined: 18 Sep 2010
Posts: 1

PostPosted: Sun Dec 11, 2011 6:20 am    Post subject: Reply with quote

I've had this problem with several Bethesda games (F3, F:NV, and Skyrim). However I found a workaround. I launched Skyrim using Steam, then press Alt+Tab to load the ingame Steam UI. With the Steam UI up, global hotkeys start working again, and I'm able to run my script to resize the window. This workaround should work for your media player hotkeys as well.
Back to top
View user's profile Send private message
hotkeysrock



Joined: 06 Oct 2011
Posts: 5

PostPosted: Mon Dec 12, 2011 4:19 pm    Post subject: Reply with quote

would work, except the game is pirated so no steam Razz
Back to top
View user's profile Send private message
CircuitryMaker



Joined: 28 Jan 2006
Posts: 88
Location: Germany

PostPosted: Tue Dec 27, 2011 12:22 am    Post subject: Reply with quote

hotkeysrock wrote:
would work, except the game is pirated so no steam Razz


Zwei Dinge sind unendlich. Das Universum und die Dummheit von hotkeysrock. Beim Universum bin ich mir nicht ganz sicher.
Back to top
View user's profile Send private message Visit poster's website
aRt)Y



Joined: 17 Nov 2011
Posts: 392

PostPosted: Tue Dec 27, 2011 12:26 am    Post subject: Reply with quote

CircuitryMaker wrote:
hotkeysrock wrote:
would work, except the game is pirated so no steam Razz


Zwei Dinge sind unendlich. Das Universum und die Dummheit von hotkeysrock. Beim Universum bin ich mir nicht ganz sicher.

Why are you posting on german? ^^ Very Happy
Back to top
View user's profile Send private message
hotkeysrock



Joined: 06 Oct 2011
Posts: 5

PostPosted: Wed Dec 28, 2011 4:49 pm    Post subject: Reply with quote

I think its some uber hilarious comment referring to the fact that the game is pirated. Despite the issue not having to do at all with this particular game being pirated in any way.

but you know how germans are, always trying to force their moral beliefs on others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group