mGalaxy forum

General Discussions => Need Help? => Topic started by: Stefan on May 10, 2013, 08:47:16 AM

Title: Nintendo DS
Post by: Stefan on May 10, 2013, 08:47:16 AM
I try to Play No$Gba - DS - Emu with myZoom.
myZoom make it possible, to Play DS Games in Fullscreen.

With a simple .bat, i can start example: New Super Mario in Fullscreen,
i cant start it over mGalaxy ...  :-\

Anybody try it before ?
Title: Re: Nintendo DS
Post by: Aeliss on May 11, 2013, 07:55:04 AM
You can listen to the sound but no picture ? Or nothing ?
Title: Re: Nintendo DS
Post by: Stefan on May 14, 2013, 10:02:32 AM
"Nothing", i can see a grey box in the upper left corner, then all freeze ...

But i can start it with a .bat file, and: myZoom.exe "folder/game.nds"

 :-\
Title: Re: Nintendo DS
Post by: Aeliss on May 14, 2013, 11:13:18 AM
k, not the same problem than me.
In somes emulators IDK why but the fullscreen doesn't work if mgalaxy is running, they work with bat file file but not with mgalaxy.
I can listen the sound but no picture, in fact the "always on top" function not working really well on these emulators and even with fullscreen they are running on background.

Autoit script forced for these emulators to put the emulator on top.
Title: Re: Nintendo DS
Post by: Stefan on May 14, 2013, 01:47:39 PM
i think its some Configuration, and at myZoom, you must press F1 ... 2 ... 3 ... for Fullscreen Modes ...
Title: Re: Nintendo DS
Post by: Aeliss on May 14, 2013, 02:21:55 PM
I can't help you, I use only emulator that can be use in a "multiple emulation arcade machine" and not possible with the DS because of dual screen, touchscreen, ect ...
But with autoit nothing is impossible, you can use emulator that don't use command line for exemple.

you can simulate F1 with the command
Code: (autoit) [Select]
send("{F1}")

for "on top problem"

Code: (autoit) [Select]
$PID = Run ( "application.exe ")

while _WinWaitActivePID($PID)
   sleep(500)
wend

;------------------------

 Func _WinWaitActivePID($iPid)
    While 1
        Local $list = WinList()
        For $i = 1 To $list[0][0]
            If $list[$i][0] <> "" And IsVisible($list[$i][1]) Then
                If WinGetProcess($list[$i][1]) = $iPid AND WinActive($list[$i][1]) Then Return $list[$i][0]
            EndIf
        Next
    WEnd
EndFunc

Func IsVisible($handle)
    If BitAND(WinGetState($handle), 2) Then
        Return 1
    Else
        Return 0
    EndIf

EndFunc
Title: Re: Nintendo DS
Post by: rik_adriano on May 14, 2013, 02:23:06 PM
Why you not use Desmume.
It is newer and you can play from 7z  :)
Title: Re: Nintendo DS
Post by: Stefan on May 14, 2013, 02:27:18 PM
Aeliss, i will use DS in Arcade Cab too ;-) but only Jump and Runers as Mario or Giana Sisters.

Rik, have Desmume fullscreen and command lines to start ?
Or better, you use it with mGalaxy ?
Title: Re: Nintendo DS
Post by: rik_adriano on May 14, 2013, 02:44:42 PM
Yes i use it and you need script to launch it in full screen  ;)
Title: Re: Nintendo DS
Post by: Stefan on May 14, 2013, 02:50:54 PM
Sounds good ... any specials here to made this ?
Please, Can you post Script and Downloadsource for Emu ?
Title: Re: Nintendo DS
Post by: h3xl3y on May 14, 2013, 02:52:23 PM
I use Desmume too
Download Link (http://desmume.org/download/)
here is the script i use to launch it
Code: (autoit) [Select]
#include <Misc.au3>
Opt("WinTextMatchMode", 3)
$app = "DeSmuME_x64.exe"
$windows = "DeSmuME 0.9.9 x64"

If $CmdLine[0] == 1 Then
Run('"' & $app & '" "' & $CmdLine[1] & '"')
WinWait ( $windows )
WinActivate ( $windows )
WinWaitActive ( $windows )
Send("!{ENTER}")
While ProcessExists( $app )
     Sleep(500)
        Wend
ProcessWaitClose( $app )
Exit 0
EndIf
Have Fun  :)

