Search found 16565 matches

by boiler
Yesterday, 16:50
Forum: Ask for Help (v2)
Topic: Keystrokes not passed by some apps?
Replies: 2
Views: 45

Re: Keystrokes not passed by some apps?

Perhaps those applications use similar hotkeys and are causing a conflict. You might try running your script as administrator to see if it helps. This isn't related to this particular issue, however... You said in a prior thread that you prefer using v2. If this is meant to be v2 code, you don't hav...
by boiler
Yesterday, 11:56
Forum: Ask for Help (v2)
Topic: Send() key isn't working anymore.
Replies: 10
Views: 144

Re: Send() key isn't working anymore.

Interesting since that would have been an issue before you updated your v2 version as well.
by boiler
Yesterday, 10:09
Forum: Ask for Help (v1)
Topic: global open new tab in chrome
Replies: 6
Views: 90

Re: global open new tab in chrome

The good thing about such features is you can keep them if you like them and very easily remove them if you don't.
by boiler
Yesterday, 08:25
Forum: Ask for Help (v2)
Topic: Send Japanese character to Amazon Workspace
Replies: 3
Views: 47

Re: Send Japanese character to Amazon Workspace

Make sure your script file is saved with UTF-8 encoding, preferably UTF-8 with BOM encoding.
by boiler
Yesterday, 07:47
Forum: Ask for Help (v2)
Topic: Send() key isn't working anymore.
Replies: 10
Views: 144

Re: Send() key isn't working anymore.

My script has 712 lines of code. Then what you posted is not the script you are running. Post a small script that isolates the problem when you run that script. Explain what you expect to see (which window responds in what way, how it gets activated, etc.) and what happens instead. Edit: Like mikey...
by boiler
Yesterday, 06:28
Forum: Ask for Help (v1)
Topic: Function within an expression in a parameter?
Replies: 4
Views: 99

Re: Function within an expression in a parameter?

Because v1 uses a pseudo-array in returning the results of WinGet…List and you can only use simple variables in addressing the elements of the pseudo-array, you have to use the approach you did as mikeyww said. Forcing an expression doesn’t get around that issue. Here is the v2 version: #Requires Au...
by boiler
17 Mar 2024, 11:18
Forum: Ask for Help (v1)
Topic: WinGetTitle / Contains - Help Me Topic is solved
Replies: 7
Views: 138

Re: WinGetTitle / Contains - Help Me Topic is solved

The first approach might have been fine, but the second approach is better. Not sure what you're saying the problem is. You can add to each whatever you want: SetTitleMatchMode, 2 #IfWinActive, CQ7AR 9:: MsgBox, 48, % "Warning! The title matched!", % "The title matched, so proceeding with the rest o...
by boiler
17 Mar 2024, 09:31
Forum: Ask for Help (v1)
Topic: WinGetTitle / Contains - Help Me Topic is solved
Replies: 7
Views: 138

Re: WinGetTitle / Contains - Help Me Topic is solved

You mean like below? And if I was thinking right, I wouldn't have needed an extra function to accomplish the first script I posted. Just set the tittle match mode correctly and use #IfWinActive, like this: SetTitleMatchMode, 2 #IfWinActive, CQ7AR 9::MsgBox, 48, % "Warning! (#1)", % "This is a warnin...
by boiler
17 Mar 2024, 07:09
Forum: Ask for Help (v1)
Topic: WinGetTitle / Contains - Help Me Topic is solved
Replies: 7
Views: 138

Re: WinGetTitle / Contains - Help Me Topic is solved

Code: Select all

#If ActiveWinTitleContains("CQ7AR")
9::
MouseClick, left, 707, 566
sleep, 50
MouseClick, left, 912, 650
Send, RR1507
return

ActiveWinTitleContains(str) {
	WinGetTitle, title, A
	return !!InStr(title, str)
}
by boiler
17 Mar 2024, 07:01
Forum: Ask for Help (v1)
Topic: Help with toggle
Replies: 1
Views: 38

