Search found 121 matches
- 27 Feb 2023, 02:03
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2243
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
I'm no longer supporting this code. It works as intended. Further modifications will only bring more bugs. My best advice for those wanting to use this beyond it's original intent is to get the source code from the OP and write some c# classes to your liking and use it with CLR.ahk.
- 27 Feb 2023, 01:31
- Forum: Scripts and Functions (v2)
- Topic: [Function] DownloadWithProgress
- Replies: 2
- Views: 881
Re: [Function] DownloadWithProgress
@dd900 Nice! Like it. :thumbup: Too bad it causes a zero-division error on line 32: Screenshot If you hit continue, it works fine, though. So I'd put that line of code in a try block to catch the error. I've used it hundreds of times now and have never had that error. I can't see a place in the cod...
- 19 Feb 2023, 22:30
- Forum: Tips and Tricks
- Topic: MVC pattern example
- Replies: 15
- Views: 5260
Re: MVC pattern example
I thought it might be useful to show a simple example where the Model communicates with the Viewer and/or the Controller since "MVC dictates that all user data be stored in the Model layer" [ ref ]. class Model { __New(MaxCount, MsgNumber := 0x5555) { this.max_count := MaxCount this.msg_number := M...
- 19 Feb 2023, 15:27
- Forum: Scripts and Functions (v2)
- Topic: [2.0.2]cimgui--An attempt of dynamic binding
- Replies: 4
- Views: 1200
- 19 Feb 2023, 15:18
- Forum: Scripts and Functions (v2)
- Topic: [Function] DownloadWithProgress
- Replies: 2
- Views: 881
[Function] DownloadWithProgress
Original post and function here . Credit goes to Bruttosozialprodukt Another post here This could probably use some error handling and possibly some more parameters for customization, but it does work as is. Eventually I plan to re-write the function to allow cancelling the download. As far as I'm a...
- 13 Feb 2023, 00:50
- Forum: Ask for Help (v2)
- Topic: Couple questions regarding GUI callbacks Topic is solved
- Replies: 4
- Views: 513
Re: Couple questions regarding GUI callbacks Topic is solved
Thanks again for the clarification.
- 12 Feb 2023, 22:12
- Forum: Ask for Help (v2)
- Topic: Couple questions regarding GUI callbacks Topic is solved
- Replies: 4
- Views: 513
Re: Couple questions regarding GUI callbacks Topic is solved
Thank you. I reread that section about callbacks over and over again. Not sure why I couldn't wrap my head around it. I get it now. If the script is not persistent for any other reason, it will exit after the last visible GUI is closed ; either when the last thread completes or immediately if no thr...
- 12 Feb 2023, 18:34
- Forum: Ask for Help (v2)
- Topic: Couple questions regarding GUI callbacks Topic is solved
- Replies: 4
- Views: 513
Couple questions regarding GUI callbacks Topic is solved
Just downloaded the latest AHK v2. Finally made the leap... I'm having some trouble understanding where, when, why, and if I need to return a value from a GUI callback function. Normally I would just continue to test and figure it out, but I'm not sure "what to test" in order to figure it out. As fa...
- 24 Jan 2023, 02:03
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2243
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
i think there is a bug in GetStringEncoding No bug. It just doesn't work well with strings. I pointed it out in the OP. GetStringEncoding <-- Not Very Useful, but it's there GetStringEncoding was never meant to be used in production. I put it there for the sake of trying it. If I have time in the n...
- 11 Jan 2022, 21:21
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2243
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
I'm excited to try this out. If it's not too much trouble, I could really use a 32-bit version also. I have three questions: 1) If you point it to a file that does not contain valid UTF-8 strings (was created with some local codepage) but which was erroneously given a UTF-8 BOM, what does this tool...
- 28 Dec 2021, 15:34
- Forum: Scripts and Functions (v1)
- Topic: [LIB] LV_EX - update on 2016-04-28
- Replies: 74
- Views: 49005
Re: [LIB] LV_EX - update on 2016-04-28
just me Thanks for the help. Here are the two working functions LV_GetGroupItemsCount(HLV, gId) { static LVM_GETGROUPINFO := 0x1095 , LVGF_ITEMS := 0x4000 cItemsOffset := A_PtrSize = 8 ? 128 : 84 , LVG_Size := A_PtrSize = 8 ? 152 : 96 , VarSetCapacity(LVGROUP, LVG_Size, 0) , NumPut(LVG_Size, LVGROU...
- 28 Dec 2021, 14:44
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2243
[Dll] UdeExport.dll (x64) Detect File/String Encoding
No longer supported. UdeExport.dll (x64) based on Mozilla Universal Charset Detector (Ude C# port) if there is need for a x86 build let me know. x86 dll added Original code for Ude can be found here . "Mostly" Accurate Encoding Detector Not much different than the original. I updated some of the cod...
- 16 Dec 2021, 20:43
- Forum: Scripts and Functions (v1)
- Topic: .NET Framework Interop (CLR, C#, VB)
- Replies: 201
- Views: 118838
Re: .NET Framework Interop (CLR, C#, VB)
Here is an easy way to communicate with your ahk script from C#. I'm using .Net 4.8 with C# 9 Add class AhkMessenger to your c# project, or add the relevant code to a class you already have using System; using System.Runtime.InteropServices; namespace Whatever { public class Test // Example { privat...
- 14 Dec 2021, 17:05
- Forum: AHK Studio
- Topic: V2 Syntax for AHK Studio
- Replies: 4
- Views: 5764
Re: V2 Syntax for AHK Studio
The file was invalid xml. There were html remnants <em></em> , <kbd></kbd> , <strong></strong> among others. Also found a couple " that needed to be ' . I cleaned up the file and AhkStudio doesn't delete it. I'm not sure if it is working or not. I don't know how to set the language and most editors ...
- 06 Dec 2021, 16:44
- Forum: AutoHotkey_H
- Topic: FileSelectFile not working with AHK_H
- Replies: 1
- Views: 2464
FileSelectFile not working with AHK_H
Latest 64bit & 32bit Unicode AHK_H v1 This causes AHK_H to hang indefinitely. FileSelectFile, exe, 3,, Select Executable, Exe Files (*.exe) I've also tried SKAN's FileSelectFile() which gives the same result. Edit 1: DllCalls to comdlg32.dll\GetSaveFileName and comdlg32.dll\GetOpenFileName seem to b...
- 02 Dec 2021, 19:48
- Forum: Scripts and Functions (v1)
- Topic: [LIB] LV_EX - update on 2016-04-28
- Replies: 74
- Views: 49005
Re: [LIB] LV_EX - update on 2016-04-28
There are LVM_GETGROUPINFO and LVM_SETGROUPINFO messages which might be used to get/set the information. Changing the Header was pretty straight forward LV_GroupSetHeader(HLV, gId, sHeader) { ; LVGF_HEADER := 0x1 ; LVM_SETGROUPINFO := 0x1093 LVG_Size := (A_PtrSize * 6) + (17 * 4) , VarSetCapacity(L...
- 27 Nov 2021, 19:56
- Forum: Ask for Help (v1)
- Topic: Send ñ or Ñ
- Replies: 6
- Views: 1818
Re: ñ'Ñ'
try
or
https://www.autohotkey.com/docs/Hotkeys.htm#combo
https://www.autohotkey.com/docs/Hotkeys.htm#Symbols
Code: Select all
'&n::Send ñ
'&N::Send Ñ
`::Send {`}
Code: Select all
~'&n::Send ñ
~'&N::Send Ñ
https://www.autohotkey.com/docs/Hotkeys.htm#Symbols
- 27 Nov 2021, 17:26
- Forum: Scripts and Functions (v1)
- Topic: [LIB] LV_EX - update on 2016-04-28
- Replies: 74
- Views: 49005
Re: [LIB] LV_EX - update on 2016-04-28
Is it possible to change the header text of an existing group?
and
Is there a way to get the number of items in a group?
and
Is there a way to get the number of items in a group?
- 27 Nov 2021, 14:22
- Forum: Ask for Help (v1)
- Topic: Is it possible to change a Group Header in a grouped listview
- Replies: 0
- Views: 497
Is it possible to change a Group Header in a grouped listview
I have a ListView with around ~5000 items backed by an array of objects. I use a DropDownList to control grouping. All is working fine. One of my grouping options is to group the items by their path. And one of my listview contextmenu options is to move an entire folder. All works fine there as well...
- 07 Nov 2021, 11:26
- Forum: Ask for Help (v1)
- Topic: Can a control class Monitor its own messages?
- Replies: 2
- Views: 409
Re: Can a control class Monitor its own messages?
Hi @dd900, does this thread help at all? For the second issue, certainly, just me showed how to do it with WM_CTLCOLOR back here , Edit: For highlighted or selected text, not sure. Think you want a rich edit control like this for example. Tutorial . Edit2: As an alternative, this thread shows how t...