Search found 98 matches

by crocodile
22 Jan 2024, 00:53
Forum: Wish List
Topic: A more precise sleep()
Replies: 12
Views: 1127

Re: A more precise sleep()

I recently read something similar in the update log at rust:

https://releases.rs/docs/1.75.0/
Windows: Support sub-millisecond sleep.
by crocodile
11 Nov 2023, 06:28
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

Yes, in the latest H2.0.10 I didn't reproduce the problem. Sorry the H2.0.10 I'm using seems to be some older version. Maybe H should use a version marker somewhere. :)
by crocodile
11 Nov 2023, 04:10
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

t:=gui() t.show("x200 y200 w200 h200") WinSetAlwaysOnTop 1, t.hwnd MyMenu := Menu() MyMenu.Add "Item 1", MenuHandler MyMenu.Add "Item 2", MenuHandler MyMenu.Add return f1:: { ;Make sure the gui is not the active window t.getpos(&x, &y) MyMenu.Show(x, y) } MenuHandler(Item, *) { MsgBox "You selected...
by crocodile
10 Nov 2023, 09:46
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

@thqby
Although this issue was fixed in v2.1-alpha.2, I found it to be incomplete.
If the window is topped, but not the active window. The menu will still be obscured.
I'm using Hv2.0.10 and I'm not sure if this is the same problem in L2 or H2.1.
by crocodile
27 Sep 2023, 06:50
Forum: Scripts and Functions (v2)
Topic: ahk binding library for cimgui
Replies: 19
Views: 3307

Re: ahk binding library for cimgui

Thanks, but I'm terribly sorry, I originally meant to express a desire to add examples that support the RGB format, not BGRA.
by crocodile
27 Sep 2023, 00:10
Forum: Scripts and Functions (v2)
Topic: ahk binding library for cimgui
Replies: 19
Views: 3307

Re: ahk binding library for cimgui

Thanks. Can you add an example of displaying BGRA pixels? GDIP() can display webp/avif which are emerging formats, but it can't display .jxl images because the current version of the jxl library only supports the RGB format and GdipCreateBitmapFromScan0() only supports the BGRA format and I haven't ...
by crocodile
26 Sep 2023, 11:18
Forum: Scripts and Functions (v2)
Topic: ahk binding library for cimgui
Replies: 19
Views: 3307

Re: ahk binding library for cimgui

What image formats does imgui support? I found that it can't open .avif images.
by crocodile
24 Sep 2023, 12:00
Forum: Scripts and Functions (v2)
Topic: ahk binding library for cimgui
Replies: 19
Views: 3307

Re: ahk binding library for cimgui

Thank you for your work.
What are its advantages over imgui4ahk? Which one should I use?
by crocodile
07 Sep 2023, 07:01
Forum: Wish List
Topic: FileAppend() adds clear options
Replies: 1
Views: 759

FileAppend() adds clear options

FileAppend Text [, Filename, Options, clear-bool]

Before FileAppend(), we often need to clear it, adding a method would be much easier.
by crocodile
02 Sep 2023, 11:53
Forum: Ask for Help (v2)
Topic: How do string functions handle special strings?
Replies: 4
Views: 426

Re: How do string functions handle special strings?

Thank you both. Is there a way for AutoHotkey's string function to manipulate these strings? I've found that many other languages can manipulate them, JavaScript for example.
by crocodile
31 Aug 2023, 11:21
Forum: Ask for Help (v2)
Topic: How do string functions handle special strings?
Replies: 4
Views: 426

How do string functions handle special strings?

When I need to manipulate this string "󰀚󰀪󰀫󰀲󰁖󰁗", both SubStr() and StrSplit() fail and don't seem to be able to correctly determine the length of each character. I can only use the regular, '.' still matches each character exactly. I checked the documentation and did not find how to deal with this si...
by crocodile
18 Aug 2023, 11:41
Forum: AutoHotkey Development
Topic: The meaningless "Invalid memory read/write"
Replies: 14
Views: 4092

Re: The meaningless "Invalid memory read/write"

I've noticed that I haven't encountered this error in a long time, and it seems to have been fixed at #325.

https://github.com/AutoHotkey/AutoHotkey/pull/325
by crocodile
14 Aug 2023, 09:15
Forum: AutoHotkey Development
Topic: Objects add inverse order methods
Replies: 4
Views: 1139

Re: Objects add inverse order methods

Sorry, I didn't find anything order related in the documentation (but I really checked the documentation carefully). I tried the following code 1000000 times and got the same order. Can you tell me how to modify this object to break this order? m := Map("a", 1, "b", 2, "c", 3) loop 100 m[A_Index] :=...
by crocodile
12 Aug 2023, 14:27
Forum: AutoHotkey Development
Topic: Objects add inverse order methods
Replies: 4
Views: 1139

Objects add inverse order methods

I'm not sure if this is a good proposal, but in the use of AutoHotkey, I will often use inverse traversal, which is, of course, very cumbersome to implement. I searched some other languages and it seems they all support inverse order traversal. This is the implementation of inverse order using AutoH...
by crocodile
10 Aug 2023, 14:57
Forum: Ask for Help (v2)
Topic: Multiple monitors, different DPI, getting the wrong resolution Topic is solved
Replies: 3
Views: 449

Re: Multiple monitors, different DPI, getting the wrong resolution Topic is solved

Thank you both, I'm happy to have solved the problem.
SetThreadDpiAwarenessContext() is not a perfect solution, either -3 or -4, the window will have a white gap.
The "<dpiAware>True/PM</dpiAware>" method works fine, no problems found so far.
by crocodile
10 Aug 2023, 11:31
Forum: Ask for Help (v2)
Topic: Multiple monitors, different DPI, getting the wrong resolution Topic is solved
Replies: 3
Views: 449

Multiple monitors, different DPI, getting the wrong resolution Topic is solved

Two "3840*2160" monitors in "[2] [1]" arrangement, DPI of [2] is 150%, DPI of [1] is 175%. Use the code below to get the resolution: st := "" loop MonitorGetCount() { MonitorGet(A_Index, &l, &u, &r, &d) st .= '[' a_index '] ' l " " u " " r " " d "`n" } MsgBox st The result obtained is: [1] 3840 0 71...
by crocodile
10 Aug 2023, 09:31
Forum: Ask for Help (v2)
Topic: Does OnMessage have a method to hang all messages?
Replies: 1
Views: 250

Does OnMessage have a method to hang all messages?

I often have a problem with an AutoHotkey window getting stuck. I have found that when I perform an action to close this AutoHotkey window, if the mouse moves over the window and triggers "OnMessage(0x0200, win_move)", it is possible that the window becomes unresponsive. To avoid this problem, when ...
by crocodile
04 Aug 2023, 06:13
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

Your method works.
I have done a similar modification, but I used "WinSetAlwaysOnTop 1, MyMenu.Handle" and it had no effect.
by crocodile
03 Aug 2023, 17:02
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

I've modified it this way, but I'm using MyMenu.Handle, which has no effect. Thanks.
by crocodile
02 Aug 2023, 22:47
Forum: Ask for Help
Topic: Menu is obscured by the top window
Replies: 14
Views: 2653

Re: Menu is obscured by the top window

@thqby This issue doesn't seem to be getting fixed anytime soon, can you fix it at ahk-h?

Go to advanced search