Search found 228 matches

by pneumatic
12 Jul 2019, 20:42
Forum: Ask For Help
Topic: COM object CPU leak in Win 10 Topic is solved
Replies: 3
Views: 263

Re: COM object CPU leak in Win 10 Topic is solved

Found the culprit, it was the motherboard's ethernet controller driver ("Killer E2200 Gigabit Ethernet Controller"). Motherboard is an Asrock Z97X Killer. I already knew that Killer ethernet software was dodgy as its "bandwidth control" feature was randomly turning itself on and throttling my networ...
by pneumatic
12 Jul 2019, 06:42
Forum: Ask For Help
Topic: COM object CPU leak in Win 10 Topic is solved
Replies: 3
Views: 263

Re: COM object CPU leak in Win 10 Topic is solved

Thanks.

I guess it must be something about my system configuration causing it. I will try a fresh install of Windows.
by pneumatic
12 Jul 2019, 06:00
Forum: Ask For Help
Topic: How do I set process priority to all child processes? Topic is solved
Replies: 9
Views: 228

Re: How do I set process priority to all child processes? Topic is solved

me: baby tier
teadrinker: hardcore tier
swagfag: elegant tier
by pneumatic
12 Jul 2019, 05:05
Forum: Ask For Help
Topic: How do I set process priority to all child processes? Topic is solved
Replies: 9
Views: 228

Re: How do I set process priority to all child processes? Topic is solved

This may work for some but not all of the child processes. Use something like Process Explorer to confirm (View -> Select Columns -> Process Performance -> Base Priority. 8=Normal, 13=High). #Persistent Run "c:\Program Files (x86)\Firefox Quantum\firefox.exe" --profile "c:\Users\username\AppData\Roa...
by pneumatic
12 Jul 2019, 02:19
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 9
Views: 306

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

With some experiments and in hindsight, I just need the trailing "\". (You don't need GetReliablePath, pneumatic.) I found that it can still fail if you don't change the starting directory every time. The purpose is to stop Windows from trying to be clever: The algorithm for selecting the initial d...
by pneumatic
11 Jul 2019, 21:30
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 9
Views: 306

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

