Search found 16779 matches
- 9 minutes ago
- Forum: General Discussion
- Topic: pre-install question
- Replies: 1
- Views: 4
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.
- Today, 13:01
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 25
Re: Script does not working for reset
The clipboard does work in v2. The built-in variable name is A_Clipboard.
- Today, 11:07
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 25
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...
- Today, 10:42
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 4
- Views: 91
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...
- Today, 02:52
- Forum: Gaming Help (v1)
- Topic: Autohotkey script, to open elevated command prompt on host pc, connected via TeamViewer or AnyDesk Topic is solved
- Replies: 2
- Views: 71
Re: Autohotkey script, to open elevated command prompt on host pc, connected via TeamViewer or AnyDesk Topic is solved
@vikasgandhi — As asked before, please do not put your own text inside of quote tags. Thank you!
- Today, 02:29
- Forum: Ask for Help (v2)
- Topic: Set key to toggle script off
- Replies: 1
- Views: 40
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.
- Yesterday, 23:42
- Forum: Ask for Help (v1)
- Topic: How to toggle the app on the Taskbar
- Replies: 3
- Views: 46
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...
- Yesterday, 21:25
- Forum: Ask for Help (v1)
- Topic: How to toggle the app on the Taskbar
- Replies: 3
- Views: 46
- Yesterday, 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...
- Yesterday, 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 ...
- Yesterday, 14:39
- Forum: Ask for Help (v2)
- Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
- Replies: 6
- Views: 61
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.
- Yesterday, 14:32
- Forum: Ask for Help (v2)
- Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
- Replies: 6
- Views: 61
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...
- Yesterday, 13:50
- Forum: Ask for Help (v2)
- Topic: did moving my "documents" directory break the /Libs folder? Topic is solved
- Replies: 6
- Views: 61
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...
- Yesterday, 10:12
- Forum: Ask for Help (v2)
- Topic: ListBox Enter pressed event?
- Replies: 8
- Views: 142
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...
- Yesterday, 09:23
- Forum: Ask for Help (v2)
- Topic: ListBox Enter pressed event?
- Replies: 8
- Views: 142
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
- 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 ...
- 16 Apr 2024, 16:07
- Forum: Ask for Help (v2)
- Topic: function calling itself to countdown
- Replies: 3
- Views: 55
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...
- 16 Apr 2024, 05:45
- Forum: Bug Reports
- Topic: ":: try {throw}" still throws an error
- Replies: 4
- Views: 154
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.
- 16 Apr 2024, 05:34
- Forum: Ask for Help (v1)
- Topic: Gamepad button press emulation
- Replies: 1
- Views: 20
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.
- 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.