Search found 6657 matches

by boiler
Today, 04:44
Forum: Ask For Help
Topic: Automatically runs when opened
Replies: 2
Views: 497

Re: Automatically runs when opened

If that’s the whole script, it exits immediately because the value of the variable loop is not defined, so your loop runs zero times and then the script ends. If you add a hotkey, then that will prevent the script from automatically ending, but the loop still won’t execute. You have several other un...
by boiler
Yesterday, 22:22
Forum: Ask For Help
Topic: Help getting script to work
Replies: 6
Views: 157

Re: Help getting script to work

I tried doing this but I was told that ImageSearch can't be used in an If/Else command. Yes, but I also told you this: You would have the ImageSearch command on a line of its own, then you would follow it with an if statement checking the condition of related variables, such as ErrorLevel or the re...
by boiler
Yesterday, 16:10
Forum: Ask For Help
Topic: Problem adding icons to listview Topic is solved
Replies: 3
Views: 61

Re: Problem adding icons to listview Topic is solved

You're not telling it to add a certain icon because you are not using the Icon option, and when that option is missing, it uses the first icon in the image list, as is described in the documentation. Also, you are adding the same two icons to the image list over and over by repeatedly calling IL_Add...
by boiler
Yesterday, 12:12
Forum: Ask For Help
Topic: Hotstrings with multiple letters
Replies: 1
Views: 21

Re: Hotstrings with multiple letters

You are using the syntax for a hotkey rather than a hotstring . An example of a hotstring would be: ::ab:: Send, This is a test return or: ::ab::This is a test However, that is just for when you type ab followed by an end character such as a space. If by the ^ , you mean that you want to invoke it b...
by boiler
Yesterday, 07:02
Forum: AutoHotkey v2 Scripts and Functions
Topic: Launchpad - Game Launching Multitool
Replies: 2
Views: 86

Re: Launchpad - Game Launching Multitool

bmcclure - It looks like you put a lot of effort into this, and I suspect that the v2 sub-forum of Scripts and Functions is not the place that will give it much visibility among the people that would potentially use it. I suppose it’s the correct place for it since you wrote it in v2, but only a sm...
by boiler
26 Jan 2021, 19:37
Forum: Ask For Help
Topic: ImageSearch area and directory questions Topic is solved
Replies: 10
Views: 142

Re: ImageSearch area and directory questions Topic is solved

If (ImageSearch, FoundX, FoundY, 400, 700, 900, 1000, C:\Users\Marce\Desktop\AHK\Image.png) This is incorrect syntax. You cannot make ImageSearch (or any other AHK command, for that matter) a condition of an if statement. You would have the ImageSearch command on a line of its own, then you would f...
by boiler
26 Jan 2021, 08:26
Forum: Bug Reports
Topic: Is this "DetectHiddenWindows" bug?
Replies: 9
Views: 181

Re: Is this "DetectHiddenWindows" bug?

Xtra wrote: WinGetID() is not an AHK built in function. Try WinExist() ?
It’s v2 code. Note PostMessage is used as a function as well.
by boiler
26 Jan 2021, 07:02
Forum: Ask For Help
Topic: ImageSearch area and directory questions Topic is solved
Replies: 10
Views: 142

Re: ImageSearch area and directory questions Topic is solved

ImageSearch, FoundX, FoundY, 390, 300, 800, 0, C:\Users\User\Desktop\AHK\Image.png If that’s your actual search area, then it is invalid because the first coordinate pair needs to identify the upper-left corner, while the second coordinate pair identifies the lower-right corner. Your pair is lower-...
by boiler
26 Jan 2021, 06:41
Forum: Ask For Help
Topic: Inserting a character in a different font size
Replies: 2
Views: 119

Re: Inserting a character in a different font size

Are you using MS Word? If so, you should be able to create an AHK hotkey that would use the COM interface to directly change the font and insert the character (and return to the previous font afterwards). If it is Word, however, you probably can accomplish all of that in a macro with a keyboard shor...
by boiler
25 Jan 2021, 21:49
Forum: Forum Issues
Topic: Forums Slow to load
Replies: 25
Views: 670

