Search The Support Knowledgebase


(database of technical support questions and answers):
   

Author Topic: Button Press Minimises Game

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Button Press Minimises Game
« on: November 12, 2018, 11:05:21 AM »
Good morning,
  I've recently found VDASH-EMU and I'm just beginning to develop my own button box templates.  I currently have an issue whereby games (Euro Truck Simulator 2 and American Truck Simulator) will become minimised when a VDASH-EMU button is pressed.  This is only a problem when running the games in full screen mode.  When running in windowed mode the problem goes away.  Since I only have a single monitor on my game rig I'd like to be able to run the game in full screen mode whilst using VDASH-EMU.  Is this a bug or do I need to alter the default SLI Max application settings?

  Regards

RobC
« Last Edit: November 21, 2018, 11:04:19 AM by theStaff »
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #1 on: November 12, 2018, 11:28:33 AM »
Hello,

Be more specific when you ask for support: you're using your VDASH-EMU for Android and when you press a button on your phone or tablet the game is minimized?

you need to review your slimax truck setup associated with your EMU and your game controls settings. You may have a MACRO (keystrokes sequence) which send a key to minimize the game.

Alll keystrokes sequences associated with buttons are in Advanced Options Setup > VDASH-EMU > Button keys mapping list

if you run a VDASH-EMU on Windows (which you do not have a valid license) to create the template easily for using it on your Android EMU, by clicking the button you exit the game context and as such the game is minimized by default. You can set the "Window Not Focusable" of VDASH-EMU general preference to prevent context switching but first you need a valid EMU for Windows license or simply copy the template on your android and shutdown the EMU for windows before testing your template and running SLIMax Mgr Pro.



REMINDER:
you need a valid license for all running EMU on your lan network.

Read the EMU user guide and follow tutorials:

Button box tips & tutorials:
https://www.eksimracing.org/forum/index.php?board=293.0

https://www.eksimracing.org/help/introduction/

https://www.eksimracing.org/help/advanced-configure-the-buttonbox-or-any-controls-on-page/


Regards,
EKSIMRacing Staff
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #2 on: November 12, 2018, 02:42:33 PM »
Good afternoon,
  Apologies for the lack of detail.  Allow me to elucidate.

  - I run SLIMax on my Windows 10 game rig
  - I run VDASH-EMU on my android tablet
  - I created the button box template on my tablet
  - SLIMax is a completely default installation with the exception of the Button keys mapping list for my buttons all of which are single key presses
  - I start VDASH-EMU on my tablet, start SLIMax on Windows 10 then start the game

  When I press a button on the tablet the keypress is registered by the game and then it minimises.  This only happens when the game runs in full screen mode.

  I will check for the the "Window Not Focusable" setting just in case it has been set.

Regards

RobC
 
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #3 on: November 12, 2018, 03:16:27 PM »
more clear now, thanks.

do not look for "Window Not Focusable" in your Android EMU setting this is obviously for VDASH-EMU Windows only.

 
Quote
When I press a button on the tablet the keypress is registered by the game and then it minimises.  This only happens when the game runs in full screen mode.

back to your issue, this is weird as normally the keypress is only reliable when the game is in fullscreen so this means this is not working with those games... curious...

did you try to press the corresponding key on your keyboard and check if this is working?

also, attach your slimax setup to this topic.
Regards
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #4 on: November 12, 2018, 03:42:39 PM »
A test has been done and this is working as expected.


1 launch VDASH-EMU Android
2 when ready launch SLIMax Mgr Pro
3 edit default setup and assign letter 'A' to button 2 in SLIMax default VDASH-EMU setup, APPLY and SAVE
4 Run ETS2 in fullscreen mode
5 assign letter 'A' to horn in ETS2 game settings

take a job or go drive, then press button 2 on the VDASH-EMU Android button box and the truck horn sounds correctly!

this is working with the integrated ButtonBox and a custom buttonbox template.

check the screenshots
Regards









REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #5 on: November 14, 2018, 05:11:19 PM »
Good evening,
  Sorry for the slow response.  I've done as you asked.  I have:

  - Added a new page in VDASH on my tablet that contains one of the default button box templates (the one with the start button in the top left - the same as in one of your screenshots);
  - Assigned the 'A' key to button 2 with no modifiers;
  - Started American Truck Simulator and set the Horn to be the 'A' key and then went into Drive mode;
  - Pressing 'A' minimises the game when in full screen mode.

  I have attached two SLIMax configuration files.  One for my truck sims to work with my custom button box and one default to run your test.

  It would be interesting to see if you have the same issue.


  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #6 on: November 14, 2018, 07:05:05 PM »
Quote
  - Pressing 'A' minimises the game when in full screen mode.


pressing 'A' on keyboard minimize the game? really?

thanks to do a test with ETS2.


your vdash_emu default setup is the default setup untouched and doesn't contains the 'A' key in button mapping

the other trucksim setup have an big issue in buttons mapping,
button 1 and 2 are identical
and button 12 is unreadable
also button 11 may not working.


