View Full Version : Game does not have focus when started
BladeZX
07-13-2011, 04:43 AM
I have noticed that sometimes when I run a game the game runs but it is behind HS which is very annoying. I notice this especially when launching PC games
Here is the script I use for PC games
;----------------------------------------------------------------------------
; PC Games
; Windows SHortcut
; by Blade
; 1.0
;;
;----------------------------------------------------------------------------
Run, %rompath%%romname%%romextension%
if (romname = "StreetFighterIV")
{
WinWaitActive, STREET FIGHTER IV LAUNCHER
send, {ENTER}
}
ExitApp
CloseProcess:
return
BladeZX
07-14-2011, 02:20 AM
No one else is seeing this.
It must be something with me then
BladeZX
07-15-2011, 08:07 AM
Well it seems hit and miss. Sometimes the game loads fine and has focus but most times the game loads behind HS.
Is there a command I can put in the script to make sure the game has the focus?
chillinwater
07-15-2011, 10:33 AM
I could be wrong but I think your trying to gain focus on "STREET FIGHTER IV LAUNCHER" and not the actual program the launcher is running.
Find out the actual window name (in taskmanger or on taskbar) when SFIV is running and use that (exact) info to replace "STREET FIGHTER IV LAUNCHER"
Then try this,
[example]
;----------------------------------------------------------------------------
; PC Games
; Windows SHortcut
; by Blade
; 1.0
;;
;----------------------------------------------------------------------------
Run, %rompath%%romname%%romextension%
if (romname = "StreetFighterIV")
{
;replace with actual windowname
Winactivate, STREET FIGHTER IV LAUNCHER
send, {ENTER}
WinWaitActive, STREET FIGHTER IV LAUNCHER
}
Winactivate, Hyperspin
ExitApp
CloseProcess:
return
BladeZX
07-17-2011, 06:54 AM
Thx... The script you provided seem to do the same thing. When I runt he game the first time it seems to have the focus and it is fine. The next game I run seems to run behind HS.
chillinwater
07-17-2011, 08:56 AM
Did you remove the red and put the actual window name for Street Fighter IV?
BladeZX
07-17-2011, 01:20 PM
Yes
chillinwater
07-17-2011, 05:51 PM
hmmm....
Try to run the game in a screen resolution that matches as close as possible to what you have Hyperspin set to.
The only other thing I can think of is to try this:
You still have to replace the red with the actual street fighter IV window name cuz I dont know what it is.
;----------------------------------------------------------------------------
; PC Games
; Windows SHortcut
; by Blade
; 1.0
;;
;----------------------------------------------------------------------------
if (romname = "StreetFighterIV")
{
Run, %rompath%StreetFighterIV%romextension%
;replace with actual windowname
Winactivate, STREET FIGHTER IV LAUNCHER
send, {ENTER}
WinWaitActive, STREET FIGHTER IV LAUNCHER
}
else
{
Runwait, %rompath%%romname%%romextension%
}
Winactivate, Hyperspin
ExitApp
CloseProcess:
return
BladeZX
07-18-2011, 02:21 AM
Thanks Chillin... I will try this when I get home tonight
Fursphere
07-18-2011, 06:32 AM
In my experience, this is normally a Windows problem. You've got something running that is screwing things up in the background...
chillinwater
07-18-2011, 07:47 AM
Yeah that sounds right and if thats the case,
then the script should work or the "No" Hyperlanch option should work also.
hyperlaunch=false
except you'll lose the "send, {enter}" command (for fullscreen or start?)
I thought the wrapper already had that command in it.
I dont know why but I just have not set this one up yet.
(been procrastinating for some odd reason)
which one is better the PC version or ..ahem Taito Type X?
BladeZX
08-04-2011, 02:49 AM
In my experience, this is normally a Windows problem. You've got something running that is screwing things up in the background...
I am still seeing the focus issue. I can be running a game in mame and when I exit I can see HS but the start bar is in front of it. This is VERY ANNOYING.
I have no idea what is causing it. Anyone know?
Hypnoziz
08-04-2011, 02:54 AM
My apologies if I'm being ignorant by not reading the previous posts in this thread, but do the resolutions match from the game to your desktop resolution?
BladeZX
08-04-2011, 02:59 AM
I will have to check that.
I know my desktop resolution is 1920x1080. I am using a 27" ASUS LED monitor
I believe HS is also set to 1920x1080.
Hypnoziz
08-04-2011, 03:05 AM
In my experience, this is normally a Windows problem. You've got something running that is screwing things up in the background...
Do you have any programs running that customize Windows? Docks? Rainmeter? WindowBlinds?
BladeZX
08-04-2011, 06:43 AM
Do you have any programs running that customize Windows? Docks? Rainmeter? WindowBlinds?
None.
Hypnoziz
08-04-2011, 09:33 AM
Antivirus?
BladeZX
08-04-2011, 09:59 AM
I do run NOD32 by ESET.
I also run Pinnacle gamer profiler but I do not think it is that.
I did not start noticing it until I switched to HyperLaunch 2.0
It is painful that I just cannot find the culprit.
Hypnoziz
08-04-2011, 10:11 AM
Disable the antivirus and test things out. I've seen NOD32 pick up AHK scripts as "trojans". It could be scanning the new HyperLaunch 2.0 main script and getting a false positive.
BladeZX
08-04-2011, 10:12 AM
It is definitely running the script because the games run.
I will try that when I get home in about an hour or so and report back
BladeZX
08-04-2011, 12:04 PM
I disabled NOD32 and it still has the focus issue.
I then re-enabled NOD32 and I shutdown Pinnacle Game Profiler and guess what... no more focus issues. I have no idea why PGP would cause this.
Anyone see this with PGP?
Hypnoziz
08-04-2011, 06:31 PM
I don't use Pinnacle Game Profiler, so I'm not familiar with it, but if it's swapping configs based on what game is launched, then it could be activating itself every time you launch a game through Hyperspin, which could interfere with the layering.
;----------------------------------------------------------------------------
; PC Games
; Windows SHortcut
; by Blade
; 1.0
;;
;----------------------------------------------------------------------------
Run, %rompath%%romname%%romextension%
if (romname = "StreetFighterIV")
{
;Incredibly redundant, but worth a shot
#IfWinActive PINNACLE GAME PROFILER
WinMinimize PINNACLE GAME PROFILER
;replace with actual windowname
Winactivate, STREET FIGHTER IV LAUNCHER
send, {ENTER}
WinWaitActive, STREET FIGHTER IV LAUNCHER
}
Winactivate, Hyperspin
ExitApp
CloseProcess:
return
Replace red text with Pinnacle Game Profiler window name.