Author Topic: [DOWNLOAD v0.3] Attract True Black - Application  (Read 13053 times)

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
[DOWNLOAD v0.3] Attract True Black - Application
« on: March 29, 2017, 04:17:49 PM »
Attract True Black v0.3

I wrote this application for my own use as I was annoyed how the transitions look in Attract Mode when you launch or exit a game. You got random flashes and a mouse spinner destroying the pleasure of staring at the pure darkness while the game is loading.

Since you guys like experimenting I thought I will share it with you.

What does this app do?
It sits in the system tray waiting for Attract Mode to be launched, then it:
- kills the desktop and all open explorer windows
- sets all the mouse pointers to the transparent one embedded in ATB
- displays a black borderless window to be sure nothing leaks through

When you exit Attract Mode:
- cursors are restored
- desktop is back
- black borderless window is hidden


Remember, I wrote this in a few hours, so I'm not responsible for any mental damage any potential bugs might caused you like for example:
- I've lost all my opened explorer windows, and I can't be bothered to open them again
- my cursors are gone and I had to restore them in the mouse properties window using a keyboard
- my screen is black and I don't know how to use either a task manager or alt tab.

You have been warned, happy experimenting :)

And remember, set your screen mode to  fullscreen or borderless, or you will get a black screen when you launch AM.

Changelog:
02/01/2018 - fixed a bug that resulted in ATB not restoring mouse pointers occasionally.
03/01/2018 - fixed ATB sitting on top of the AM


Please note that it is only working with Window (no border) mode

DOWNLOAD:
« Last Edit: February 02, 2018, 08:14:12 PM by Oomek »

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #1 on: March 29, 2017, 04:28:05 PM »
I am using windows 10 and do not get any of the issues you have. Is it because I am launching without explorer running? The only time I get a curser is when I shutdown.

Edit: I launched explorer and then attract and mame. Still no cursor or visible background issue. Perhaps my machine is launching apps too quickly?

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #2 on: March 29, 2017, 04:30:12 PM »
I get the spinner every time I launch GroovyMame d3d9ex, I think it's because it initialises the fullscreen in a bit different way.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #3 on: March 29, 2017, 04:32:07 PM »
And Desktop flashes are visible when you launch an emulator in the same resolution and refresh rate as the desktop. In that case there is no transitions between resolutions which would hide the desktop flashes.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #4 on: March 29, 2017, 04:33:42 PM »
Not everyone is experiencing that issues. It strictly depends on the personal setup.

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #5 on: March 30, 2017, 02:38:13 AM »
please offer sourcecode instead compiled .exe. Thanks.
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

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #6 on: March 30, 2017, 02:48:18 AM »
When I clean this up a bit, sure not a problem.

djrobx

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #7 on: March 30, 2017, 09:28:46 PM »
Agreed, source code would be nice.  Thanks for sharing the app.

Suggestion to people using it - set AM to "fill screen" mode.   That mode has fewer transition issues. 

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #8 on: March 31, 2017, 09:13:27 AM »
Iv'e tried it with fullscreen and borderless. Works nicely too.

KTURNER

  • Sr. Member
  • ****
  • Posts: 169
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #9 on: April 04, 2017, 06:27:13 AM »
I haven't tried this yet but if it works THANK YOU! The transition has gotten on my nerves for a while.

KTURNER

  • Sr. Member
  • ****
  • Posts: 169
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #10 on: April 26, 2017, 08:20:46 PM »
Hopefully no one it getting tired of me always asking questions. I wish I could contribute more but I just don't have the knowledge that y'all do. When I use this my screen goes black and I can here the videos​ playing. I can exit out buy pushing esc up then enter and everything goes back to normal. I tried to delete the exe and it says it's in use. I would prefer to use it though.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #11 on: April 26, 2017, 09:08:14 PM »
Most likely you have another attract.exe hung-up in the memory. check with the task manager.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #12 on: April 26, 2017, 09:10:23 PM »
When ATB is running there should be a purple icon in your system tray. You can right click to exit.

edit: Oh and make sure AM is configured to fullscreen or borderless before launching ATB. If it's not you will get a black screen.
« Last Edit: April 26, 2017, 09:15:04 PM by Oomek »

KTURNER

  • Sr. Member
  • ****
  • Posts: 169
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #13 on: April 27, 2017, 05:23:06 AM »
That's probably it. I have it set to fill screen. I'll be trying that when I get home. Thanks!

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [DOWNLOAD v0.1] Attract True Black - Application
« Reply #14 on: May 03, 2017, 10:10:17 PM »
FYI, Your application solved my issue of losing focus upon exit of Mame back into AM. No other solution worked. Thanks!