Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

Hello, 

 

I am trying to hide the mouse in certain lightgun games for my gun4ir. I wrote a few different ahks. Works in windows and hides the mouse using nomousy. I added it as an additional app for house of the dead 2 but mouse is still showing in game. Not sure what script i need to write. 

 

Appericate the help 

Posted

Not sure if any of your "few different ahks" used a DllCall method. Or were just different trial-and-errors for using nomousy.  You didn't show your work. ;) 

That said, an AHK script using a DllCall method is doing the exact same thing as nomousy is doing.  And according to sindenwiki, should just work. 

What platform/emulator?  It may be a setting in the game itself.

If you added both the HideMouse (Run Before...) and ShowMouse (Run After...) Additional App scripts, try removing the latter and see if it then hides it during the game.  (You will need to manually Un-Hide after testing.)

 

Posted (edited)
39 minutes ago, JoeViking245 said:

Not sure if any of your "few different ahks" used a DllCall method. Or were just different trial-and-errors for using nomousy.  You didn't show your work. ;) 

That said, an AHK script using a DllCall method is doing the exact same thing as nomousy is doing.  And according to sindenwiki, should just work. 

What platform/emulator?  It may be a setting in the game itself.

If you added both the HideMouse (Run Before...) and ShowMouse (Run After...) Additional App scripts, try removing the latter and see if it then hides it during the game.  (You will need to manually Un-Hide after testing.)

 

My work;:

 

Run, E:\Launchbox\nomousy.exe /hide 

 

Run, E:\Launchbox\nomousy.exe /show 

Then I just tried 

Run, E:\Launchbox\nomousy.exe /hide 

 

Works on my desktop when added as an additional app in launchbox. It doesn't work. Im using demuil as my emulatior for house of the dead 2.

 

Also cant login to the launchbox forum on my windows 11 pc using edge. Where im using launchnox because my login wont work so I cant post screen shots. Im on my phone. Sorry about that. 

 

Edited by wolfenstein0099
Posted
7 minutes ago, wolfenstein0099 said:

My work;:

Run, E:\Launchbox\nomousy.exe /hide 

Run, E:\Launchbox\nomousy.exe /show 

This will hide it, then (I presume) show it, right away.  I "presume" because I didn't see in the documentation where is says to add "/show" as a parameter to show it again.

 

9 minutes ago, wolfenstein0099 said:

Then I just tried 

Run, E:\Launchbox\nomousy.exe /hide

[Just] this should work.

13 minutes ago, wolfenstein0099 said:

tried deleting the additional app and tried readding it again. When I go back into lainchbox. Its not staying deleted

If your Additional App has both Run commands, it won't work.  After deleting the Additional App, did you click the OK button (vs. clicking the X in the upper right corner)?

 

28 minutes ago, wolfenstein0099 said:

Works on my desktop

Are you testing nomousy and starting the game?  Maybe try that.

Run, E:\Launchbox\nomousy.exe /hide
RunWait, E:\LaunchBox\Emulators\Demul\demul.exe -run=naomi -rom=hotd2
MsgBox The game has exited
Run, E:\Launchbox\nomousy.exe

(change the path to Demul as necessary)

Posted
16 minutes ago, JoeViking245 said:

This will hide it, then (I presume) show it, right away.  I "presume" because I didn't see in the documentation where is says to add "/show" as a parameter to show it again.

 

[Just] this should work.

If your Additional App has both Run commands, it won't work.  After deleting the Additional App, did you click the OK button (vs. clicking the X in the upper right corner)?

That was my mistake. It did delete it. I went back in and made sure. 

16 minutes ago, JoeViking245 said:

 

Are you testing nomousy and starting the game?  Maybe try that.

Run, E:\Launchbox\nomousy.exe /hide
RunWait, E:\LaunchBox\Emulators\Demul\demul.exe -run=naomi -rom=hotd2
MsgBox The game has exited
Run, E:\Launchbox\nomousy.exe

(change the path to Demul as necessary)

THanks, Joe. 1st ill try to just statt no mousy then load the game. For some reason my ahk script isnt workong as an additional app. Even just trying to /hide didnt work. So ill try that and then your script you gave me. I appreciate your help one again. 😃

  • Like 1
Posted
8 minutes ago, wolfenstein0099 said:

For some reason my ahk script isnt workong as an additional app

If it works outside, I'd check that the Additional App is setup correctly.