This was my workaround for 64-bit Unicode compiled .exe FileSelectFile , SelectedFile ,, % GetReliablePath( Path . "\Folder" ) , Select File , Videos (*.mp4) GetReliablePath(Path){ static LastPath If (Path = LastPath){ StringRight , LastChar , Path , 1 If (LastChar = "\") StringTrimRight , Path , Pa...
by pneumatic
11 Jul 2019, 20:39
Forum: Ask For Help
Topic: COM object CPU leak in Win 10 Topic is solved
Replies: 3
Views: 263

COM object CPU leak in Win 10 Topic is solved

This only occurs on my Windows 10 install (v1903 May 2019). Windows 7 appears unaffected. Code is from https://www.autohotkey.com/docs/commands/URLDownloadToFile.htm (it just downloads the current version number of ahk from https://autohotkey.com/download/1.1/version.txt) #Persistent return ^1:: ;Ct...
by pneumatic
30 May 2019, 13:14
Forum: Scripts and Functions
Topic: UTF-8 ini files
Replies: 8
Views: 1674

Re: UTF-8 ini files

Thanks.

To be safe I changed all my ini files to UTF-16, aka "USC2-LE-BOM", by using the parameter UTF-16 with FileAppend.

In future I think I'll just avoid using iniread/write and do it manually.
by pneumatic
29 May 2019, 10:17
Forum: Scripts and Functions
Topic: UTF-8 ini files
Replies: 8
Views: 1674

Re: UTF-8 ini files

I guess UTF-8 is using 1 byte per character which makes it compatible with ANSI which Get/WritePrivateProfileString are interpreting the file as.

But I still don't understand how it knows how many bytes per char are being used by UTF-8 as it could be up to 3.
by pneumatic
29 May 2019, 08:06
Forum: Scripts and Functions
Topic: UTF-8 ini files
Replies: 8
Views: 1674

Re: UTF-8 ini files

UCS-2 LE BOM = UTF-16 LE BOM There's nothing 'wrong' with the IniRead/IniWrite functions per se, just that they can only handle UTF-16 (UTF-16 files are often bigger in size than UTF-8 files if your language uses the Latin alphabet) and ANSI (Unicode to ANSI is lossy). FileAppend,, ini.ini, UTF-8-R...
by pneumatic
27 May 2019, 07:05
Forum: Bug Reports
Topic: DropDownList undocumented behaviour
Replies: 5
Views: 432

Re: DropDownList undocumented behaviour

Why do you want to use a timer to check if the selection in the DropDownList has changed? That's a task for a g-label Unfortunately I have some cases where I can't do that because the DDL selection controls some things external to the application which could change and needs to be enforced with a t...
by pneumatic
27 May 2019, 03:31
Forum: Bug Reports
Topic: DropDownList undocumented behaviour
Replies: 5
Views: 432

Re: DropDownList undocumented behaviour

lexikos wrote:
27 May 2019, 02:30
When the script explicitly assigns to it (or uses it as an output variable)

On further consideration, this isn't actually what my code does, because GuiControlGet uses the output variable CurrVal, not DropDownList, nor does it explicitly assign to DropDownList.
by pneumatic
27 May 2019, 03:07
Forum: Bug Reports
Topic: DropDownList undocumented behaviour
Replies: 5
Views: 432

Re: DropDownList undocumented behaviour

Gui , Main: New Gui , Add , DropDownList , vDropDownList w150, One||Two|Three Gui , Add , Text , vText xp+180 w150 , vDropDownList: Gui , Show , Center SetTimer , GetDDL , 250 return GetDDL: GuiControlGet , CurrVal , Main:, DropDownList GuiControl , Main: , Text , vDropDownList: %CurrVal% return ht...
by pneumatic
27 May 2019, 01:47
Forum: Bug Reports
Topic: DropDownList undocumented behaviour
Replies: 5
Views: 432

DropDownList undocumented behaviour

When the Gui Submit command is used, the control's associated output variable (if any) receives the text of the currently selected item. But it should also mention the output variable receives the item's text before the Gui Submit command is used, if the user is hovering the mouse over a DDL item. ...
by pneumatic
08 May 2019, 17:39
Forum: Ask For Help
Topic: Round() inconsistency
Replies: 6
Views: 342

Re: Round() inconsistency

This is no bug, the result is because the number 1.005 cannot be exactly represented as a float. Instead, 1.005 is stored as something sligthly less. 1.05 cannot either but is stored as something sligthly larger. You can use format to display the float with as many decimal places you like. Thanks, ...
by pneumatic
08 May 2019, 11:14
Forum: Ask For Help
Topic: Round() inconsistency
Replies: 6
Views: 342

Round() inconsistency

Code: Select all

n := 1.05
MsgBox % Round(n,1)
Image

Code: Select all

n := 1.005
MsgBox % Round(n,2)
Image
by pneumatic
04 May 2019, 11:36
Forum: Bug Reports
Topic: SetFormat inconsistent behaviour
Replies: 2
Views: 360

Re: SetFormat inconsistent behaviour

If I SetFormat to 15 or 16 decimal places, the result is the same, but 17 decimal places and the numbers are no longer identical in the MsgBox. Putting SetFormat 15 or 16 decimal places directly before the calculation and MsgBox, doesn't change this behaviour.
by pneumatic
03 May 2019, 13:26
Forum: Bug Reports
Topic: SetFormat inconsistent behaviour
Replies: 2
Views: 360

SetFormat inconsistent behaviour

MsgBox tells me my vars are equivalent, but behind the scenes they aren't. Can't debug my script with MsgBox because it's telling me lies :( #SingleInstance Force SetFormat , Float , 0.3 ;also, removing this makes both tests not equal, ;but only if I don't put it in any functions Test1() Test2() ret...
by pneumatic
28 Mar 2019, 20:45
Forum: Ask For Help
Topic: Efficient way to remove elements from array Topic is solved
Replies: 13
Views: 745

Re: Efficient way to remove elements from array Topic is solved

The most efficient way would be to pluck the elements you would like to remain and place them in their own new array But I didn't want to change the name of the array, I just wanted to remove elements from the already existing array. Restoring the original name seems to require a lot of extra proce...
by pneumatic
28 Mar 2019, 18:38
Forum: Ask For Help
Topic: Efficient way to remove elements from array Topic is solved
Replies: 13
Views: 745

Efficient way to remove elements from array Topic is solved

Hello

Code: Select all

Array := [1,0,1,1,0,1,0,0,0,1,0]
What is the most efficient way to remove all the 0's from this array, leaving no "blank" elements?

Thanks

Go to advanced search