Search found 6645 matches

by boiler
Today, 08:03
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 91
Views: 50092

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
Today, 07:45
Forum: Ask For Help
Topic: Please Help With Clipboard StringReplace Issue!
Replies: 2
Views: 43

Re: Please Help With Clipboard StringReplace Issue!

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
Yesterday, 09:32
Forum: Ask For Help
Topic: auto search driver site
Replies: 7
Views: 120

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
Yesterday, 05:49
Forum: Ask For Help
Topic: Problem with Timer Topic is solved
Replies: 7
Views: 1036

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

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

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

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

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

Precede that with #IfWinActive followed by the title designation for the dialog box window.
by boiler
21 Jan 2021, 08:17
Forum: Ask For Help
Topic: Help with library: TF.ahk
Replies: 12
Views: 436

Re: Help with library: TF.ahk

TF.ahk simply uses StringReplace to count the number of replacements (below). There is nothing with a \D that would change that. In fact, there is no \D option anywhere in TF.ahk that I can see. Where did you get that? TF_Count(String, Char) { StringReplace, String, String, %Char%,, UseErrorLevel Re...
by boiler
20 Jan 2021, 22:01
Forum: Ask For Help
Topic: Hotkeys for Google/Trimble Sketchup Topic is solved
Replies: 5
Views: 108

Re: Hotkeys for Google/Trimble Sketchup Topic is solved

The + symbol is only used for the Shift key when used as a modifier such as +{MButton down} (note that it appears before the opening brace of the key it is modifying if the key requires braces, not inside the braces). In this case, you don’t want to use it as a modifier since you want to have it hel...
by boiler
20 Jan 2021, 06:03
Forum: Ask For Help
Topic: F3 sends a key such as x
Replies: 2
Views: 63

Re: F3 sends a key such as x

Perhaps this is the issue: If a script other than the one executing SendInput has a low-level keyboard hook installed, SendInput automatically reverts to SendEvent (or SendPlay if SendMode InputThenPlay is in effect). This is done because the presence of an external hook disables all of SendInput's ...
by boiler
20 Jan 2021, 05:37
Forum: Ask For Help
Topic: Pulling words from text file
Replies: 3
Views: 90

Re: Pulling words from text file

Without having to know in advance how many results there are and without limiting the number of possible results: TestText := "hi $my name $is Chad, how are $you today" s := 1 while f := RegExMatch(TestText, "(?<=\$)\w+", m, s) TextOut .= m "`n", s:= f + StrLen(m) MsgBox, % TextOut Could assign the ...
by boiler
19 Jan 2021, 18:18
Forum: Ask For Help
Topic: Number of possible sets within a given number range Topic is solved
Replies: 6
Views: 138

Re: Number of possible sets within a given number range Topic is solved

No problem. You can just make the function round it so you just simply call the function, like this: MsgBox, % Combinations(45, 5) return Combinations(n, k) { return Round(NFactDivNMinKFact(n, k) / Factorial(k)) } Factorial(n) { return n < 3 ? n : n * Factorial(n - 1) } NFactDivNMinKFact(n, k) { f :...
by boiler
19 Jan 2021, 15:37
Forum: Ask For Help
Topic: Number of possible sets within a given number range Topic is solved
Replies: 6
Views: 138

Re: Number of possible sets within a given number range Topic is solved

The function for factorial itself is indeed short. The problem is you can't just simply calculate the factorial of everything because the numbers get too large. However, we can take advantage of a lot of canceling in the fraction (e.g., 45! / 40! = 45 x 44 x 43 x 42 x 41) to keep the numbers smaller...
by boiler
19 Jan 2021, 12:53
Forum: Offtopic
Topic: Learn how to protect your Intellectual Property in this free AHK webinar
Replies: 38
Views: 222698

Re: Learn how to protect your Intellectual Property in this free AHK webinar

I always wondered how to protect my scripts from Salma Hayek.
by boiler
19 Jan 2021, 08:37
Forum: Offtopic
Topic: Avoiding insomnia
Replies: 4
Views: 129

Re: Avoiding insomnia

:lol: Perfect! :bravo:
by boiler
17 Jan 2021, 11:32
Forum: Ask For Help
Topic: “specifically: inactive” when running a script?
Replies: 7
Views: 88

Re: “specifically: inactive” when running a script?

It appears your path has commas in it, so I think you’re looking to do this (force an expression so you can use a quoted string):

Code: Select all

Loop, Files, % "C:\PortableApps Platform\PortableApps\AutoHotkeyPortable\Scripts\Old, Inactive, Faulty, Tests\Tests\*.txt\*.*", FD  ; Include Files and Directories

Go to advanced search