I have such problem. I've got Hanvon graphic tablet on a dual-display system. There is an option in tablet settings to select a display to work with, but I do need an opttion to switch monitors on the fly without entering options.
I've found out, that there is some file HWTabletFind.hou that controls the options. So, i've copied two versions of this file - each for one display. And created a *.bat file
#echo off
ren switch.hou temp.hou
ren HWTabletFind.hou switch.hou
ren temp.hou HWTabletFind.hou
taskkill /F /IM Jwpen.exe
start c:\windows\jwpen.exe /runtablet
HWTabletFind.hou is a running options file,
switch.hou are the options for other monitor
jwpen.exe is a process that controlls tablet.
Now the problem: everything works fine, displays are switching. But when I restart jwpen.exe process, all my applications (e.g. Photoshop) do not see my tablet anymore. Tablet works, but in "mouse mode" - no pressure, no tilt, etc. If I restart application, it sees tablet again.
I think, jwpen.exe must run on application initialisation. If it stopps, app thinks, that tablet is disconnected and does not see it again on jwpen.exe start.
Is there a way not to kill and start a process, but to reset it in some way?
If I change display from tablet settings panel, everything works ok. So it's possible to do it via custom script, to run it via hotkey without opening settings.
AutoIt can help to press and click buttons in a script, Autohotkey can do the same by a hotkey, and SENDKEYS via a VBS script can press keys in a GUI too.
Related
i have been trying to get a windows startup/shutdown sound to play, i couldn't get the sounds to play so i asked on Microsoft, here is the link https://answers.microsoft.com/en-us/windows/forum/all/cannot-change-windows-start-up-sound/8bbcb0a0-1402-4f1e-b080-9c8d526bc205
and i was told that its not possible. well too bad because i am not going to stop there, so i went to local group policy editor on windows 10 where you can choose scripts to run during shutdown and start up. i then wrote a very small PowerShell command with the file name of "shutdown.ps1" the code inside of shutdown.ps1 is
start "C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown\TADA.wav"
this file is located in the C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown directory along with the TADA.wav file that it plays when it shuts down.
now the issue i am having is that when windows is shutting down, its ending all processes so it does not play the sound. what can i do to change that?
I'm pretty new to all of this and am very grateful for any input you can give.
thanks in advance,
Devin
From How to Change the Windows 10 Logoff, Logon, and Shutdown Sounds in Windows 10:
...
While you can still customize what sounds sounds play for most OS events, Windows 10 hid shut down, logoff, and logon from view. They’re still around, though. You just need to make a few mild changes in the Windows Registry to get them back.
Add the Actions Back to the Sound Control Panel by Editing the Registry
To add the shutdown, logoff, and logon actions back to the menu in the Sound Control Panel app, you just need to make a few little tweaks in the Windows Registry.
...
Open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and then give it permission to make changes to your PC.
In the Registry Editor, use the left sidebar to navigate to the following key:
HKEY_CURRENT_USER\AppEvents\EventLabels
You’re going to be making one small change in each of three different subkeys inside that EventLabels key. First, we’ll tackle the shutdown sound or, as Windows likes to call it, System Exit. Under the EventLabels key on the left side of Registry Editor, select the SystemExit subkey. On the right side, double-click the ExcludeFromCPL value.
Note that by default, the value is 1, meaning that the action is excluded from the Control Panel. Change the value to 0 and then click “OK.”
Next, you’re going to make exactly the same change in two other subkeys inside the EventLabels key: WindowsLogoff and WindowsLogon. Head into each of those folders, open the ExcludeFromCPL value inside, and change the value from 1 to 0.
No need to restart Windows. You can go ahead and test your changes right away. Open up the Sound Control Panel app by right-clicking the speaker icon in your Notification Area and selecting “Sounds.” 1
You should now see the new actions (Exit Windows, Windows Logoff, and Windows Logon) available in the selection window and you can assign whatever sounds you like to those actions.
If, for whatever reason, you want to hide those actions from the Control Panel again, just head back into Registry Editor and change each of those ExcludeFromCPL values back to 1.
1: On my machine, to get to the Sounds control panel, I had to go into the Settings, choose "Personalization", then "Themes", then `Sounds".
UPDATE:
And indeed, all three sound events show up in my Sounds control panel once I re-enable them in the Registry. However, I tried assigning audio files to them, and although Windows remembered the assignments, nothing played when invoking those actions.
So, I guess the playback functionality is simply not implemented for those events anymore. This seems to be confirmed in your discussion with a Microsoft Insider on answers.microsoft.com (with an 89% upvote rate of 143K replies, I would think he knows what he's talking about):
In Windows 10 there is no way to change the Windows Startup Sound, that sound is set permanently in a DLL in Windows, it is not an audio file like the other system sounds, and even when you turn on the Startup sound on that dialog, sometimes the startup sound will play and other times it will not, this is a known bug in Windows 10, which seems to have been fixed in Windows 11
Windows10 does not support a shutdown sound like previous versions of Windows, you wil find many methods posted online, sadly, none of them work.
I have a ruby script that displays it's progress via the cmd and completes in about 10 minutes. In the last few weeks the cmd seems to freeze and after 10 minutes when I click on the cmd window it then completes the script.
I have searched on forums and suggestions include: disable QuickEdit Mode & Insert Mode which I have done but this has not fixed the problem.
The platform is an azure windows server 2016 VM.
Could this problem be due to a recent windows update?
Thanks
If you are using the usual Windows Command Window, Ruby has no way of knowing that you have clicked into the Window, so it is unlikely that it is related to the code. However, Windows does block a command to write to the command window on certain circumstances, and if this happens, Ruby waits on, say, STDOUT.puts, until it is allowed to continue. Of course this applies not only to Ruby, but to any application writing to the command console.
The most typical situation, in which this occurs, is, if you (maybe accidentally) select with the mouse something in the console Window. The script running in the console is blocked. By clicking with the mouse inside the window, the selection is cancelled, and the program continues to run.
So I've been working on my personal Steam account swapper with pre-game choice options but, I've been running into a few problems. The program works fine but I'm getting this problem where when I chose which profile I want logon to (for smurfing purposes) the Steam window pops up in my face and it prevents me from being able to choose which game I want to play. So I was wondering if there's a way to close the Steam window (and only the window) as soon as it pops up. taskkilling it won't work because if you taskkill it right away it will close the login (login starts when I choose which account I want to play on)
TL;DR I want to close steam window as soon as it pops up
NOTE: When logging in, task manager reads the steam logon window as SteamLogin and not Steam Not sure if this would make the lightbulb go off.
In steam there is an option to suppress the login prompt on system boot, I am not 100% if this will work with your loginswitcher, but is worth a try.
Go to "start menu", "run", type "regedit".
In the registry editor, expand the tree until you find this HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
In "Run", you will find all applications that are starting with Windows. Edit the value for "Steam" and add the silent option (-silent).
Reboot and try your login switcher.
I want to disable / block the mouse click and keyboard typing for 6 seconds after launching a .exe file while displaying a advsplash.
Currently I manage to run a .exe file, activate the splash, block the keyboard and run a second .exe, but then, I need to restart the computer to unlock the mouse/keyboard.
Any idea on how to disable it without restarting the machine ?
This sounds like something you should never do.
If you want to do UI automation Windows already has support for that, using SendInput or keybd_event is not a good idea. Some apps steal foreground focus, this is just a fact and if that happens at the wrong time you end up sending input to the wrong window.
I'm currently working to disable and lockdown tablets, and am having a hell of a time getting this part disabled. On a touch screen tablet, running windows 8, swiping from the right side of the screen will bring up a charms bar. I want this disabled.
I know this is controlled by a registry value (or multiple values) somewhere, but can't locate them. And I've researched this for hours and hours.
Just a heads up, this has nothing to do with CharmBarHints or the Metro Switcher. This also has nothing to do with my mouse's hardware options. Please, don't give me a fix for a PC running windows 8 that is using a touchpad, it's not the same.
I'm just trying to disable the charms bar for a tablet. Also, I know that windows 8.1 will contain a Kiosk Mode, however that will not be officially released until Oct 17th, and I will be shipping this fix out before then.
Thanks for your help.
You should definitely try going to
1. "COntrol Panel"-> "Mouse" -> "Device Settings" tab-> "Settings" options ->
Uncheck the "Enable Edge Swipes" option
Windows charms bar is operated by explorer.exe. So if your app can run without it then you can hack around it by first disabling the autorestart of explorer.exe via (run as administrator):
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoRestartShell" /t REG_DWORD /d 0
Then the lines below represent my launch.bat - which works in the end as expected:
;; kill explorer (this disables all windows functionalities
taskkill /f /im explorer.exe
;; start your kiosk app - should block the batch execution (so explorer.exe doesn't get executed at the end)
"\path\to\your\app.exe"
;; after you close both the app window and the opened chrome window relaunch explorer.exe to give back the functionality to windows
explorer.exe
I use the approach outlined above to let a keyboardless kiosk app run. Because with a keyboard you can still close the app with alt+f4.
Have you tried this method?
Navigate to the following registry key in Registry Editor:
HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>ImmersiveShell
Now go to
ImmersiveShell > New > Key from the context menu, and then name the new Key as EdgeUI.
Right-click the EdgeUI key, point to New, DWORD (32-bit) Value and then name the new DWORD as DisableCharmsHint.
Now double-click the newly created DWORD value, type 1 and click OK. You may also need to reboot Windows for the changes to come into effect.
Once done, it will disable both the top-right and bottom-right hot corners that reveal the Charms Bar.
Source: http://www.techattend.com/disable-charms-bar-in-windows-8-1/