Search found 45 matches

by hiahkforum
09 May 2024, 13:33
Forum: Scripts and Functions (v1)
Topic: [Function] FFToolTip: Flicker-Free ToolTip
Replies: 32
Views: 12219

Re: [Function] FFToolTip: Flicker-Free ToolTip

Hi iPhilipp , great script, I tried it for v1 and it works as advertised, but is it possible to fix it for the current version of AHK v2? The version from the first post obviously doesn't work, but I also tried the version from SilentlyFiguring and I ran into an error there: Error: Parameter #2 of T...
by hiahkforum
28 Apr 2024, 16:59
Forum: Ask for Help (v2)
Topic: Using ControlSetText() for windows in a specific order. Topic is solved
Replies: 2
Views: 413

Re: Using ControlSetText() for windows in a specific order. Topic is solved

Oh, sh*, now I see! Thank you, Noitalommi_2 ! :bravo: Honestly, I tried to understand your previous script, but since there was too much stuff in there, and I'm new to programming or just not smart enough, I thought it was just an analogue of the Window Spy script, which is also useful, but not dire...
by hiahkforum
27 Apr 2024, 21:35
Forum: Ask for Help (v2)
Topic: Using ControlSetText() for windows in a specific order. Topic is solved
Replies: 2
Views: 413

Using ControlSetText() for windows in a specific order. Topic is solved

I have already described my problem in this topic: https://www.autohotkey.com/boards/viewtopic.php?f=82&t=128881, but since not everyone could get to it in the background of the main topic, I think it's appropriate to create a separate one. I have a GUI that can be activated up to 6 times, and my go...
by hiahkforum
27 Apr 2024, 21:35
Forum: Ask for Help (v2)
Topic: Dock/Attach window function for AHK v2 Topic is solved
Replies: 5
Views: 579

Re: Dock/Attach window function for AHK v2 Topic is solved

I go by the logic that if I'm asking about something that is directly related to my problem, then I should write a post instead of creating a separate topic, which is good communication manners in my opinion. But I see your point, and since the moderator supports the principle of “fewer posts - more...
by hiahkforum
26 Apr 2024, 18:39
Forum: Scripts and Functions (v1)
Topic: [Function] DockA for x64
Replies: 3
Views: 2383

Re: [Function] DockA for x64

Hi, jballi ! Since you are familiar with the structure of this extremely useful script, could you please convert it to AHK v2 syntax? Unlike you, majkinetor, apparently, abandoned AHK by this day, so you are the second one who can be counted on. The script isn't very big, so I don’t think it will ta...
by hiahkforum
26 Apr 2024, 18:12
Forum: Ask for Help (v2)
Topic: Dock/Attach window function for AHK v2 Topic is solved
Replies: 5
Views: 579

Re: Dock/Attach window function for AHK v2 Topic is solved

I did it! I tried to play around with v1 scripts and it finally worked out for me. The first one I tried was DockA from majkinetor, modified by jballi: https://www.autohotkey.com/boards/viewtopic.php?p=51279. It works fine on AHK v1.1.37.02 when done like this: gui 1:-DPIScale +LastFound +Resize +La...
by hiahkforum
21 Apr 2024, 17:21
Forum: Ask for Help (v2)
Topic: Dock/Attach window function for AHK v2 Topic is solved
Replies: 5
Views: 579

Re: Dock/Attach window function for AHK v2 Topic is solved

Okay, I get it, what I'm asking is probably too complicated or requires a lot of work, so I'll give up. Apparently, I will have to resort to using scripts of 2 versions at once. Can I then ask for help with that part of the script that I mentioned is not working completely? At first glance, what I'...
by hiahkforum
17 Apr 2024, 10:03
Forum: Ask for Help (v2)
Topic: Dock/Attach window function for AHK v2 Topic is solved
Replies: 5
Views: 579

Dock/Attach window function for AHK v2 Topic is solved

There are plenty functions of this kind all over the place, which you can find on this forum or here, in particular: https://github.com/Ixiko/AHK-libs-and-classes-collection. Yes, most of them are complex and complicated, this is an important factor, but despite their quantity, not a single author h...
by hiahkforum
10 Apr 2024, 01:54
Forum: Ask for Help (v1)
Topic: Wait Until CPU Usage Less to Process AHK Script
Replies: 17
Views: 1084

Re: Wait Until CPU Usage Less to Process AHK Script

I have reduced my function as much as possible, leaving only the most basic functionality, so that it does not cause difficulties for understanding, but apparently it needs to be further described in words. Overall, this is just an example and I couldn't get it to work with anything else I tried. I ...
by hiahkforum
09 Apr 2024, 08:34
Forum: Ask for Help (v1)
Topic: Wait Until CPU Usage Less to Process AHK Script
Replies: 17
Views: 1084

Re: Wait Until CPU Usage Less to Process AHK Script

Thank you! But it’s strange that to express gratitude it is obligatory to reply and raise the topic to the top; there is clearly a lack of a reputation system or a simple “thank you!” button. Therefore, I express my gratitude only now... mikeyww , I tried to embed your function in my script, and it ...
by hiahkforum
31 Mar 2024, 02:11
Forum: Ask for Help (v1)
Topic: Wait Until CPU Usage Less to Process AHK Script
Replies: 17
Views: 1084