Re: Help with toggle

Add this:

Code: Select all

^q::Suspend
by boiler
17 Mar 2024, 06:53
Forum: Ask for Help (v1)
Topic: Msgbox with one gui costomize... Topic is solved
Replies: 3
Views: 86

Re: Msgbox with one gui costomize... Topic is solved

If you’d like, you can use a regular MsgBox as a countdown timer (from this post ): SetTimer, Countdown, 1000 Timeout := 12 Msgbox, 49, Shutdown Alert, % "System will auto-shutdown in " Timeout " seconds. Press Cancel button to abort. Press OK to shutdown immediately.", % Timeout return Countdown: i...
by boiler
17 Mar 2024, 03:43
Forum: Ask for Help (v1)
Topic: Lock the window position of a specific application
Replies: 6
Views: 107

Re: Lock the window position of a specific application

Perhaps that approach only works on certain types of windows
by boiler
17 Mar 2024, 03:11
Forum: Ask for Help (v1)
Topic: Lock the window position of a specific application
Replies: 6
Views: 107

Re: Lock the window position of a specific application

The calculator window sometimes behaves differently, so try a different window. For Paint.NET, you have ahk_exe twice in a row, so remove one of them.
by boiler
17 Mar 2024, 03:05
Forum: Ask for Help (v1)
Topic: Improve ImageSearch (errorlevel2)
Replies: 7
Views: 85

Re: Improve ImageSearch (errorlevel2)

You can’t have transparent pixels in the reference image. Crop it down to a rectangle that has only fully opaque pixels.

I don’t see that image in the website. If that’s your avatar, then we wouldn’t see it when we open that page. You should attach a screenshot like I suggested.
by boiler
17 Mar 2024, 01:34
Forum: Ask for Help (v1)
Topic: Improve ImageSearch (errorlevel2)
Replies: 7
Views: 85

Re: Improve ImageSearch (errorlevel2)

Is it possible to get the coordinates of all the iconButtons matching the image in an arrray so that they can be compared to the clicked area for least distance? Wait until you can find even one instance before you worry about multiple instances. You might want to post the reference image and a scr...
by boiler
17 Mar 2024, 01:21
Forum: Ask for Help (v1)
Topic: Lock the window position of a specific application
Replies: 6
Views: 107

Re: Lock the window position of a specific application

Variable names cannot have spaces. Change Fluent Search to FluentSearch. It doesn’t matter what the variable name is as long as it is a valid name. You could leave it as notepad or make it Henry. You seem to think it needs to match the title of the window, but it has nothing to do with that.
by boiler
17 Mar 2024, 01:14
Forum: Ask for Help (v1)
Topic: Improve ImageSearch (errorlevel2)
Replies: 7
Views: 85

Re: Improve ImageSearch (errorlevel2)

ErrorLevel of 1 means the image was not found, so your code is set up to do the opposite: trying to display the coordinates when not found and continuing the loop if found. Also, the comments with your KeyWait lines have it backwards. The one with the D is waiting until it is down. The one without w...
by boiler
16 Mar 2024, 21:19
Forum: Ask for Help (v1)
Topic: need help finishing click coords
Replies: 1
Views: 41

Re: need help finishing click coords

You need to force an expression, and then write it in expression syntax:

Code: Select all

Click, % X "," Y + 40
by boiler
16 Mar 2024, 21:11
Forum: Ask for Help (v1)
Topic: Improve ImageSearch (errorlevel2)
Replies: 7
Views: 85

Re: Improve ImageSearch (errorlevel2)

ErrorLevel of 2 doesn’t mean it performed the search and couldn’t find it. It means your command is not correct. The * prior to the file name is not correct. You also have a Y1 value that is greater than Y2, which is not allowed. X2, Y2 is the lower-right coordinates of the search rectangle, which m...

Go to advanced search