Windows button on windows tablet in custom shell - windows

I am developing a custom shell for a windows 8 tablet. I would like to intercept the tablets windows button press event. I am not sure how to do so. I am currently working in c#, but would be willing to consider any possible solutions. I have tried autohotkey, but the tablet button must not be the same as the keyboard windows key. Any suggestions?

I vaguely remember reading that Windows 8 requires running with admin rights. Could you try that?

Related

Qt Windows 10 notifications

I am trying to make use of the Windows 10 notifications system (the ones poping out from the right side panel, available from notifications tray icon) in my Qt 5.13.0 program. I am looking at the Windows extras class: https://doc.qt.io/qt-5/qtwinextras-index.html but cannot find any API for such thing. Is it even possible somehow in Qt?
Yes, try the System Tray Icon example.
It is not a Windows only API. The QSystemTrayIcon class works in several platforms. In Windows 10, QSystemTrayIcon::showMessage() shows the notification you are looking for.

windows 8 glass effect

I am asking how to make a glass effect for winform in windows 8.
I just saw some methods which call the DWM to make this before windows 8. But it seems DWM was no longer valid in windows 8. So is there any other methods to make glass effect winform in windows 8?
Thanks!
Windows 8 does not provide support for the glass effect of Vista/7. If you want to make your windows display with glass effect, you need to code it yourself, or use one of the 3rd party solutions that do so.

Is there an analogue of Windows Phone 'User Idle Detection' in Windows 8?

I've used the following code on Windows Phone 7 and 8 to disable user idle detection when my App is displaying data to the user and they are unlikely to interact with the screen e.g. A recipe App where the screen needs to stay on:
http://msdn.microsoft.com/en-us/library/microsoft.phone.shell.phoneapplicationservice.useridledetectionmode(v=vs.92).aspx
Does anyone know if there is an analogue of this available for Windows 8 applications? My tablet app has the same requirement to disable the screen turning off. I haven't managed to find anything :-(
Many thanks,
Jon
You should use the DisplayRequest class, specifically DisplayRequest.RequestActive for this purpose. You must also remember to call DisplayRequest.RequestRelease once you are done to allow the display to sleep, for example, if you are not viewing a recipe, or you are in a menu screen, etc.

Creating a Custom Keyboard in Windows Phone 7

What is best way to create a custom keyboard for my Application in windows phone7? If I do So will it accepted in Market?And how to disable Windows phone 7 default keypad?
I used this as a start point when i wrote Slydr (Sliding keyboard app) http://www.silverlightshow.net/items/Windows-Phone-7-Creating-Custom-Keyboard.aspx
just so you know, you cannot replace system keyboard.

Is it possible to emulate a second finger for the Windows Phone 7 emulator?

It's a bit annoying having to deploy to a device everytime to test multitouch functionality so I was just wondering if it's possible to fake the second finger. Obviously plugging in two mouse's doesn't help...
There's no out of the box support for this at the moment, but there are some options you can look into for this.
Jonas Follesø's World of Software - Simulating multitouch on the Windows Phone 7 Emulator
Windows MultiPoint Mouse Software Development Kit
Multi-Touch Vista
In addition to the links from Mick N, you may also want to have a look at the MultiTouch Behavior for Windows Phone 7. As this includes support for simulating multiple touches with the emulator and a single mouse while testing.

Resources