Search found 16789 matches
- Today, 16:50
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 11
- Views: 156
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...
- Today, 16:21
- Forum: Ask for Help (v2)
- Topic: Running And Searching Excel as a Background App
- Replies: 3
- Views: 20
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.
- Today, 16:06
- Forum: Ask for Help (v2)
- Topic: Open a pdf file in Chrome New tab
- Replies: 8
- Views: 123
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
- Today, 16:00
- Forum: Ask for Help (v2)
- Topic: Running And Searching Excel as a Background App
- Replies: 3
- Views: 20
Re: Running And Searching Excel as a Background App
Yes. AHK v2 doesn't have less capability than v1.
- Today, 15:30
- Forum: Gaming Help (v1)
- Topic: Help with dual boxing script...
- Replies: 1
- Views: 16
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.
- Today, 07:31
- Forum: Ask for Help (v1)
- Topic: CTRL-Numpad+ shortcut replacement for a 87 key TKL keyboard?
- Replies: 3
- Views: 53
- Yesterday, 18:32
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 11
- Views: 156
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.
- Yesterday, 16:49
- Forum: Ask for Help (v2)
- Topic: How to start a program and hide it immediately?
- Replies: 5
- Views: 87
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...
- Yesterday, 16:37
- Forum: About This Community
- Topic: Future versions and paid versions?
- Replies: 2
- Views: 46
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 ...
- Yesterday, 16:29
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 11
- Views: 156
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"
- Yesterday, 14:45
- Forum: General Discussion
- Topic: pre-install question
- Replies: 2
- Views: 34
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.
- Yesterday, 13:01
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 35
Re: Script does not working for reset
The clipboard does work in v2. The built-in variable name is A_Clipboard.
- Yesterday, 11:07
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 35
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...
- Yesterday, 10:42
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color
- Replies: 11
- Views: 156
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...
- Yesterday, 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: 89
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!
- Yesterday, 02:29
- Forum: Ask for Help (v2)
- Topic: Set key to toggle script off
- Replies: 1
- Views: 44
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: 51
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...
- 17 Apr 2024, 21:25
- Forum: Ask for Help (v1)
- Topic: How to toggle the app on the Taskbar
- Replies: 3
- Views: 51
- 17 Apr 2024, 15:58
- Forum: Ask for Help (v2)
- Topic: Filecopy Topic is solved
- Replies: 3
- Views: 62
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...
- 17 Apr 2024, 15:46
- Forum: Ask for Help (v2)
- Topic: Filecopy Topic is solved
- Replies: 3
- Views: 62
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 ...