image.thumb.png.bd41d61682085297335284f71bdfb3bc.png

  • Give it a name
  • Point to LaunchBoxs' AutoHotkey.exe
  • WITH QUOTES, add the "full/path/to/your/script.ahk"
  • Check Run Before
  • Click OK to save and close
Posted
16 minutes ago, JoeViking245 said:

If it works outside, I'd check that the Additional App is setup correctly.

image.thumb.png.bd41d61682085297335284f71bdfb3bc.png

  • Give it a name
  • Point to LaunchBoxs' AutoHotkey.exe
  • WITH QUOTES, add the "full/path/to/your/script.ahk"
  • Check Run Before
  • Click OK to save and close

Oh, ghoss. I didnt do any of that. Let me try that. Im sure that's probally why it didn't work. Ill let you know. 

Posted
1 hour ago, JoeViking245 said:

If it works outside, I'd check that the Additional App is setup correctly.

image.thumb.png.bd41d61682085297335284f71bdfb3bc.png

  • Give it a name
  • Point to LaunchBoxs' AutoHotkey.exe
  • WITH QUOTES, add the "full/path/to/your/script.ahk"
  • Check Run Before
  • Click OK to save and close

 

Sorry Joe. Im just confused about what to write in the defulat comand line perramoters. Not exactly what you mean. 

Posted
2 minutes ago, wolfenstein0099 said:

Sorry Joe. Im just confused about what to write in the defulat comand line perramoters. Not exactly what you mean. 

You created a text file which had the one line: Run, E:\Launchbox\nomousy.exe /hide in it.  You saved that file and changed the file extension from .txt to .ahk.

e.g.  You saved and renamed it to: E:\My AutoHotkey Scripts\HideMouse.ahk 

Your Command-line Parameters for this Additional App will then be

"E:\My AutoHotkey Scripts\HideMouse.ahk"

(the full path to the file you previously created, all within quotes)

  • Thanks 1
Posted
45 minutes ago, JoeViking245 said:

You created a text file which had the one line: Run, E:\Launchbox\nomousy.exe /hide in it.  You saved that file and changed the file extension from .txt to .ahk.

e.g.  You saved and renamed it to: E:\My AutoHotkey Scripts\HideMouse.ahk 

Your Command-line Parameters for this Additional App will then be

"E:\My AutoHotkey Scripts\HideMouse.ahk"

(the full path to the file you previously created, all within quotes)

Got it but still showing the mouse. Ill try your script you typed out for me. The regular script off the sinddn wiki isnt working. 

Posted
1 hour ago, JoeViking245 said:

You created a text file which had the one line: Run, E:\Launchbox\nomousy.exe /hide in it.  You saved that file and changed the file extension from .txt to .ahk.

e.g.  You saved and renamed it to: E:\My AutoHotkey Scripts\HideMouse.ahk 

Your Command-line Parameters for this Additional App will then be

"E:\My AutoHotkey Scripts\HideMouse.ahk"

(the full path to the file you previously created, all within quotes)

House of the dead 2 is finally hiding the mouse and working great. Thanks to your script! Thank you. 

I was trying to hide the mouse in cobra arcade too. I added cobra as the rom with teknoparriot and the path to the emulator. Just like with house of the dead 2 but its giving me an error. Not sure if It needs to be different. 

 

They are the only 2 I was trying go play without the mouse showing. 

 

Thanks Joe. 

 

  • Game On 1
Posted
6 minutes ago, wolfenstein0099 said:

Just like with house of the dead 2 but its giving me an error. Not sure if It needs to be different. 

What's the error?  Is it a TP error?  A script error?  Some other error?  If it's a TP error, I can't help you. Not that I won't. It's that I can't. I don't use TeknoParrot.

 

8 minutes ago, wolfenstein0099 said:

They are the only 2 I was trying go play without the mouse showing. 

Well, you're halfway there. ;) 

 

8 minutes ago, wolfenstein0099 said:

Thanks Joe. 

You're welcome.

Posted
21 hours ago, JoeViking245 said:

What's the error?  Is it a TP error?  A script error?  Some other error?  If it's a TP error, I can't help you. Not that I won't. It's that I can't. I don't use TeknoParrot.

 

Well, you're halfway there. ;)

Sorry for the late reply. I think ifs teknoparriot. No worries, its fine. Probally needs more updates because its a newer game.  

 

You're welcome.

Your the best!! Always helping me when I need it  😊

  • Game On 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...