Search found 71 matches

by berban
28 Sep 2018, 06:23
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

The o options have definitely proven themselves to be finicky to me. Any explanation for my confusion with why FindClick requires Screen coordinates to find things in a Relative window? -JenJen FindClick doesn't use CoordMode at all. It is completely separate. All you need to know is that the coord...
by berban
28 Sep 2018, 06:19
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hello berban Nice Script you have here and I would love to use it, but I can't seem to make it work...I downloaded the script from github and tried running it but no gui is showing or anything Is there anything I should do before? Hi FastLearner , Yes, FindClick is an AutoHotkey function so you'll ...
by berban
22 Sep 2018, 16:50
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Well it looks like you’re doing it right. At this point it’s just an issue with the underlying imagesearch technique. By which I guess I mean the image really isn’t matching, even if to your eyes it looks like it should. Personally I never use the trans- feature, except for maybe once or twice. In t...
by berban
21 Sep 2018, 09:22
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hahaha no worries about the repeat posting. It’s clear you are working pretty hard on whatever script you are writing, and it’s the least I can do to give you a small hand with this particular part of it. That being said there was a lot in there so I might not get to everything. But here’s a few res...
by berban
20 Sep 2018, 08:00
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hi JenJen, Thank you for the thorough investigation of the issue you're having. I'm always appreciative if bugs can be found, and a clear explanation makes identifying them way easier. I'm a little confused by the exact issue you're having however, although your sample code has given me an idea. If ...
by berban
03 Sep 2018, 18:33
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Well I can't walk you through the entire process but I did make a "Quick-Start Guide" chapter in the documentation that you should check out. You should also read the entire chapter on AutoHotkey Functions in the AutoHotkey documentation, as I also point out in the FindClick guide.
by berban
04 Aug 2018, 18:54
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Yeah it’s

Code: Select all

FindClick(Image, "e n2")
(Maybe you know that already but just wanted to repeat it in case.)

Let me know if you have any other questions!
by berban
03 Aug 2018, 07:38
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hi carno , sorry for the delay. You are right there is a simple way - use the "n" option. n – Number of clicks What to give: any integer Description: The number of times to click on each image. Use it like this: FindClick(Image, "e n2") If you want to vary the amount of time between clicks, you can ...
by berban
25 Jun 2018, 18:38
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Glad it works. Wish I had room for 3 monitors haha. Happy scripting! :D
by berban
22 Jun 2018, 08:55
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hm interesting, well you could try a few things like adding "stay" so it doesn’t move away, or "n2" for doing a double click. But maybe the way you were originally doing it is more reliable. If it is clicking in the right spot and the window isn’t responding correctly that’s probably not the best wa...
by berban
21 Jun 2018, 03:45
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Thanks for the helpful gifs! So I'm still not completely sure why it wouldn't work but my suggestion would be that for the ribbon one, I generally use the alt keys for those. For instance, in Microsoft Word, if I want to access the ribbon I just press Alt and the accelerator keys show up in little b...
by berban
17 Jun 2018, 10:38
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hi daffy82 , sorry but I can't tell you based on what you've posted. Nothing in that code would prevent it from working correctly. A few comments I could give you: k{click} [/color] and Center1 [/color] are not needed. The default behavior is to click at the center of the image. Try using the dx [/c...
by berban
29 May 2018, 14:08
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hi dice4321 , So the way AutoHotkey's ImageSearch command works, it basically scans the visible screen area for the image, which is essentially the same area that you can see with your two eyes. If the image is hidden behind another window and you can't physically see it, then this won't work. You'd...
by berban
07 May 2018, 08:48
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Yes Xtra is absolutely correct. If for some reason you don’t have privileges for %A_Temp%, or if you’d simply prefer to use another directory, you can change this line in the code: TempFile = %A_Temp%\%A_ThisFunc%Temp.png ; Directory where a temporary imagefile will be created (ImageSearch only acce...
by berban
05 May 2018, 00:53
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Hm... ErrorLevel is set to 0 if the image was found in the specified region, 1 if it was not found, or 2 if there was a problem that prevented the command from conducting the search (such as failure to open the image file or a badly formatted option). Have you used imagesearch in the past without is...
by berban
04 May 2018, 23:15
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Can you try some other image in another window? like maybe the solid white background of notepad.exe? If all else fails, look at the step where it says "performing imagesearch". In the text box it should show the actual code used, something along the lines of ImageSearch, FoundX, FoundY, 0, 0, 1919 ...
by berban
04 May 2018, 23:00
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Really? And the image that pops up under the "image preview" step looks like the area inside the box? You can make the box bigger if you want, but as far as using ImageSearch in general goes I would highly recommend going no larger than about 10x10. The larger an image you have, the more chances the...
by berban
04 May 2018, 22:39
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Yeah it's because when you hover over the icon it gets blue because the mouse is over it. When you click "Test" the mouse is no longer over it so it looks different. To avoid this, check the box "Allow offset", then pause the update, move the mouse, and unpause it. This will allow you to move the se...
by berban
04 May 2018, 20:00
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

You're welcome to try it, but personally I doubt it will work. You definitely can go up to 255 but before long you'll be matching everything on the screen. I think people tend to overestimate the usefulness of the "shades of variation" parameter - it's a very simple mathematical operation. By compar...
by berban
03 May 2018, 09:06
Forum: Scripts and Functions
Topic: FindClick() - ImageSearch, Clicking, & More [Newest Version]
Replies: 95
Views: 21131

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

Oh... :| that throws a big wrench into the works unfortunately. You can use Gdip to rotate images, although I haven't done this personally so I wouldn't be able to tell you how. Also I'd be worried that the rotation wouldn't result in the exact same image that you see on screen. When you perform a c...

Go to advanced search