Make sure you have the lastest version of the software, use Check For Update to be up to date and fix your setup.
Regards
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #7 on: November 14, 2018, 08:53:12 PM »
Good evening,
  Sometimes the mapping list can be tricky to read.  I've downloaded both files from this ticket and opened them in an editor.  In the default config this entry is present so, yes, pressing 'A' does minimise my game.  Config entry:

<BUTTONS_KEYS_MAPPING_LIST flag="16384" value="NA,A|200|0,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA"/>

  Let me try to explain away the issues you see in the trucksim config.

  - button 1 and 2 are identical - yes they are.  The 'E' key in game is to turn on the truck ignition and when pressed a second time the engine starts.  I simply have an ignition switch and a start button in my button box.

  - button 12 is unreadable - this is supposed to replicate pressing the SPACE bar.  It does actually work in game (windowed mode only of course ;) )

  - button 11 may not working - this should be a CTRL+\ key press which is the sequence used to centre my TrackIR.  I've not tested if it works though.

  I use the trucksim config for both American Truck Simulator and Euro Truck Simulator 2 with the same results - i.e. the game minimises when running in full screen mode.

  I will try with some different games to see if the problem is present on all.

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #8 on: November 14, 2018, 09:03:57 PM »
Sorry no more idea, the issue isn't related to our software as I already said a test has been done with ETS2 and it works perfectly. Obviously if you press an 'A' in ETS2 on your keyboard and the game is minimized, you will get the same result with SLIMax. In this case check your windows configuration or the controls setting in the game itself.
Also be sure to Check For update to be up to date and run slimax as administrator.
Regards
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #9 on: November 14, 2018, 09:09:45 PM »
I just hope for you you do not have a key logger running in background? or maybe your antivirus?
the game is usually minimized when it loses his context when another application takes the focus for example...

SLIMax Mgr Pro uses the std functions to simulate a keystroke inside the game context and stay in background but if you have a service or an app or a game launcher/tool or something using the keyboard or waiting for a key that take the focus your game will be minimized. Hope this helps

Regards
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #10 on: November 14, 2018, 09:20:52 PM »
by the way we have done a quick test with your vash-emu trucksim setup untouched with ETS2 and it works fine...
Regards
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #11 on: November 15, 2018, 07:44:20 AM »
Good morning,
  Thanks for testing.  You mention that if I press 'A' on my keyboard and the game minimises then it's not a problem with SLIMax.  Not sure where this came from but the game does not minimise when any key on the keyboard is pressed.

  I ran some further tests last night:

  Assetto Corsa - buttons boxes and key mappings work just fine
  Project Cars - button boxes and key mappings work just fine.

  It is only on the truck sims where there is a problem.  Furthermore, I've realised that it is the second button box trigger that minimises the game.  i.e. press a button and it works in game just fine.  Press the same button (or any other button for that matter) and the game minimises.  This behaviour is consistent.

  The only obvious difference I see between the racing and truck sim's is that the truck sim's require the SLIBridge and the racing sim's do not.

  I do not have anything running on the game rig that may take away focus from the game screen (forcing it to minimise) but I will go back and check.  The only anti-virus that is running is Windows Defender.  I will attempt to disable that and see if it makes a difference.

  I do have a second PC on which I can test.  I will install SLIMax there and see if the same problem exists.  If it does then there appears to be a problem with SLIMax.  If not then there is an issue with my game rig.

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Button Press Minimises Game
« Reply #12 on: November 15, 2018, 08:01:48 AM »
Hello,  Did you check for update? did you run the SLIMax as administrator as this can be an issue with your firewall rules, did you check if there is tool or app running in background.
the bridge is not related to your problem, its role is to send the game's telemetry to SLIMax which is absolutely not involved in the management of the keystroke.

sorry the bug is unconfirmed and as such it's NOT a problem of SLIMax Mgr Pro.... maybe something related to Windows 10 game management.

if it works with a REAL buttonbox device and if you have a Teensy LC usb controller, you can transform for free your virtual buttonbox of your EMU to a real buttonbox, read the EKSIMRacing firmware info, here:

https://www.eksimracing.org/eksimracing-firmware/

with the EKSIMRacing controller you no longer have to deal with the SLIMax setup like with a real buttonbox...
Regards

REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #13 on: November 15, 2018, 08:50:07 AM »
Good morning,
  Yes, SLIMax and VDASH are both at the latest levels.  I will continue to run some tests before looking for alternative solutions.  If my config works for you then it should work for me too.

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline zappadoc

  • Management
  • Suppreme Master Sensei
  • *
  • *
  • *
  • Posts: 5817
  • No email or PM support
    • ZDoc Dev Blog
