Search found 16783 matches

by boiler
Yesterday, 18:32
Forum: Ask for Help (v2)
Topic: CheckColor / WaitColor - Color names of HEX color
Replies: 8
Views: 118

Re: CheckColor / WaitColor - Color names of HEX color

It could mean that it is officially the active window in the eyes of the OS, but it has not finished drawing the window by the time you are checking the color, so a little delay is necessary. I would expect that a delay of much shorter than 1000 should be adequate. More like 100.
by boiler
Yesterday, 16:49
Forum: Ask for Help (v2)
Topic: How to start a program and hide it immediately?
Replies: 5
Views: 70

Re: How to start a program and hide it immediately?

FYI, this: target := "C:\Program Files\Google\Chrome\Application\chrome.exe" " https://www.autohotkey.com/docs/v2/lib/Run.htm" ...is the same as this: target := "C:\Program Files\Google\Chrome\Application\chrome.exe https://www.autohotkey.com/docs/v2/lib/Run.htm" You are concatenating two literal st...
by boiler
Yesterday, 16:37
Forum: About This Community
Topic: Future versions and paid versions?
Replies: 2
Views: 32

Re: Future versions and paid versions?

if AHK would ever become not free to use It will always be free. See the mission of the AutoHotkey Foundation. how often we should be expecting the software to be upgraded There are typically several updates a year. It was over 20 years between updates to a new major revision that was not backward ...
by boiler
Yesterday, 16:29
Forum: Ask for Help (v2)
Topic: CheckColor / WaitColor - Color names of HEX color
Replies: 8
Views: 118

Re: CheckColor / WaitColor - Color names of HEX color

Code: Select all

Run 'notepad.exe',,, &tstPID
WinWaitActive 'ahk_pid ' tstPID
ColorCheck(40, 20, 'Ljusgrön', 'ahk_pid ' tstPID)
MsgBox "Done"
by boiler
Yesterday, 14:45
Forum: General Discussion
Topic: pre-install question
Replies: 1
Views: 18

Re: pre-install question

Typically, yes, that can be done, depending on the target software. In any case, AHK is usually going to be the easiest way to accomplish that kind of script because it's built to interface with an application's windows.
by boiler
Yesterday, 13:01
Forum: Gaming
Topic: Script does not working for reset
Replies: 3
Views: 32

Re: Script does not working for reset

CrowexBR wrote: …because of the clipboard isn't working for v2.0.
The clipboard does work in v2. The built-in variable name is A_Clipboard.
by boiler
Yesterday, 11:07
Forum: Gaming
Topic: Script does not working for reset
Replies: 3
Views: 32

Re: Script does not working for reset

You haven't implemented any logic that would have it step through the notices. No where are you assigning true to either first_notice or second_notice , so your first two if conditions will always be false. It would seem easier, btw, to just have one variable like notice_level that you would just as...
by boiler
Yesterday, 10:42
Forum: Ask for Help (v2)
Topic: CheckColor / WaitColor - Color names of HEX color
Replies: 8
Views: 118

Re: CheckColor / WaitColor - Color names of HEX color

The HEX values have been converted to decimal numbers (which was a surprise) Does it always happen? Is it easy to know if a variable contains a HEX number? A variable doesn't contain a hex or decimal number. Those are just different number systems for displaying integers (i.e., it's the same number...
by boiler
Yesterday, 02:29
Forum: Ask for Help (v2)
Topic: Set key to toggle script off
Replies: 1
Views: 42

Re: Set key to toggle script off

What you want is Suspend, not Pause. See Example #1 to see how to set a hotkey to suspend all other hotkeys.
by boiler
17 Apr 2024, 23:42
Forum: Ask for Help (v1)
Topic: How to toggle the app on the Taskbar
Replies: 3
Views: 48

Re: How to toggle the app on the Taskbar

I'm a beginner, so I quoted Chatgpt I've corrected it several times, but the error is continuing I’ll let it go this time since you say you tried to correct it, but don’t post code from it again because it is against forum rules . Let that error message be your clue for you to try to fix it. That l...
by boiler
17 Apr 2024, 21:25
Forum: Ask for Help (v1)
Topic: How to toggle the app on the Taskbar
Replies: 3
Views: 48

Re: How to toggle the app on the Taskbar

ulysim wrote: Please advise me what I'm doing wrong
You’re making up syntax and still expecting the code to work for some reason. Actually, ChatGPT wrote it, didn’t it?
by boiler
17 Apr 2024, 15:58
Forum: Ask for Help (v2)
Topic: Filecopy Topic is solved
Replies: 3
Views: 58

Re: Filecopy Topic is solved

No one has ever moved your posts that are asking for help to "Scripts and Functions". Look at your posts and note which sub-forum they are in, which you can do by clicking on the link for your post count. Not one of them appears there because we have moved them to "Ask for Help" and noted it each ti...
by boiler
17 Apr 2024, 15:46
Forum: Ask for Help (v2)
Topic: Filecopy Topic is solved
Replies: 3
Views: 58

Re: Filecopy Topic is solved

Londolozi -- Please acknowledge this time that you have read and understood this: Please stop posting questions in "Scripts and Functions(v2)" as that sub-forum is for sharing finished scripts with others, not for asking for help with your scripts. We will just start disapproving your posts rather ...
by boiler
17 Apr 2024, 14:39
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 62

Re: did moving my "documents" directory break the /Libs folder? Topic is solved

No, as noted in my first post, that is a change from v1.1 to v2.0.
by boiler
17 Apr 2024, 14:32
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 62

Re: did moving my "documents" directory break the /Libs folder? Topic is solved

According to the docs (https://www.autohotkey.com/docs/v2/lib/_Include.htm) I should be able to access my functions by naming the directory they live within. No, it does not say it allows access to all functions in that directory simply by specifying the folder. It says it changes the working direc...
by boiler
17 Apr 2024, 13:50
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 62

Re: did moving my "documents" directory break the /Libs folder? Topic is solved

From the v2 documentation: Scripts are no longer automatically included from the function library (Lib) folders when a function call is present without a definition, due to increased complexity and potential for accidents (now that the MyFunc in MyFunc() can be any variable). #Include <LibName> work...
by boiler
17 Apr 2024, 10:12
Forum: Ask for Help (v2)
Topic: ListBox Enter pressed event?
Replies: 8
Views: 148

Re: ListBox Enter pressed event?

If you want what you assign inside the function (like the Etichetta variable) to be seen outside the function, then you need to declare it as global in the function and any other function in which you want to access it that assigns it a new value since it will assume it's local in those cases. In th...
by boiler
17 Apr 2024, 09:23
Forum: Ask for Help (v2)
Topic: ListBox Enter pressed event?
Replies: 8
Views: 148

Re: ListBox Enter pressed event?

It can't do the same things as the other function if you don't tell it to do those same things. Even easier, just call the other function:

Code: Select all

F9::OK_Click
by boiler
16 Apr 2024, 20:52
Forum: Ask for Help (v1)
Topic: Phantom line being written?
Replies: 3
Views: 49

Re: Phantom line being written?

Where in the code is it doing this…? The very first time through the loop, you are assigning the first line read, followed by a linefeed character, followed by the current contents of rev, which is empty the first time through. So you start with the first line followed by a linefeed character, and ...

Go to advanced search