Search found 299 matches

by pneumatic
05 Feb 2019, 05:21
Forum: Ask For Help
Topic: Determine if a Unicode character is supported
Replies: 17
Views: 2893

Re: Determine if a Unicode character is supported

How about this ? It is just several seconds idea. myUniCode := 0x263E myCharacter := Chr(myUniCode) myCode := Asc(myCharacter) SetFormat, IntegerFast, H MsgBox % myUniCode = myCode ? "O" : "X" ^ It appears to work correctly on ahk 1.1 for some characters, but not others (shows O when not supported)...
by pneumatic
05 Feb 2019, 04:20
Forum: Ask For Help
Topic: Determine if a Unicode character is supported
Replies: 17
Views: 2893

Determine if a Unicode character is supported

Chr(0x263E) ;moon symbol On some systems the above character will just display as a square box, which I presume means the character is not supported by the system. Whereas on other systems the character displays correctly. Is there any way to determine if the user's system supports a character, tha...
by pneumatic
28 Jan 2019, 07:25
Forum: Ask For Help
Topic: Loop, Files SPEED UP
Replies: 17
Views: 2783

Re: Loop, Files SPEED UP

I have noticed that on my Windows 7 machine with User Account Control disabled, looping through files is very fast. On Windows 10 I have found that looping through files is extremely slow. In my case I could only loop about 8 files before the "slow down" kicks in. Also I noticed the same thing as je...
by pneumatic
06 Jan 2019, 07:22
Forum: Scripts and Functions
Topic: XGraph v1.1.1.0 : Real time data plotting.
Replies: 27
Views: 29639

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: 27
Views: 29639

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

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

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

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

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

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

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

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

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

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

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

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: 27
Views: 29639

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: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 224493

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

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

Go to advanced search