Search found 190 matches

by pneumatic
11 Nov 2018, 18:44
Forum: Ask For Help
Topic: Make progress bar's background transparent Topic is solved
Replies: 3
Views: 100

Re: Make progress bar's background transparent Topic is solved

Thanks, that would work, but then my progress bar has to live in its own separate window, and so I need to write some convoluted stuff to have it follow around my other GUI window if the user happens to drag it. edit: maybe it could be made as a child window and with no title bar so the user can't m...
by pneumatic
11 Nov 2018, 16:32
Forum: Ask For Help
Topic: Make progress bar's background transparent Topic is solved
Replies: 3
Views: 100

Make progress bar's background transparent Topic is solved

Hello I know this is probably not possible as +BackgroundTrans only supports a few controls, but I'm still hanging on the possibility of applying it to a Gui Progress control (not to be confused with the Progress command which creates its own separate window/splashscreen type thingy). Is there some ...
by pneumatic
21 Oct 2018, 13:19
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Re: Thread limitation

It means you shouldn't pass (to CreateThread() )a pointer from registercallback("fn") , since that is not designed to run in multiple threads. You can pass anything else which is ofc, eg a pointer to a function in some dll which is designed to run in mulitple threads. Cheers. Is it still safe if th...
by pneumatic
21 Oct 2018, 09:28
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Re: Thread limitation

It's fine as long as you never touch the AHK interpreter.
What do you mean by this exactly?
by pneumatic
20 Oct 2018, 09:15
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Re: Thread limitation

So by having multiple scripts run different tasks we would have a pseudo multi threaded global script when they interact all together??? :) Yes but it's stupid because your end users don't want to have all these dumb processes spawning in the background triggering antivirus to stop and ask for perm...
by pneumatic
20 Oct 2018, 03:23
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Re: Thread limitation

So it seems CreateThread can work, but it might create some really weird bugs according to lexikos: https://autohotkey.com/boards/viewtopic.php?f=76&t=24733&p=117223&hilit=CreateThread#p117223 Still tempted to use it as my use case scenario is simple (just one line of code) and only does it once at ...
by pneumatic
18 Oct 2018, 01:01
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Re: Thread limitation

There are other ways to do this, but what you could do it has a small second script to run the DllCall then return the data once it is finish, that way your main script is still going through what it wants then can wait for the DllCall to finish. Yeah I guess that could work, and send a window mess...
by pneumatic
17 Oct 2018, 13:52
Forum: Ask For Help
Topic: Thread limitation
Replies: 11
Views: 268

Thread limitation

Hello In my script I make a DllCall which takes a while, maybe a few seconds before it returns from the DllCall, possibly up to 6 seconds on some systems. I must call this function at every startup of my script. During this time I cannot update a progress bar to let the user know it's loading, or ev...
by pneumatic
16 Oct 2018, 23:34
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 20
Views: 14767

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

I tried to port the Wu Line to ahk but couldn't get it to work properly. It draws the original unantialiased line ok, and then draws some extra antialiasing pixels in the right places where you would expect them, but they are the wrong colour, and in many places no antialiasing pixels at all. The fu...
by pneumatic
12 Oct 2018, 23:22
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 462
Views: 85394

Re: Suggestions on documentation improvements

But then negative numbers will have the same value as positive numbers, eg. -1 = 4294967295 , -2 = 4294967294, -3 = 4294967293 etc. This assumes the user doesn't want to keep their positive and negative numbers distinct from each other, which seems like a bad presupposition to make. Therefore I stil...
by pneumatic
12 Oct 2018, 22:53
Forum: Ask For Help
Topic: Set image scaling mode in Windows 7
Replies: 0
Views: 81

Set image scaling mode in Windows 7

On my Windows 7 SP1 x64 system, when DPI scaling is enabled, Windows insists on using "nearest neighbour" scaling on all my images and icons. Needless to say it looks absolutely dreadful and I simply cannot believe Microsoft would have made such a bad decision. I am convinced I must have a bugged re...
by pneumatic
11 Oct 2018, 23:52
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 462
Views: 85394

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 462
Views: 85394

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 462
Views: 85394

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: 359

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 462
Views: 85394

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: 20
Views: 14767

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: 20
Views: 14767

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: 20
Views: 14767

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: 91

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...

Go to advanced search