XNA - Windows Aero Effect is no more if you toggle full screen - aero

i am using togglefullscreen() function to ofc toggle between window mode & full screen for my application(game).
When i run the game in window mode, the title bar has the Windows Aero Effect of Win7 as it should be, but when i go full-screen and come back to window mode, then there is no more Aero Effect in window title bar, just a normal title bar
Similarly if i start the Game in full screen mode and then toghle to window mode, there is no more aero effect. Why is that happening & how to get back aero effect

Windows disables Aero because while you're inside a fullscreen app, the user usually doesn't see the title bar or task bar so it's just a waste of time to compute the 'good' graphics (transparency for example). If Aero doesn't restart after you close your program, then you can make a .bat file like so:
#ECHO off
net stop uxsms
net start uxsms
This will stop the service controlling aero, and then restart it (which always brings back the scheme if it should be there. (Obviously this is not in c#, but if you can do the same thing using the Process class, or by starting cmd.exe with some arguments. ("/C" will allow you to call commands from cmd.exe).

Related

Image superimposed on android emulator

I have not been able to find out why I use a ASSUS ROG 2080 gpu super and this image is appearing on top of my android emulator. This is just with a standard File - > Xamarin Project.
Is it something to do with my 2080 super rather than my android emulator?
Edit 2
As you see its no where to be seen nore is it in the programs list.
The issue was not inside the Nivda driver it self but it was actually in a program called CPU Tweek
If you see here the button at the top with on or off if you switch that off it will no longer appear
However if you want to see the Fps in an app on simulator leave it on and go to settings cog at the top of the screen. Then to the OSD tab and scroll down to photo and simply turn that off.

How to make sikuli focus on Desktop screen

I am using VS CODE to develope a Robot with Robot Framework and Sikuli. When I run my script I get an error
"could not find P(sage.png)"
This happen because the current screen is the VS CODE's screen and not the desktop where the "sage.png" is.
What I can use in my script in order to focus on desktop screen first of all?
I just looked at the documentation of sikuli.
You can make use of the below method, where they have specifically talked about your issue.
classmethod focusedWindow()
On Windows, this method always returns a region. When there is no
window opened on the desktop, the region may refer to a special window
such as the task bar or an icon in the system tray.
# highlight the currently fontmost window for 2 seconds
App.focusedWindow().highlight(2)
# save the windows region before
firstWindow = App.focusedWindow()
firstWindow.highlight(2)

Keep QDialog on top of everything, even fullscreen applications?

On a project I work on, using Python3 + PySide, I try to print a popup-message as some sort of notification.
This popup needs to be on top of everything, this includes fullscreen applications like games or browsers. And that's the point that does not work. It works fine for all windows on my Desktop, normal windows, maximized, but as soon as there is a fullscreen application or a borderless window ("pseudo fullscreen") the popup is created, but "behind" the fullscreen app.
I already use self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint) but this flag does get ignored by other fullscreen apps.
How do I fix this? Also without giving focus to the popup.
It is just there to present information, and it is not good when your window looses focus while playing a game.
My code can be found here: https://github.com/GosuSan/PyECM
additional Info:
- my project aims to be cross-platform, so I need a platform-independend solution
- I am running linux, without having a windows machine atm,
so I can't test stuff there.
If you need any more info, let me know!
Edit:
It seems that PySide.QtGui.QSystemTrayIcon.showMessage does what I want, it works on fullscreen as well as on borderless-windows. So I will try to either find out how those messages are displayed on top, or just use them, not sure for now.

I can't turn off my iPhone after building Project. What to do?

I am building a project. Everything fine. Then I installed that on my iPhone.
My iPhone stack at the front screen and that's it.
Pressing the power off button for long doesn't work.
The xcode says Could not launch "Application Name". permission denied.
Should I just wait till iPhone run out of battery?
Try to restart iPhone using the instructions here:
http://www.apple.com/support/iphone/assistant/phone/#section_1
"To reset iPhone, press and hold the Sleep/Wake button and the Home button at the same time for at least 10 seconds, until the Apple logo appears."
My iPhone5's display became so large that I could not use it. When I tried to reset the size just like I do on my MacPro, it didn't work. So, I thought I'd restart it, but when I pressed the top button, the screen with the "slide to power off" came on and it was not possible to complete the task. It was frustrating and I thought of taking the battery out and putting it in again, but then I thought to try sliding the bar with my stylus pen and it worked immediately.

Skinnable audio player (or something similar to Windows Vista audio control in task bar) - for the web

Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?
A player that can be customized to
use a 'speaker' icon instead of a
'play' icon. When the speaker is
clicked, the volume can be adjusted
or turned off.
The option of being able to autoplay
and set the default volume level.
dunno if this is any use to you - http://mediaplayer.yahoo.com/

Resources