PDA

View Full Version : please help zinc not taking focus with hyperlaunch



ryanz
09-06-2010, 09:46 AM
ive figured out how to add zinc games to the mame wheel in my cab setup but when i launch a game i have to pull the keyboard out and alt - escape to get to the game window because hyperspin and the hyperlaunch black screen are on top of it ? is there anyway of pushing the game window to the front with hyperlaunch ?
any help much appreciated been doing my head in for a week

volumetric
09-06-2010, 09:55 PM
a lot of these focus issues can be eliminated by setting your emulator to the same resolution as hyperspin, give that a shot and see what happens. Also, how are you launching zinc? with hyperlaunch enabled or disabled?

ryanz
09-07-2010, 06:14 AM
both are set to 1024 x 768 . yeah im launching with the standard hyperlaunch script i think its a system issue that causes it because when in windows on the p.c. if you start a new app it always stays at the back till you highlight it in the taskbar its always been the same even on a fresh install of xp . i was just wondering if there is a script i could add in the zinc settings of hyperlaunch that will force it to the front .

chillinwater
09-07-2010, 12:47 PM
If the resolution issue doesnt solve it
Try this right after the run\runwait command in the zinc section and maybe a
"sleep, 1000" or higher to give it some time to load before it activates. (1000=1sec)

sleep, 1000
winactivate, zinc.exe

On a side note have you guys run across a problem with Zinc on a 64bit amd system?
All my games run fine on a pentium 32bit, but not on the above.
(seems like its only an issue with tekkan games so far)

Congui
09-08-2010, 04:04 AM
I have Windows 7 64 bit home premium edition, with an AMD Athlon X4 processor, and Zinc runs just fine.

ryanz
09-08-2010, 09:12 AM
If the resolution issue doesnt solve it
Try this right after the run\runwait command in the zinc section and maybe a
"sleep, 1000" or higher to give it some time to load before it activates. (1000=1sec)

sleep, 1000
winactivate, zinc.exe

On a side note have you guys run across a problem with Zinc on a 64bit amd system?
All my games run fine on a pentium 32bit, but not on the above.
(seems like its only an issue with tekkan games so far)

have tried this but still not switching
is there anyway i could get hyperlaunch to press alt - escape when it loads zinc after a short wait to switch to it ?

chillinwater
09-09-2010, 08:57 AM
I cant re-create a focus issue on my setup so I dont know for certain that any of this works.


is there anyway i could get hyperlaunch to press alt - escape when it loads zinc after a short wait to switch to it ?
That probably wont work.
You could add it but Zinc closes on pressing "esc" and will close down zinc almost immediately.
also, if your default "exitemulatorkey=esc" that will close it too.

for focus try the script below first. The changes are,
removed the "Wait" from "runwait". (without this "send" commands wont work)
removed "zinc.exe" from "winactivate" and replaced it with the actual window name:
"ZiNc 1.1(C)1997-2005 Drunken Muppets (www.emuhype.com (http://www.emuhype.com))"
no quotes.

If that doesnt work and If you really want to test sending those key presses,
Activate the lines below.
The lines below with this ";" are not activated unless you remove ";"
Only activate (1) "send" command and\or (1) "run" command at a time.


;***************************************Zinc****** ******************************
else if (systemName = "Zinc" && executable = "zinc.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
;RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
sleep, 1000
winactivate, ZiNc 1.1(C)1997-2005 Drunken Muppets (www.emuhype.com (http://www.emuhype.com))

;sleep, 1000
;send, {LALTDOWN}{ESC}{LALTUP} ;this gets all whacky for me but might help you
;or
;send, {ALT}{ESC} ;this closes zinc after sleep, 1000
}

ryanz
09-13-2010, 09:36 AM
many thanks for the help unfortunately i couldn't get either to work so had to bite the bullet and get my p.c. repaired . working a treat now though happy days :-)