Jump to content
LaunchBox Community Forums

Run AHK script at startup?


Go to solution Solved by JoeViking245,

Recommended Posts

Posted

Hi,

i have several problems with sound muted or not muted in big box....the only solution seems to use ahk scripts.

One problem is muted sound at startup of bigbox.

I wrote a working script and want it to start with bigbox.

I put this in startup applications: Path: C:\LaunchBox\ThirdParty\AutoHotkey\AutoHotkey.exe  and Parameter: C:\LaunchBox\ThirdParty\unmute.bigbox.ahk

This does not work, the script is not executed....tell me why?  ....

If i create a .bat file with this content:

"C:\LaunchBox\ThirdParty\AutoHotkey\AutoHotkey.exe" "C:\LaunchBox\ThirdParty\unmute.bigbox.ahk"
exit 0

it works fine.

But i see this annoying flashing of the cmd window.

Any solution?

Thanks!

  • Solution
Posted
16 minutes ago, Steel said:

I put this in startup applications: Path: C:\LaunchBox\ThirdParty\AutoHotkey\AutoHotkey.exe  and Parameter: C:\LaunchBox\ThirdParty\unmute.bigbox.ahk

This does not work, the script is not executed....tell me why?

Off hand, my guess is the [extra] period you have between unmute and bigbox.  You can try putting the entire parameter "within quotes" (just like you have in the batch file). Or try removing that dot ('period').   But NOT the dot before ahk.

 

19 minutes ago, Steel said:

If i create a .bat file with this content:

it works fine.

But i see this annoying flashing of the cmd window.

Any solution?

If you end up going this route, create a shortcut to the batch file.  Right click the shortcut and select Properties.  Next to "Run", change it to Minimized.  Click OK to save and close.  Then point to the shortcut.

 

Posted

Hi Joe,

i had no luck with tips for ahk launch. I have a "sleep" delay in my script and increasing time makes no difference.

But the tip with the shortcut works good. Thanks.

Now going on to the next problems. After exit of mame games, sound is also muted in bigbox. And for some systems, the audio of game videos in bigbox play on even after launching a game. But this is another topic, for now i am satisfied.

Thanks again....

  • 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...