Jump to content
LaunchBox Community Forums

dual screen


imtheman
 Share

Recommended Posts

ok...I have a 4 player  8 buttons for each arcade center and when I have people over its always the same question "what button do I press?" so I bought a 7" screen I want to inlay into the top of my controller area and when I load a game I want a photo of how I laid out the buttons to been shown on the 7" screen (this will be a pain in the ass to do for each game but I want it so ill take a few days making photos for each ) so I found a way to load a photo when a game starts but I want it to close after I stop that game and go back to a view of something else. I only have about 80 games mainly mame and pc games. having to take 10 mins trying to explain or hearing I don't know what I'm doing has taken its toll on me so any help on this would be great 

Link to comment
Share on other sites

There might be betters ways but I don't know any. But this should work. 

 

Google, download and install autohotkey.

Right click anywhere, say desktop. 

New.

Autohotkey script.

Right click on new script.

Edit script.

Copy and paste the following underneath the lines already there:

#SingleInstance Force
SetTitleMatchMode 2
WinClose, Paint
Exitapp

Save as anythingyouwant.ahk

Right click on it, compile script.

In launchbox choose a game.

Right click, edit.

Additional apps, add app.

Give it any name.

Point the path to the the compiled script.

Check the "run after main application" box.

Ok.

 

With this you will have to add it to all your games. But you only have 80 games so not to bad.

What the script does is it looks for a word in any window title. If it finds that word it will close the window. In this case its looking for the word "Paint". It is case sensitive. It will only close one window with a matching word.

Edited by jayjay
Link to comment
Share on other sites

  • 3 weeks later...
On ‎12‎/‎16‎/‎2017 at 3:38 AM, jayjay said:

There might be betters ways but I don't know any. But this should work. 

 

Google, download and install autohotkey.

Right click anywhere, say desktop. 

New.

Autohotkey script.

Right click on new script.

Edit script.

Copy and paste the following underneath the lines already there:


#SingleInstance Force
SetTitleMatchMode 2
WinClose, Paint
Exitapp

Save as anythingyouwant.ahk

Right click on it, compile script.

In launchbox choose a game.

Right click, edit.

Additional apps, add app.

Give it any name.

Point the path to the the compiled script.

Check the "run after main application" box.

Ok.

 

With this you will have to add it to all your games. But you only have 80 games so not to bad.

What the script does is it looks for a word in any window title. If it finds that word it will close the window. In this case its looking for the word "Paint". It is case sensitive. It will only close one window with a matching word.

ok I had it working not the issue is when I try running the script it wont close the photo while its in full screen (is there a way to select/find  "app" and  alt+f4 it closed I have tried making my own script to no outcome

Link to comment
Share on other sites

#SingleInstance Force
Process, Close, app.exe
Exitapp

Change app.exe to your new apps .exe. 

 

Or

SetTitleMatchMode 2
WinActivate, windowtitle
Send {Alt Down}{F4 Down}{Alt Up}{F4 Up}
ExitApp

Change windowtitle.

Edited by jayjay
Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...