AutoHotkey Community

It is currently May 27th, 2012, 4:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: March 6th, 2010, 4:49 am 
Offline

Joined: March 6th, 2010, 4:35 am
Posts: 3
Hello everyone, nice to be here :) 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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 4:26 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2010, 12:28 pm 
Offline

Joined: March 6th, 2010, 4:35 am
Posts: 3
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 3:17 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2010, 10:11 am 
Offline

Joined: March 6th, 2010, 4:35 am
Posts: 3
[VxE] wrote:
Try putting
Code:
#IfWinActive, Fallout3
at the top of your script.


Tried it and it doesn't work :(

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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2010, 11:40 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2011, 3:59 am 
Offline

Joined: October 6th, 2011, 10:28 pm
Posts: 5
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 11th, 2011, 7:20 am 
Offline

Joined: September 18th, 2010, 1:01 pm
Posts: 1
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2011, 5:19 pm 
Offline

Joined: October 6th, 2011, 10:28 pm
Posts: 5
would work, except the game is pirated so no steam :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2011, 1:22 am 
Offline

Joined: January 28th, 2006, 1:23 am
Posts: 89
Location: Germany
hotkeysrock wrote:
would work, except the game is pirated so no steam :P


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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2011, 1:26 am 
Offline

Joined: November 17th, 2011, 6:04 pm
Posts: 392
CircuitryMaker wrote:
hotkeysrock wrote:
would work, except the game is pirated so no steam :P


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? ^^ :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2011, 5:49 pm 
Offline

Joined: October 6th, 2011, 10:28 pm
Posts: 5
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 2:52 pm 
Offline

Joined: June 2nd, 2011, 1:36 am
Posts: 22
Location: Norge
I think I know a workaround for this. If you first compile your ahk script to exe, then run it in admin mode, the script should be able to receive keystrokes, even when in a game.

How to code it, I don't know, but I'd like a script like this myself :-)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], Yahoo [Bot] and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group