Re: Wait Until CPU Usage Less to Process AHK Script

Hi mikeyww , could you please help me to adapt your script for v2? I took CPULoad() for v2 from here: https://github.com/jNizM/SysMeter/blob/master/src/SysMeter_Simple.ahk#L108; and tried to change syntax a bit, but got an error: Error: Invalid index. Specifically: 1 029: { 030: If (0 < c := CPULoad...
by hiahkforum
15 Mar 2024, 14:14
Forum: Ask for Help (v2)
Topic: Simultaneous running of two timers. Topic is solved
Replies: 21
Views: 937

Re: Simultaneous running of two timers. Topic is solved

@Rohwedder You are just a legendary man! :superhappy: I heard that AHK is single-threaded, but the fact is that this Loop thing doesn’t work as it should, and the usual Sleep does, but in the end your solution works, as always, absolutely like a charm! :D
by hiahkforum
15 Mar 2024, 11:46
Forum: Ask for Help (v2)
Topic: Simultaneous running of two timers. Topic is solved
Replies: 21
Views: 937

Re: Simultaneous running of two timers. Topic is solved

Rohwedder Yes, it wasn't obvious, but that's right, with 1s press it works predictable, but now your solution works just perfect. :) Actually, this interruptible Sleep isn't reliable at all. In case of 35s for Esc responsivness it's better to use Loop 500 and Sleep 70 , but the timer accuracy is ve...
by hiahkforum
15 Mar 2024, 06:20
Forum: Ask for Help (v2)
Topic: Simultaneous running of two timers. Topic is solved
Replies: 21
Views: 937

Re: Simultaneous running of two timers. Topic is solved

Sleep35000() breaks timer only in current thread with CountDown() , so it would be perfect if only the last started timer GUI can be removed and so on (if 3 timers running, the third one removes first, then the second one and for the last one the first). Your current solution kind of works, but it ...
by hiahkforum
14 Mar 2024, 17:55
Forum: Ask for Help (v2)
Topic: Simultaneous running of two timers. Topic is solved
Replies: 21
Views: 937

Re: Simultaneous running of two timers. Topic is solved

Hi @Rohwedder, I made a function with an interruptible Sleep to break off the timer, but could you please tell me how I can also remove the timer GUI?

Code: Select all

Sleep35000() {
	Loop 500 {
		Sleep 70
		if GetKeyState('Esc', 'P')
			break
	}
}
by hiahkforum
11 Mar 2024, 16:59
Forum: Ask for Help (v2)
Topic: How to duplicate text of Edit control while editing? Topic is solved
Replies: 6
Views: 203

Re: How to duplicate text of Edit control while editing? Topic is solved

Everything just :rainbow: beatiful. :thumbup:
Beatiful.png
Beatiful.png (11 KiB) Viewed 132 times
by hiahkforum
11 Mar 2024, 14:41
Forum: Ask for Help (v2)
Topic: How to duplicate text of Edit control while editing? Topic is solved
Replies: 6
Views: 203

Re: How to duplicate text of Edit control while editing? Topic is solved

@mikeyww Thanks, this is exactly what I wanted. :D But also I wanted to do math operations with g.StartingPosition and g.ClonesAmount, but got an error "Expected a Number but got an empty string.". Could you please tell me how to solve this? :roll:
by hiahkforum
11 Mar 2024, 12:52
Forum: Ask for Help (v2)
Topic: How to duplicate text of Edit control while editing? Topic is solved
Replies: 6
Views: 203

Re: How to duplicate text of Edit control while editing? Topic is solved

@mikeyww It works perfectly with one result from vBatchName, but how to combine 3 results at once and add vClonesAmount and vStartingPosition to it? I tried it myself, but I couldn't handle it. :oops:
by hiahkforum
11 Mar 2024, 11:31
Forum: Ask for Help (v2)
Topic: How to duplicate text of Edit control while editing? Topic is solved
Replies: 6
Views: 203

How to duplicate text of Edit control while editing? Topic is solved

How to duplicate text of Edit control while editing? Without clicking buttons and MsgBoxes, all changes only in current GUI, but Text control can be replaced with disabled Edit control. 1::{ Title := WinGetTitle('A') TableC := Gui('+AlwaysOnTop +ToolWindow', Title) TableC.Add('Text',, 'Batch name:')...
by hiahkforum
03 Mar 2024, 11:01
Forum: Ask for Help (v2)
Topic: Simultaneous using of #MaxThreadsPerHotkey and KeyWait for double pressing function.
Replies: 9
Views: 261

Re: Simultaneous using of #MaxThreadsPerHotkey and KeyWait for double pressing function.

Thank you for trying to help. I used MsgBox in the example only for ease of understanding, in fact there is no MsgBoxes in my code, only one InputBox and many SendEvents . I don't know if your example will work for me, I'll try to understand the code tomorrow. Here's a more precise example of my cur...

Go to advanced search