Search found 196 matches

by pneumatic
06 Jan 2019, 07:22
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 25
Views: 15961

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

Why not call XGraph_Detach() in GuiClose routine? Because it doesn't delete the hTargetBM! Also just wanted to say a huge thanks for XGraph which makes my app a lot better :+1: It might be better to just use one of the alternative graph libraries on this forum then. I didn't know there were any oth...
by pneumatic
05 Jan 2019, 14:10
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 25
Views: 15961

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

There is a memory leak in XGraph of about ~700kB on my system (Windows 7 x64) which can be fixed by

Code: Select all

DllCall( "DeleteObject", "Ptr", hTargetBM  )
I just call this once when the user closes the window containing the XGraph
by pneumatic
31 Dec 2018, 01:28
Forum: Ask For Help
Topic: DllCall problem: convert array of WCHARs to string Topic is solved
Replies: 7
Views: 228

Re: DllCall problem: convert array of WCHARs to string Topic is solved

nnnik wrote:
30 Dec 2018, 10:38

Code: Select all

Msgbox % StrGet(&hPhysMons + A_PtrSize, 128, "UTF-16")
Thanks nnnik!

But why doesn't this work.

Code: Select all

monDescription := NumGet(hPhysMons, A_PtrSize )
msgbox % StrGet(&monDescription, 128, "UTF-16")
by pneumatic
30 Dec 2018, 09:38
Forum: Ask For Help
Topic: DllCall problem: convert array of WCHARs to string Topic is solved
Replies: 7
Views: 228

DllCall problem: convert array of WCHARs to string Topic is solved

Hello, I am trying to get the description of the monitor which a DllCall returns as an array of WCHARs, but I've no idea how to convert that into a usable string in AHK. DllCall("LoadLibrary", "Str", "dxva2.dll", "Ptr") ;Get handle to primary monitor hMon := DllCall("MonitorFromPoint" , "Int64", 0 ;...
by pneumatic
29 Dec 2018, 08:23
Forum: Ask For Help
Topic: RegisterCallback()
Replies: 0
Views: 73

RegisterCallback()

Hello In the documentation for RegisterCallback() there is this example: EnumAddress := RegisterCallback("EnumWindowsProc", "Fast") DllCall("EnumWindows", Ptr, EnumAddress, Ptr, 0) ; Pass control to EnumWindows(), which calls the callback repeatedly MsgBox %Output% ; Display the information accumula...
by pneumatic
11 Nov 2018, 18:44
Forum: Ask For Help
Topic: Make progress bar's background transparent Topic is solved
Replies: 3
Views: 215

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

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

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

Re: Thread limitation

nnnik wrote:
21 Oct 2018, 01:50
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: 378

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

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

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

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: 25
Views: 15961

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: 495
Views: 95119

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

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: 495
Views: 95119

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: 495
Views: 95119

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: 495
Views: 95119

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

Go to advanced search