EDIT: changed script because it used to much CPU
         added download link
Title: Re: Nintendo DS
Post by: rik_adriano on May 14, 2013, 03:14:36 PM
My script is the same as h3xl3y's  ;D
You can use this version Desmume 0.99, is latest stable version.
Title: Re: Nintendo DS
Post by: Stefan on May 15, 2013, 12:11:06 AM
Mens, help please, where is the "fullscreen" option ?  ???

Sure, i have the lastes X64 version 9.9., and first i try it without mGalaxy and AutoIt,
or is the fullscreen option in Line 2 at Script ?

Edit: OK read now in Script, the Alt+Enter .... thanks.
Title: Re: Nintendo DS
Post by: Stefan on May 15, 2013, 02:40:41 AM
Skins:

I have seen, on myZoom you can include Skins, so the fullscreen show as a DS Hardware,
is this possible in Desmume too ?
Title: Re: Nintendo DS
Post by: h3xl3y on May 15, 2013, 07:15:58 AM
I think no, but i'm not sure  :-\
didn't try or search anything about skins
Title: Re: Nintendo DS
Post by: Stefan on May 16, 2013, 12:20:54 AM
Rik and Hexly, thanks for your help, but in your script i miss the ESC key for basic-quit on mGalaxy,
do you quit only with Alt+F4 ?
Title: Re: Nintendo DS
Post by: rik_adriano on May 16, 2013, 07:00:44 AM
I use xpadder and it exits ok  :)
Title: Re: Nintendo DS
Post by: h3xl3y on May 16, 2013, 08:10:59 AM
I have set Alt+F4 on the right stick button on Xbox360 controller with Xpadder
For each system have set a profile in Xpadder  8)
Title: Re: Nintendo DS
Post by: Stefan on May 16, 2013, 08:30:10 AM
but why not include ESC function into script ?
i think this was the easyer way ...

xpadder, i had never use before, can i use this with a controlpanel on my selfmade arcade cab too ?
( ipac 32, keyboard encoder )
can xpadder start automatic with mGalaxy ?

my little problem is, then i must use xpadder only for this one ESC at DSemu ...
all others can quit with ESC  :(
Title: Re: Nintendo DS
Post by: rik_adriano on May 16, 2013, 08:56:16 AM
Xpadder starts with your machine and it's way easier to set cotrols for Nintendo Ds (if you need to emulate mouse for some games)
I use xpadder with my xbox360 controller.
Title: Re: Nintendo DS
Post by: Stefan on May 16, 2013, 09:31:33 AM
thanks rik, and can i set ESC button for Alt+F4 too ?

i have a "ESC" arcade button on my machine ... ( standard MAME )

but i think, maybe this should work too, or not ?

Code: (autoit) [Select]
HotKeySet("{ESC}", "Terminate")

{ your other code }

Func Terminate()
WinClose ( $windows )
    Exit 0
EndFunc
Title: Re: Nintendo DS
Post by: h3xl3y on May 16, 2013, 09:43:52 AM
For me is easyer with Xpadder because i use a profile anyway for the controls even if i don't need a key to exit, i even have a profile to control mGalaxy

If you want you can easy modify the script and add a Function Terminate with Esc key
there are examples even on this forum

As for Xpadder or JoytoKey (this one is good too) if you want a free program
-it Autostart with Windows
-you can bind any key or combinations of keys on one button you choose, like your Esc on machine

EDIT: i see you got the ideea as i was writing it  ;)

        That should work but need a little edit

Code: (autoit) [Select]
HotKeySet("{ESC}", "Terminate")

{ your other code }

Func Terminate()
ProcessClose ( $app )
    Exit 0
EndFunc

try it and see if works for you
Title: Re: Nintendo DS
Post by: Stefan on May 16, 2013, 11:30:58 AM
Thanks for edit  ;)

Ok, now it works fine ... Mission DS complete  8)