Re: Button Press Minimises Game
« Reply #14 on: November 15, 2018, 12:20:19 PM »
Hi Rob,
just read the memo from the staff and currently investigate your weird issue.  to simulate the keystroke I use exactly the SAME code for all simulations and games and you have seen it works perfectly with P.CARS2 and AC, I'm 99% sure this is due to the new windows 10 internal game management as soon as the game register the new functions win10 takes the focus,please confirm you're running the latest Win 10?
you may consider using the EKSIMRacing controller to use the V2R technology with your virtual buttonbox.
Cheers,
z
No support will be provided by PM or EMAIL, PM has been disabled due to heavy spam and abuse, please post in the support boards, thanks for your understanding.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #15 on: November 15, 2018, 02:15:07 PM »
Good Afternoon,
  Yes, I'm running the latest update of Windows 10.  It's had a few big updates in the last 2 or 3 weeks.  I see if I can find the build number tonight when I finish work.  Do you know if there is a software workaround or are we stuck with it?

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline zappadoc

  • Management
  • Suppreme Master Sensei
  • *
  • *
  • *
  • Posts: 5817
  • No email or PM support
    • ZDoc Dev Blog
Re: Button Press Minimises Game
« Reply #16 on: November 15, 2018, 02:28:25 PM »
Hi, it seems that some win32 API functions are blocked by ETS2 client (and certainly with ATS as well)... did you try to play with the key delay? 200 is very short.
Cheers,
z
No support will be provided by PM or EMAIL, PM has been disabled due to heavy spam and abuse, please post in the support boards, thanks for your understanding.

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #17 on: November 15, 2018, 02:37:12 PM »
Good Afternoon,
  I'll try increasing the delay.  I'll let you know if that makes a difference.

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #18 on: November 15, 2018, 04:32:27 PM »
Good Evening,
  I've increased the key press delay to 1000ms and it still minimises the game.

  My Windows build info is:
  Windows 10 Home
  Version 1803
  OS Build 17134.407

  I have not signed up to the Insiders programme.

  Regards

RobC

  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline zappadoc

  • Management
  • Suppreme Master Sensei
  • *
  • *
  • *
  • Posts: 5817
  • No email or PM support
    • ZDoc Dev Blog
Re: Button Press Minimises Game
« Reply #19 on: November 15, 2018, 04:43:37 PM »
okay they certainly blocked the SendInput() call and other api functions, I recommend the combo Teensy LC  controller ($11) +  EKSIMRacing V2R firmware (100% free), this will give you up to 32 buttons by EMU buttonbox (up to 4 x EMU = 128 buttons) and you can directly assign the buttons from the EMU to the game settings like a real BBox.

Cheers,
z
No support will be provided by PM or EMAIL, PM has been disabled due to heavy spam and abuse, please post in the support boards, thanks for your understanding.

Marked as best answer by zappadoc on November 21, 2018, 10:20:48 AM

Offline robc76

  • Standard Level
  • Junior member
  • *
  • *
  • Posts: 10
Re: Button Press Minimises Game
« Reply #20 on: November 21, 2018, 08:28:41 AM »
Good morning,
  I have purchased a Teensy LC and uploaded the SLIMax firmware last night.  I've only done a quick test with American Truck Simulator but so far it is working perfectly.

  In summary: It seems that Microsoft is closing down some W32 API functions which is having some unfortunate side effects when running VDASH-EMU.  It is also unfortunate that the fastest workaround for this problem is to purchase some additional hardware but at least that is cheaper than building/purchasing a physical button box.  I am hopeful the combination of VDASH-EMU, Teensy LC and the SLIMax firmware will be a robust solution for several years.

  You may set the status of this issue to Solved.

  Regards

RobC
  • My SLI Devices List:
    SLI-EMU, SRF1-EMU, VDASH-EMU

Offline zappadoc

  • Management
  • Suppreme Master Sensei
  • *
  • *
  • *
  • Posts: 5817
  • No email or PM support
    • ZDoc Dev Blog
Re: Button Press Minimises Game
« Reply #21 on: November 21, 2018, 09:32:37 AM »
Quote
I am hopeful the combination of VDASH-EMU, Teensy LC and the SLIMax firmware will be a robust solution for several years.

several years! ah! ah! :)

thank you for your feedback I'm glad you got it all sorted out, you know $5 EMU license + $11 Teensy LC controller vs a $90 to $350 for a physical buttonbox you have a wide margin, so you can spend some additional bucks during those years IMHO... ;)

Cheers,
z
No support will be provided by PM or EMAIL, PM has been disabled due to heavy spam and abuse, please post in the support boards, thanks for your understanding.

Offline zappadoc

  • Management
  • Suppreme Master Sensei
  • *
  • *
  • *
  • Posts: 5817
  • No email or PM support
    • ZDoc Dev Blog
Re: Button Press Minimises Game
« Reply #22 on: December 03, 2018, 08:49:15 AM »
Hi,

Using virtual buttonbox with VDASH-EMU + Teensy LC and the EKSIMRacing V2R firmware is an huge benefit, flexible and powerful but to be complete, I finally found a simple fix to your issue with key mapping. You have to edit and disable fullscreen optimization in the properties of the game application, see the screenshot.

the ETS2 app for example is in common steamapps directory:

..\Steam\steamapps\common\Euro Truck Simulator 2\bin\win_x64\eurotrucks2.exe

Cheers,
z

No support will be provided by PM or EMAIL, PM has been disabled due to heavy spam and abuse, please post in the support boards, thanks for your understanding.