Search found 2397 matches

by boiler
Yesterday, 14:10
Forum: Editors
Topic: Came across Visual Studio Code the other day
Replies: 14
Views: 388

Re: Came across Visual Studio Code the other day

I'm finding the original script is working fine for me. I had made some mods to my version of the script including returning focus to the editor after the correct help page is selected, and the issues I was having was returning too fast to the editor which didn't give it time to finish entering the ...
by boiler
22 Jun 2019, 05:39
Forum: Editors
Topic: Came across Visual Studio Code the other day
Replies: 14
Views: 388

Re: Came across Visual Studio Code the other day

I don't think it is a problem with the file structure (in terms of content). I noticed that it doesn't work as well as it used to, but I think it has to do with timing. I think it tries stuffing the search text into the search box before it's ready to accept it because the help file opens slower tha...
by boiler
21 Jun 2019, 05:58
Forum: Editors
Topic: Came across Visual Studio Code the other day
Replies: 14
Views: 388

Re: Came across Visual Studio Code the other day

need4speed wrote:
19 Jun 2019, 15:24
in AHK Studio select a command e.g. ToolTip then press F1 -> AHK Help file is opened, and navigates to the ToolTip Help Section. How to achieve that in VSC?
Try Rajat's Context Sensitive Help in any Editor.
by boiler
15 Jun 2019, 18:21
Forum: Scripts and Functions
Topic: .gif Animation on gui
Replies: 10
Views: 4693

Re: .gif Animation on gui

I haven't tried making that work, but I believe that it would be the same for me. I imagine the way the document object works, it's not meant to have a new html written to it. I recommend adding a second image and switch between them using GuiControl, Hide and GuiControl, Show.
by boiler
14 Jun 2019, 21:24
Forum: Scripts and Functions
Topic: .gif Animation on gui
Replies: 10
Views: 4693

Re: .gif Animation on gui

Do you have valid values assigned to the variables imageNewFullPath, w, and h prior to your statement where you assign the value to the variable html? If not, you don't have a valid html string.
by boiler
04 Jun 2019, 13:28
Forum: Ask For Help
Topic: loop file Progress Topic is solved
Replies: 2
Views: 104

Re: loop file Progress Topic is solved

By the way, I'm not seeing what your inner loop does. Seems like it should be removed and just let the If blocks stand within the outer loop.
by boiler
04 Jun 2019, 13:26
Forum: Ask For Help
Topic: loop file Progress Topic is solved
Replies: 2
Views: 104

Re: loop file Progress Topic is solved

Doing a loop first to get a total file count will allow you to do this. Like this: in_path := "D:\exp" out_path := "E:\output" noise_level := "2" scale := "2" in_len := StrLen(in_path) count := 0 total := 0 Loop, Files, %in_path%\*.*, FR total++ Loop, Files, %in_path%\*.*, FR { count++ Loop { Sleep,...
by boiler
31 May 2019, 13:21
Forum: Ask For Help
Topic: Check if path exist in a variable Topic is solved
Replies: 3
Views: 134

Re: Check if path exist in a variable Topic is solved

C:\132\55\Folder is not a sub-folder of any one of those paths. If it was, IfInString would find it.
by boiler
29 May 2019, 20:30
Forum: Ask For Help
Topic: Joystick remap + #IfWinActive
Replies: 1
Views: 73

Re: Joystick remap + #IfWinActive

The #If... directives only apply to hotkeys and hotstrings, but you are not defining hotkeys, you are surveying joysticks and acting on the values that are read. You need to just have your code that monitors the joysticks only execute if that window is active. You can add these two lines directly af...
by boiler
29 May 2019, 17:48
Forum: Scripts and Functions
Topic: Gui HotKey control that does not allow ANY modifiers
Replies: 1
Views: 426

Re: Gui HotKey control that does not allow ANY modifiers

Just wanted to let you know that I just searched for this, and it's just what I needed. Thanks for posting it.
by boiler
24 May 2019, 19:11
Forum: Ask For Help
Topic: same block code many times with small differents Topic is solved
Replies: 7
Views: 220

Re: same block code many times with small differents Topic is solved

You're welcome. If you still have issues, you can post them, and someone is likely to help you if your questions are specific enough (like they were in this case).
by boiler
23 May 2019, 16:17
Forum: Ask For Help
Topic: same block code many times with small differents Topic is solved
Replies: 7
Views: 220

Re: same block code many times with small differents Topic is solved

History using other languages. You can also see it here for example. After/before the loop isn't something I mentioned. That is your thing you just added.
by boiler
23 May 2019, 16:15
Forum: Ask For Help
Topic: Help with WinGetTitle Topic is solved
Replies: 3
Views: 121

Re: Help with WinGetTitle Topic is solved

Add WinWaitActive after WinActivate because you're acting on the active window in the WinGetTitle immediately after and it may not be active yet.
by boiler
23 May 2019, 16:04
Forum: Ask For Help
Topic: same block code many times with small differents Topic is solved
Replies: 7
Views: 220

Re: same block code many times with small differents Topic is solved

I prefer to use 'break', and never to use 'until', because I find it more readable, the control flow, the point at which the break occurs, is clearer to me. I would think you're in a small minority on this. Also, the break approach may be more common amongst programming languages. I don't think so....
by boiler
23 May 2019, 15:29
Forum: Ask For Help
Topic: same block code many times with small differents Topic is solved
Replies: 7
Views: 220

Re: same block code many times with small differents Topic is solved

First, you can compact the code by using until instead of if statements to break the loop as shown below (and it's a better programming practice). And it would seem you only need the Sleep inside the loop if you don't make it contingent on the value of ErrorLevel , allowing you to remove one Sleep c...
by boiler
22 May 2019, 10:21
Forum: Wish List
Topic: ImageSearch: Click center of found image
Replies: 6
Views: 304

Re: ImageSearch: Click center of found image

Swag stated it well. Also, the size of the image isn’t what is rounded because it’s always an integer. It’s only the center of the image that often wouldn’t be an integer because you’re dividing by 2, and if the size is an odd number, then the center will have a 0.5. Rounding the result would be a t...
by boiler
21 May 2019, 16:46
Forum: Ask For Help
Topic: Feel like I'm repeating myself unnecessarily
Replies: 1
Views: 113

Re: Feel like I'm repeating myself unnecessarily

One thing you can do is wherever you are repeating the exact same lines, put them in a subroutine and replace those lines with a Gosub call.
by boiler
21 May 2019, 16:32
Forum: Wish List
Topic: ImageSearch: Click center of found image
Replies: 6
Views: 304

Re: ImageSearch: Click center of found image

Clicking on an image once it is found is only one use case of finding an image with ImageSearch. The most generic and useful information on the location of the image is its upper-left corner, especially since that is how the the coordinates of the screen and windows are laid out (with 0,0 being the ...
by boiler
19 May 2019, 18:46
Forum: Ask For Help
Topic: Keep a variable in sync with a INI value even after reload
Replies: 2
Views: 79

Re: Keep a variable in sync with a INI value even after reload

Just put an IniRead statement at the top of your script that will read the value of Options from the ini file every time your script is reloaded.
by boiler
17 May 2019, 21:06
Forum: Ask For Help
Topic: Help with ImageSearch Topic is solved
Replies: 16
Views: 499

Re: Help with ImageSearch Topic is solved

Well, that's good since we now have a good idea that it all should work. But don't worry about just painting over the non-black pixels. Like I was suggesting, you should not only paint over all the anti-aliased pixels (non-black and non-background grey) but over a good amount of the black and grey a...

Go to advanced search