Search found 16792 matches
- Today, 07:03
- Forum: Gaming
- Topic: pixelsearch for moving color
- Replies: 1
- Views: 33
Re: pixelsearch for moving color
AHK would probably not be fast enough to find and click on the pixel when it’s in motion unless it is moving pretty slowly.
- Today, 04:49
- Forum: Ask for Help (v1)
- Topic: Remove the extra filename extension (*.js.download)
- Replies: 2
- Views: 27
Re: Remove the extra filename extension (*.js.download)
Code: Select all
fold:="C:\Users\sam\Desktop\calculateur_files"
loop, Files, %fold%\*.download
FileMove, % A_LoopFileFullPath, % RegExReplace(A_LoopFileFullPath, "\.download$")
- Yesterday, 22:12
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 12
- Views: 178
Re: CheckColor / WaitColor - Color names of HEX color
Is there any good way to compare e.g. LightGreen with lightgreen ? I’m not sure what you mean. If you had both entries in your map and the were both mapped to the same color value? It would result in the last one as it enumerates the map unless you were to break after thr first one, then it would r...
- Yesterday, 16:50
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 12
- Views: 178
Re: CheckColor / WaitColor - Color names of HEX color
No conversion is necessary because they are the same number . As I said, it's stored as an integer, and hex is just one way of representing it. You're seeing the decimal representation, but it equals the same as the hexadecimal representation. And it's neither hex nor decimal internally -- it's just...
- Yesterday, 16:21
- Forum: Ask for Help (v2)
- Topic: Running And Searching Excel as a Background App
- Replies: 3
- Views: 27
Re: Running And Searching Excel as a Background App
You should post v1 code that you says works as you want so we're not guessing at what you're trying to replicate. If you're not already, you should look into using a COM object approach.
- Yesterday, 16:06
- Forum: Ask for Help (v2)
- Topic: Open a pdf file in Chrome New tab
- Replies: 8
- Views: 130
Re: Open a pdf file in Chrome New tab
Notice the difference between the two MsgBox displays and why, and look at the difference between mikeyww's code and what the error message shows for your code.
Code: Select all
#Requires AutoHotkey v2.0
item := 'c'
MsgBox 'chrome.exe' item
MsgBox 'chrome.exe ' item
- Yesterday, 16:00
- Forum: Ask for Help (v2)
- Topic: Running And Searching Excel as a Background App
- Replies: 3
- Views: 27
Re: Running And Searching Excel as a Background App
Yes. AHK v2 doesn't have less capability than v1.
- Yesterday, 15:30
- Forum: Gaming Help (v1)
- Topic: Help with dual boxing script...
- Replies: 1
- Views: 17
Re: Help with dual boxing script...
You posted this in the v2 section, but your code is v1 (with one exception), so it was moved there. You don’t put quotes around the parameters in CoordMode in v1. Without fixing that, it uses the default CoordMode of Window, so you need to fix that before considering what else might be wrong.
- Yesterday, 07:31
- Forum: Ask for Help (v1)
- Topic: CTRL-Numpad+ shortcut replacement for a 87 key TKL keyboard?
- Replies: 4
- Views: 71
- 18 Apr 2024, 18:32
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 12
- Views: 178
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.
- 18 Apr 2024, 16:49
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 88
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...
- 18 Apr 2024, 16:37
- Forum: About This Community
- Topic: Future versions and paid versions?
- Replies: 2
- Views: 53
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 ...
- 18 Apr 2024, 16:29
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 12
- Views: 178
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"
- 18 Apr 2024, 14:45
- Forum: General Discussion
- Topic: pre-install question
- Replies: 3
- Views: 51
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.
- 18 Apr 2024, 13:01
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 36
Re: Script does not working for reset
The clipboard does work in v2. The built-in variable name is A_Clipboard.
- 18 Apr 2024, 11:07
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 36
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...
- 18 Apr 2024, 10:42
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 12
- Views: 178
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...
- 18 Apr 2024, 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: 93
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!
- 18 Apr 2024, 02:29
- Forum: Ask for Help (v2)
- Topic: Set key to toggle script off
- Replies: 1
- Views: 45
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.
- 17 Apr 2024, 23:42
- Forum: Ask for Help (v1)
- Topic: How to toggle the app on the Taskbar
- Replies: 3
- Views: 52
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...