Search found 16777 matches

by boiler
5 minutes ago
Forum: Forum Issues
Topic: How to answer autohotkey.com ??
Replies: 3
Views: 16

Re: How to answer autohotkey.com ??

Yes, I have noticed the same and was going to disapprove it, but for some reason in this case I decided to see what, if any, reply might be given. I’m fine with deleting the whole topic.
by boiler
Today, 06:47
Forum: Forum Issues
Topic: How to answer autohotkey.com ??
Replies: 3
Views: 16

Re: How to answer autohotkey.com ??

You just created a post in a new topic. And it appeared after being approved, which is required for new members. It was moved to a more appropriate sub-forum, by the way.

What are you trying to do that you say you can’t do?
by boiler
Today, 02:29
Forum: Ask for Help (v2)
Topic: Set key to toggle script off
Replies: 1
Views: 38

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
Yesterday, 23:42
Forum: Ask for Help (v1)
Topic: How to toggle the app on the Taskbar
Replies: 3
Views: 43

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
Yesterday, 21:25
Forum: Ask for Help (v1)
Topic: How to toggle the app on the Taskbar
Replies: 3
Views: 43

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
Yesterday, 15:58
Forum: Ask for Help (v2)
Topic: Filecopy Topic is solved
Replies: 3
Views: 55

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
Yesterday, 15:46
Forum: Ask for Help (v2)
Topic: Filecopy Topic is solved
Replies: 3
Views: 55

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
Yesterday, 14:39
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 59

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
Yesterday, 14:32
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 59

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
Yesterday, 13:50
Forum: Ask for Help (v2)
Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
Replies: 6
Views: 59

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
Yesterday, 10:12
Forum: Ask for Help (v2)
Topic: ListBox Enter pressed event?
Replies: 8
Views: 139

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
Yesterday, 09:23
Forum: Ask for Help (v2)
Topic: ListBox Enter pressed event?
Replies: 8
Views: 139

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: 48

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 ...
by boiler
16 Apr 2024, 16:07
Forum: Ask for Help (v2)
Topic: function calling itself to countdown
Replies: 3
Views: 50

Re: function calling itself to countdown

A few issues: You define a function, but you never call it. Then you have a while loop within a recursive function, so each instance is waiting for the value to become 0. The recursive quality is already a loop, so you don't need a while loop. It would also be good not to name the global and local v...
by boiler
16 Apr 2024, 05:45
Forum: Bug Reports
Topic: ":: try {throw}" still throws an error
Replies: 4
Views: 150

Re: ":: try {throw}" still throws an error

It does seem worth reporting that this is not getting flagged as an error, although I think this thread adequately serves that purpose whether or not this would be considered a true bug.
by boiler
16 Apr 2024, 05:34
Forum: Ask for Help (v1)
Topic: Gamepad button press emulation
Replies: 1
Views: 19

Re: Gamepad button press emulation

AHK cannot emulate game controller button presses or other actions. There are ways to emulate a controller that are quite involved. See this post.
by boiler
15 Apr 2024, 20:10
Forum: Ask for Help (v1)
Topic: Minus date not working correctly
Replies: 2
Views: 41

Re: Minus date not working correctly

The += operator adds to the previous value, so it keeps adding -31 to its previous value. Precede that line with DateMinus31 := A_Now so that it starts with today’s date each time.
by boiler
15 Apr 2024, 18:48
Forum: Ask for Help (v2)
Topic: Passing GUI entry to function Topic is solved
Replies: 2
Views: 58

Re: Passing GUI entry to function Topic is solved

Remove the MyGui := Gui() from inside the function. For one thing, it doesn’t make sense to create the object twice. The other issue is you don’t want to declare it locally. Just leave the global declaration so the other function can see it. By the way, if you plan on using the hotkey more than once...
by boiler
15 Apr 2024, 14:14
Forum: Ask for Help (v2)
Topic: ListBox Enter pressed event?
Replies: 8
Views: 139

Re: ListBox Enter pressed event?

You can do it with an invisible button that is set to Default : #Requires AutoHotkey v2.0 MyGui := Gui() MyGui.Add('ListBox', 'vColors', ['Red','Green','Blue']) MyGui.Add('Button', 'y-30 Default').OnEvent('Click', EnterPressed) MyGui.Show EnterPressed(*) { MsgBox MyGui['Colors'].Text ' was chosen!' }

Go to advanced search