Re: Forums Slow to load

joedf wrote:
25 Jan 2021, 18:04
Looks like we might be impacted by this: https://status.digitalocean.com/incidents/klwg8kjjr8hg
This issue appears to now be resolved. Hopefully, this means the cloudflare settings can be returned to their previous levels.

Thanks for your efforts, as always. :salute:
by boiler
24 Jan 2021, 16:51
Forum: Ask For Help
Topic: Please Help With Clipboard StringReplace Issue! Topic is solved
Replies: 4
Views: 90

Re: Please Help With Clipboard StringReplace Issue! Topic is solved

Put the following line at/near the top of your script (like right after #Persistent) to make the StrReplace case sensitive:

Code: Select all

StringCaseSense, On
by boiler
24 Jan 2021, 08:03
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 101
Views: 50386

Re: WatchFolder() - updated on 2016-11-30

carno - The very first script in this thread is just the function (without a GUI or any other interface), which you can call and invoke your own function that simply shows a MsgBox as you would like. The example script with a GUI that follows is just that — an example. The function describes how to...
by boiler
24 Jan 2021, 07:45
Forum: Ask For Help
Topic: Please Help With Clipboard StringReplace Issue! Topic is solved
Replies: 4
Views: 90

Re: Please Help With Clipboard StringReplace Issue! Topic is solved

Since the routine itself is causing the clipboard to change, it is indeed causing a loop. The solution is to temporarily turn off OnClipboardChange as shown below. Also, non-deprecated versions of OnClipboardChange and StrReplace should be used, as is done here. #Persistent OnClipboardChange("Replac...
by boiler
23 Jan 2021, 09:32
Forum: Ask For Help
Topic: auto search driver site
Replies: 7
Views: 146

Re: auto search driver site

They are not getElementByClassName and getElementByTagName. They are getElementsByClassName and getElementsByTagName, each will return an array, the first element being (for example) getElementsByTagName("query")[0]. (however query doesn’t look to be a tag name in your html)
by boiler
23 Jan 2021, 05:49
Forum: Ask For Help
Topic: Problem with Timer Topic is solved
Replies: 7
Views: 1050

Re: Problem with Timer Topic is solved

You removed Global from the function, so unless you’ve made the variable Wise a global variable somewhere else in your script, the function wouldn’t know its value. Are you sure you checked its value in the new function?
by boiler
22 Jan 2021, 21:31
Forum: Ask For Help
Topic: simple click button in telegram?
Replies: 3
Views: 1235

Re: simple click button in telegram?

Yes, both the window ID (also known as the window handle or HWND), which is used with ahk_id , and the process ID, used with ahk_pid , change every time. (Note that ahk_ip is not correct for either of them.) That doesn’t mean they’re not useful. You just don’t hard code in the values into your scrip...
by boiler
22 Jan 2021, 19:57
Forum: Ask For Help
Topic: simple click button in telegram?
Replies: 3
Views: 1235

Re: simple click button in telegram?

You have ahk_ip instead of ahk_id in your script, but more importantly, the window ID is different every time the window is created, so getting the ID and putting that in your script will not be able to identify that window the next time you run that program. Also, your ControlClick by location synt...
by boiler
22 Jan 2021, 11:45
Forum: Ask For Help
Topic: keystroke to the 'ok' button Topic is solved
Replies: 4
Views: 141

Re: keystroke to the 'ok' button Topic is solved

It depends on the details of the dialog box. Are there currently any other keyboard shortcuts associated with dismissing the dialog box that could be mapped to your desired shortcut? Is there a control associated with the OK button revealed by the Window Spy tool? If so, you may be able to use Contr...
by boiler
22 Jan 2021, 07:33
Forum: Ask For Help
Topic: keystroke to the 'ok' button Topic is solved
Replies: 4
Views: 141

Re: keystroke to the 'ok' button Topic is solved

Precede that with #IfWinActive followed by the title designation for the dialog box window.

Go to advanced search