Search found 299 matches

by pneumatic
11 Oct 2018, 23:52
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 224895

Re: Suggestions on documentation improvements

If ValueType is REG_DWORD, Value should be between -2147483648 and 4294967295 (0xFFFFFFFF). REG_DWORD cannot be negative. This caused my script to go into an infinite reboot loop and inability to even shut it down from task manager! Basically I was trying to write -1 and since the value never appli...
by pneumatic
10 Oct 2018, 22:25
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 224895

Re: Suggestions on documentation improvements

May I suggest including in the documentation the mpress command line parameters used by ahk2exe, as for example I needed to edit the manifest of MyCompiledScript.exe which needs to be done before mpress, therefore I must use mpress manually and needed to know how to create the same resulting exe fil...
by pneumatic
10 Oct 2018, 09:34
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 224895

Re: Suggestions on documentation improvements

On all of the Windows 7 systems that I have set to "never notify", it has fully disabled UAC (after a reboot). On Windows 8 and later it does not disable UAC. So I went back and re-tested it, and here is the behaviour I observed on my systems with UAC set to "never notify". Windows 7 SP1 x64 Logged...
by pneumatic
10 Oct 2018, 07:08
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

After about 40 hours of research, I believe I finally understand how to actually control windows DPI scaling! I will try and summarise what I have learned so that it may help other people who may have become as confused as I have been. First thing I will note is that if windows dpi scaling is set to...
by pneumatic
09 Oct 2018, 06:00
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 224895

Re: Suggestions on documentation improvements

If UAC is disabled, *RunAs will launch the process without elevating it. I just thought this might benefit from mentioning that setting UAC to its lowest setting, i.e "never notify", doesn't actually (necessarily?) disable UAC and the process is still being elevated by RunAs on my Win7 and 10 syste...
by pneumatic
08 Oct 2018, 03:27
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 27
Views: 29703

Re: XGraph v1.1.1.0 : Real time data plotting.

It seems GDI+ supports antialiasing , but GDI doesn't (XGraph uses regular GDI). But here are some articles which show how it's possible to implement antialiasing manually in GDI. Easy method - https://www.codeproject.com/Articles/21520/Antialiasing-Using-Windows-GDI Hard method - https://www.codepr...
by pneumatic
07 Oct 2018, 20:54
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 27
Views: 29703

Re: XGraph v1.1.1.0 : Real time data plotting.

Thanks! In the meantime I found it helps reduce visibility of aliasing if I change the pen colour to be closer to the graph's background colour. eg. instead of doing a black pen on a white background, I made it a grey pen eg. RGB (152,152,152). Another possibility might be to do the antialiasing man...
by pneumatic
06 Oct 2018, 22:03
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 27
Views: 29703

Re: XGraph v1.1.1.0 : Real time data plotting.

I am finding at high DPI settings, the pen becomes quite badly aliased, which seems to be due to Windows' crappy raster upscaling. Increasing the pen thickness to 2 helps a bit, but it's still a bit nasty to look at, and I would like a nice anti-aliased smooth pen. It seems it's possible to create a...
by pneumatic
06 Oct 2018, 21:43
Forum: Ask For Help
Topic: Slight thread problem
Replies: 1
Views: 448

Re: Slight thread problem

Just bumping a once and final time just in case. After going over the documentation again I believe Critical is the only thread mode which can buffer events, therefore it is not possible to animate my progress bar smoothly during the Critical thread. What I can do though is just manually set a whole...
by pneumatic
05 Oct 2018, 02:49
Forum: Ask For Help
Topic: Slight thread problem
Replies: 1
Views: 448

Slight thread problem

Hello In my script I am doing some important stuff in a Critical thread. At the same time I'd like my UpdateProgressBar timer (which animates my progress bar by gradually incrementing it up to the current position which I specify inside the Critical thread as it gets its work done) to still be able ...
by pneumatic
04 Oct 2018, 18:30
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

[deleted]
by pneumatic
03 Oct 2018, 22:00
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

Oh and there's also more regkeys that affect it reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\MyScript\MyScript.exe" /t REG_SZ /d "~ HIGHDPIAWARE" reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v ""C:\MyScript\MyScript.ex...
by pneumatic
03 Oct 2018, 21:28
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

I suspect it is impossible in Windows 10 to force an app to 1:1 pixel mapped 96dpi when Windows is set to something other than 96dpi. I say this because with the aforementioned regkey, Process Explorer is reporting that all dpi scaling modes are being applied: "Unaware" [HKEY_LOCAL_MACHINE\SOFTWARE\...
by pneumatic
03 Oct 2018, 20:01
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

[deleted]
by pneumatic
03 Oct 2018, 19:36
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

[deleted]
by pneumatic
03 Oct 2018, 19:17
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

Another fix I tried was this one which apparently patches winapi calls in realtime to force a dpiscaling mode, but it didn't work.

https://superuser.com/questions/1002267 ... es-screens
by pneumatic
03 Oct 2018, 19:15
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

So with Resource Hacker I've modified the manifest of MyCompiledScript.exe according to these instructions https://msdn.microsoft.com/en-gb/C9488338-D863-45DF-B5CB-7ED9B869A5E2 But it simply refuses to change the value - Process Explorer reports MyCompiledScript.exe is still at "System Aware" dpi aw...
by pneumatic
03 Oct 2018, 18:25
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

I don't want to stop your investigation and trial & error process, but why would you actually want to disable it? Keeping it simply ensures your GUIs are actually more usable / user-friendly on 4K monitors - otherwise they will become very "small" which isn't helping anyone. A well designed GUI wit...
by pneumatic
03 Oct 2018, 09:23
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

So I tested a bunch of apps with the "disable DPI scaling" checked on the .exe Properties Compatibility tab. ProcessExplorer Notepad++ Rufus MSI Afterburner WinRAR AS SSD Benchmark None of them can disable DPI scaling either. They are either raster scaled or the usual font enlargement method. Except...
by pneumatic
03 Oct 2018, 08:53
Forum: Ask For Help
Topic: -DPIScale not working properly
Replies: 19
Views: 3312

Re: -DPIScale not working properly

There is another way to force the raster upscaling through the registry by adding the following key: On [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\YourScript.exe] "dpiAwareness"=dword:00000000 Off [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Cu...

Go to advanced search