Search found 93 matches
- 13 Jun 2022, 12:03
- Forum: Ask for Help (v1)
- Topic: How to check a checkbox from a non ahk gui?
- Replies: 1
- Views: 238
How to check a checkbox from a non ahk gui?
How to check and uncheck a checkbox from a non ahk GUI? I tried to check, where classnn is something like Button1: Control, Check,, %ClassNN%, ahk_id %hWnd% Also how to replace the content of an edit control on a non ahk GUI? Tried unsuccessfully: Control, EditPaste, %Value% , %ClassNN%, ahk_id %hWn...
- 03 Jun 2022, 15:15
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
@FanaticGuru
How to call the function when its an obj as Data_Array[1] instead of Data_Array[1,"Stuff"]
I tried calling it as
How to call the function when its an obj as Data_Array[1] instead of Data_Array[1,"Stuff"]
I tried calling it as
Code: Select all
obj := SortObj(obj, "", "a")
- 03 Jun 2022, 07:33
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
Here is a more robust version of my original SortObj that allows for passing a function to control how elements are indexed for sorting: Data_Array := {} Data_Array[1,"Stuff"] := {a: "test30" , b: "d 2" , c: "x 1", d: "pear"} Data_Array[2,"Stuff"] := {a: "test10", b: "d 1" , c: "x 10", d: "apple"} ...
- 02 Jun 2022, 05:30
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
obj := {} obj[1] := {a: "test1" , b: "e" , c: "x 1"} obj[2] := {a: "test10", b: "d" , c: "x 10"} obj[3] := {a: "test20", b: "c" , c: "x 20"} obj[4] := {a: "test30", b: "b" , c: "x 2"} obj[5] := {a: "test3" , b: "a" , c: "x 3"} obj2 := objsort(obj, "b") the function doesn't support when there are no...
- 01 Jun 2022, 19:51
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
I didn't meant to be lazy or something like, as soon you answered I went to your github and tried to extract the function, however I wasnt able to understand the concepts used there, I mean, how it was coded using classes
- 01 Jun 2022, 18:57
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
I think the OP wants the biga() function extracted for them. Of course, they could just download the package and extract it themselves. :think: Russ ofc I tried to open the lib and copy just the necessary function, but I couldn't because it depends on many others looks like the lib is created as a ...
- 01 Jun 2022, 15:09
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
Re: How to sort object alphabetically by key?
hi, can you share just the function needed? would like to not use includes
- 01 Jun 2022, 14:08
- Forum: Ask for Help (v1)
- Topic: How to sort object alphabetically by key?
- Replies: 22
- Views: 3046
How to sort object alphabetically by key?
testObj:= {} testObj[1]:= {a: "test1"} testObj[2]:= {a: "test10"} testObj[3]:= {a: "test20"} testObj[4]:= {a: "test30"} testObj[5]:= {a: "test3"} for i, j in (testObj, srr:= []) for k, l in (j, ij:=j) an:= RegExReplace(l, "[0-9]"), nu:= RegExReplace(l, "[^0-9]") , srr[an]? "": srr[an]:=[], srr[an][...
- 27 May 2022, 05:34
- Forum: Ask for Help (v1)
- Topic: Getting CPU and GPU temps with OpenHardwareMonitorLib
- Replies: 14
- Views: 3570
Re: Getting CPU and GPU temps with OpenHardwareMonitorLib
great job! does any of your libs or SysMeter support read CPU temperature, use etc?jNizM wrote: ↑27 May 2022, 04:55AutoHotkey can do more informations for Nvidia Cards too:
viewtopic.php?f=83&t=95112 (NVIDIA NvAPI)
viewtopic.php?f=83&t=95175 (NVIDIA NVML)
- 17 Apr 2022, 17:20
- Forum: Ask for Help (v1)
- Topic: There's a faster alternative to the WINAPI GetPixel?
- Replies: 1
- Views: 388
There's a faster alternative to the WINAPI GetPixel?
i was searching for a faster alternative to GetPixel and i've found this topic: https://stackoverflow.com/questions/26727293/faster-than-getpixel i tried to use LockBits , like this: pBitmap := Gdip_BitmapFromHWND(hWnd) w := 20 h := 70 E1 := Gdip_LockBits(pBitmap, 0, 0, W, H, Stride, Scan0, BitmapDa...
- 23 Mar 2022, 19:51
- Forum: Scripts and Functions (v2)
- Topic: Ziggle() : A handy tool to lookup Win32 Constants
- Replies: 97
- Views: 21890
Re: Ziggle() : A handy tool to lookup Win32 Constants
Please ahkv1 version? why v2
- 08 Feb 2022, 16:41
- Forum: Ask for Help (v1)
- Topic: How to paint into an Edit control DC and while keeping the control text visible?
- Replies: 3
- Views: 405
Re: How to paint into an Edit control DC and while keeping the control text visible?
Do you mean catch each keystroke sent into the control, maybe by handling WM_KEYDOWN messages andu have to do all of that urself
replicate it, drawing the text into the dc with User32.dll\DrawText?
- 08 Feb 2022, 12:54
- Forum: Ask for Help (v1)
- Topic: How to paint into an Edit control DC and while keeping the control text visible?
- Replies: 3
- Views: 405
How to paint into an Edit control DC and while keeping the control text visible?
Im trying to paint into an edit control DC, the problem is the control text disappear. I tried painting in the DC returned from the message WM_CTLCOLOREDIT and also subclassing the GUI and painting directly when it sends the WM_PAINT message. This is the result i got: Test1 - Using WM_CTLCOLOREDIT a...
- 04 Feb 2022, 11:33
- Forum: Ask for Help (v1)
- Topic: How to customize the scrollbar of controls?
- Replies: 0
- Views: 316
How to customize the scrollbar of controls?
OnMessage(0x0133, "WM_CTLCOLOREDIT") Gui, +E0x02000000 +E0x00080000 Gui, Color, 0 Loop, 90 Text.="Text" Gui, Add, Edit, w50 h90 0x004 -Theme -E0x200, %Text% Gui, Show Return WM_CTLCOLOREDIT(HDC, HWND) { ; 16777215 white text. DllCall("Gdi32.dll\SetTextColor", "Ptr", HDC, "UInt", 16777215) ; TRANSPA...
- 25 Jan 2022, 18:44
- Forum: Scripts and Functions (v1)
- Topic: Imagen() : A fade-in/fade-out animator for picture control
- Replies: 63
- Views: 13830
Re: Imagen() : A fade-in/fade-out animator for picture control
Thanks SKAN perfect now, do you know how to make good rounded border pictures?
I have found some functions in the forum but none give a good result.
Something like this:
I have found some functions in the forum but none give a good result.
Something like this:
Spoiler
- 25 Jan 2022, 13:43
- Forum: Scripts and Functions (v1)
- Topic: Imagen() : A fade-in/fade-out animator for picture control
- Replies: 63
- Views: 13830
Re: Imagen() : A fade-in/fade-out animator for picture control
The script works when i run it with AutoHotkeyU32 but no U64, it's an x32 version only?
- 23 Jan 2022, 18:39
- Forum: Scripts and Functions (v1)
- Topic: Imagen() : A fade-in/fade-out animator for picture control
- Replies: 63
- Views: 13830
Re: Imagen() : A fade-in/fade-out animator for picture control
Ok @pv007. Thought I should write a demo and see it for myself. I won't include this in Imagen() as Windows 7 doesn't support WS_EX_LAYERED for controls. SKAN im trying to run your example but nothing happens, the GUI is entire blank, the image was downloaded successfully, also tested with other im...
- 22 Jan 2022, 00:14
- Forum: Ask for Help (v1)
- Topic: ComObjConnect with function inside of class
- Replies: 1
- Views: 310
ComObjConnect with function inside of class
Is possible to use ComObjConnect with a function thats inside of a class? Tried to reply this post from Lexikos: https://www.autohotkey.com/boards/viewtopic.php?t=18348 But i didn't understand how to write it: Class MyClass { ProcessCreate_OnObjectReady(obj){ ; https://docs.microsoft.com/en-us/windo...
- 21 Jan 2022, 17:22
- Forum: Scripts and Functions (v1)
- Topic: [Class] WinHook
- Replies: 53
- Views: 23707
Re: [Class] WinHook
Possible to detect when a process doesnt exist anymore using SetWindowsHookEx?
- 21 Jan 2022, 11:23
- Forum: Ask for Help (v1)
- Topic: How to Measure a function speed? Topic is solved
- Replies: 1
- Views: 371
How to Measure a function speed? Topic is solved
There's any other way to measure the speed of a function? SetBatchLines, -1 Time := (A_TickCount) Loop, 10 Foo() Time := (A_TickCount - Time)/10 MsgBox Time: %Time% Foo() { ; Function ... } Sometimes my function takes 0ms and sometimes 15ms. I have already seen some scripts using a dllcall to QueryP...