Author Topic: Demul ahk help  (Read 1063 times)

clockman

  • Full Member
  • ***
  • Posts: 82
    • View Profile
Demul ahk help
« on: April 11, 2020, 06:26:05 AM »
So when i launch Demul emulator it launches to the game and plays fine. My problem is when it launches it shows the emulator in a liitle box before it goes to full screen. I have a script to hide it. It works on maximusarcade frontend but maximus has a feture to launch applicatios before roms launch. How would i launch this ahk file before the game launches? Is there a easy way?
Here is the script!
Gui, +ToolWindow -Caption +AlwaysOnTop
Gui, Color, 000000
Gui, Show, w%A_ScreenWidth%  h%A_ScreenHeight%, Black Gui
SetTimer, GuiClose, 5000 return

hermine.potter

  • Hero Member
  • *****
  • Posts: 769
    • View Profile
Re: Demul ahk help
« Reply #1 on: April 15, 2020, 12:25:52 AM »
is AHK autohotkey?
I'm not using autohotkey. but autoit (it seems similar).

Have a look at here (Section : OpenBOR).
Similar problem. I have compiled the script to .exe and use cmd with two .exe files

Or have a look at the following thread
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

CiTrON

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Demul ahk help
« Reply #2 on: April 16, 2020, 08:18:49 PM »
try this
change the folder path for your use

Code: [Select]
; SET IMAGE IN OVERLAY
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow

; RECEIVES IMAGE AND SCREEN SIZE DATA
Gui, Add, Picture, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, D:\ARCADE\CONFIG\LOADING.jpg

; SHOW IMAGE IN MONITOR SCREEN SIZE
Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%

; WAIT 1 SECOND
Sleep 1000

; OPEN EMULATOR + ROM
SetWorkingDir D:\ARCADE\EMULATOR\NAOMI\
Run demul.exe -run=naomi -rom=mvsc2u

; WAIT 9 SECONDS
Sleep 9000

; SET FULL SCREEN EMULATOR
WinActivate, ahk_exe demul.exe
Send !{ENTER}

; CLOSE SPLASH
Gui, Cancel

; "ESC" CLOSE EMULATOR
~ESC::
Process, Close, demul.exe
ExitScript:
ExitApp

save as game.ahk
and compile