InstaNote seems to lack a lot of basic edit control functions, such as selecting and inserting characters in the middle, the link below may help you.
https://www.codeproject.com/Articles/1259387/Drawing-Rich-Text-with-GDIplus
Search found 14 matches
- 20 Jun 2022, 22:35
- Forum: Ask for Help (v1)
- Topic: edit control
- Replies: 15
- Views: 2368
- 27 Dec 2021, 10:23
- Forum: Ask for Help (v1)
- Topic: Troubles with UxTheme DllCall
- Replies: 6
- Views: 777
Re: Troubles with UxTheme DllCall
This is correct: a := NumGet(bits, offset, "UInt") cb := a & 0xff cg := (a >> 8) & 0xff cr := (a >> 16) & 0xff This is wrong: cb:=NumGet(&a, 0,"UChar") cg:=NumGet(&a, 1,"UChar") cr:=NumGet(&a, 2,"UChar") This is correct: cb := NumGet(bits, offset, "UChar") cg := NumGet(bits, offset + 1, "UChar") cr...
- 26 Dec 2021, 11:41
- Forum: Ask for Help (v1)
- Topic: Troubles with UxTheme DllCall
- Replies: 6
- Views: 777
Re: Troubles with UxTheme DllCall
the dll should be loaded explicitly beforehand, otherwise any pointers/handles/resources u get back from DllCalls are immediately invalidated by subsequent calls the DllCall types should be fixed - a UInt is not necessarily a Ptr, an Int is not a Ptr nor is a Str necessarily a WStr why are u closin...
- 25 Dec 2021, 04:15
- Forum: Ask for Help (v1)
- Topic: Troubles with UxTheme DllCall
- Replies: 6
- Views: 777
Troubles with UxTheme DllCall
I tried to translate the following c++ code to autohotkey but got a null result, someone help please! c++ https://github.com/krlvm/ContextMenuNormalizer/blob/d3f7fa571950825b22661b6c1f65c4c2c8e7808f/ContextMenuNormalizer/ContextMenuNormalizer.cpp HBITMAP hBitmap; HTHEME hTheme = OpenThemeData(GetFor...
- 25 Dec 2021, 04:14
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Re: Troubles with DLLCall
Sorry to reply after half a year. For those who want to use Intel Power Gadget on ahk, I just want to say don't waste time, because Intel has not updated the API for a long time, and a lot of returned data is wrong for the new CPU.
- 02 Jun 2021, 03:56
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Re: Troubles with DLLCall
what i wrote: VarSetCapacity(Data, 3 * 8) ; double is 8 bytes large and theres 3 of them... DllCall(pGetPowerData,"int",0,"int",1,"Ptr",&Data,"int*",nData := 0) MsgBox % "Average Power (in Watts): " NumGet(Data, 0, "Double") what u wrote: GetCPUTemperature() { VarSetstrCapacity (Data, 3 * 8) DllCal...
- 02 Jun 2021, 02:36
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Re: Troubles with DLLCall
Error: Call to nonexistent function. Specifically: VarSetStrCapacity(Data, 3 * 8) In ahk v1, should I use VarSetCapacity instead of VarSetStrCapacity? yes, my typo What is the difference between "Ptr",&Data and "Ptr*",Data? u use "Ptr", &varSetCapacityAllocatedVar when u need to pass (usually large...
- 01 Jun 2021, 13:15
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Re: Troubles with DLLCall
@jeeswg has long since been banned, so dont be expecting any help from him any time soon cant be bothered installing this driver, so ull just have to take my word for it first, u have the official docs here: https software.intel.com /content/www/us/en/develop/blogs/using-the-intel-power-gadget-30-a...
- 31 May 2021, 11:37
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Re: Troubles with DLLCall
@jeeswg please help !
- 31 May 2021, 11:32
- Forum: Ask for Help (v1)
- Topic: Troubles with DLLCall
- Replies: 11
- Views: 1266
Troubles with DLLCall
Intel Power Gadget 3.0 API can get cpu information, so I tried to translate the following c++ code to autohotkey but got an 0.000000 result, someone help me please! autohotkey code: SetWorkingDir %A_ScriptDir% ; EnergyLib := DllCall("LoadLibrary", "Str", A_ScriptDir "\EnergyLib64.dll", "Ptr") pIntel...
- 21 Apr 2021, 17:12
- Forum: Ask for Help (v1)
- Topic: Help with 3rd-party DLLs and CLR.ahk
- Replies: 2
- Views: 426
Re: Help with 3rd-party DLLs and CLR.ahk
@burque505
- 21 Apr 2021, 00:51
- Forum: Ask for Help (v1)
- Topic: Help with 3rd-party DLLs and CLR.ahk
- Replies: 2
- Views: 426
Help with 3rd-party DLLs and CLR.ahk
I tried to translate the following powershell script to autohotkey but got an error 0x80131509. ILSpy : https://imgur.com/a/5jtXOxG powershell Add-Type -Path "C:\Users\Admin\Desktop\OpenHardwareMonitor\OpenHardwareMonitorLib.dll" $Comp = New-Object -TypeName OpenHardwareMonitor.Hardware.Computer $Co...
- 19 Apr 2021, 06:25
- Forum: Scripts and Functions (v1)
- Topic: .NET Framework Interop (CLR, C#, VB)
- Replies: 201
- Views: 120646
Re: .NET Framework Interop (CLR, C#, VB)
What is the difference between clr.ahk and pythonnet? It is easy to use OpenHardwareMonitorLib.dll in vb, powershell, and even python (pythonnet), I don't understand why it is so difficult to use OpenHardwareMonitorLib.dll in autohotkey. import clr clr.AddReference("c:/OpenHardwareMonitorLib.dll") f...
- 18 Apr 2021, 23:41
- Forum: Scripts and Functions (v1)
- Topic: .NET Framework Interop (CLR, C#, VB)
- Replies: 201
- Views: 120646
Re: .NET Framework Interop (CLR, C#, VB)
lexikos please help, I tried to translate the following powershell script to autohotkey but got an error 0x80131509. ILSpy : https://imgur.com/a/5jtXOxG powershell Add-Type -Path "C:\Users\Admin\Desktop\OpenHardwareMonitor\OpenHardwareMonitorLib.dll" $Comp = New-Object -TypeName OpenHardwareMonitor...