Search found 73 matches

by lkb3
11 Apr 2024, 10:42
Forum: Ask for Help (v1)
Topic: need suggestions for ways to implement a "DO NOT SHOW THIS AGAIN" dialog Topic is solved
Replies: 2
Views: 80

need suggestions for ways to implement a "DO NOT SHOW THIS AGAIN" dialog Topic is solved

We've all seen dialog boxes that include a "DO NOT SHOW THIS AGAIN" check box; or a message that only pops up the first time we run a program, or after a program updates. I'd like to to implement something like this, so the first time my users run my script, they see a "what's new in this version" b...
by lkb3
01 Mar 2024, 08:51
Forum: Ask for Help (v1)
Topic: FindText inconsistent error
Replies: 2
Views: 134

Re: FindText inconsistent error

Descolada Yes, the scaling is the same - I should have mentioned that in the original post. Have you tried a simpler code to test whether FindText can at all "see" your second monitor properly? I'm drawing a blank - how would you recommend I do this? I know that when I used the image capture utilit...
by lkb3
29 Feb 2024, 11:10
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 559

Re: Was there a way to move mouse along a line or not? Topic is solved

text can you modify it to move along the 2 xy coordinates exactly (the "line" between the coordinates) in for example 40 pixels to right every time? If the line is horizontal or vertical, it's easy: MouseMove, 40, 0,,R will move the mouse 40 pixels to the right (the "R" makes it relative motion) If...
by lkb3
29 Feb 2024, 10:19
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 559

Re: Was there a way to move mouse along a line or not? Topic is solved

MouseMove does this. For example CoordMode, Mouse, Screen ;get the current cursor position MouseGetPos, startX, startY ;instantly move the cursor from current location to coordinates 100, 100 MouseMove, 100, 100 ; slowly move the cursor 250 pixels to the left MouseMove, 250, 0, 50, R ; slowly move t...
by lkb3
29 Feb 2024, 10:06
Forum: Ask for Help (v1)
Topic: FindText inconsistent error
Replies: 2
Views: 134

FindText inconsistent error

I have a function uses FindText() to search for an image & click on it(see below). The image is a button in a web-based application, running on MS Edge, Windows 10 64bit Like many of us, I have dual-monitor setups, both at home and at work, and the thing I can't figure out is that the function will ...
by lkb3
29 Feb 2024, 08:29
Forum: Ask for Help (v1)
Topic: ImageSearch and FindText error
Replies: 3
Views: 94

Re: ImageSearch and FindText error

We're running the same application on the same resolution monitors, but just to test it, I had him screenshot one of the buttons in question & re-created the file that ImageSearch is looking for. It didn't fix the issue. (this was just with the ImageSearch based version, not the findtext based versi...
by lkb3
28 Feb 2024, 14:06
Forum: Ask for Help (v1)
Topic: ImageSearch and FindText error
Replies: 3
Views: 94

ImageSearch and FindText error

I have a script that automates some tasks on a web-based application our company uses. It uses ImageSearch to look in a certain part of the screen, and when it finds the button that matches the image, it clicks on it. I have refined it so it works for many of my colleagues, but there's one guy for w...
by lkb3
06 Dec 2023, 15:52
Forum: Ask for Help (v1)
Topic: ImageSearch errorLevel 2 question
Replies: 6
Views: 534

Re: ImageSearch errorLevel 2 question

tried that. Doesn't make a difference. Still throws errorLevel 2
by lkb3
06 Dec 2023, 15:37
Forum: Ask for Help (v1)
Topic: ImageSearch errorLevel 2 question
Replies: 6
Views: 534

ImageSearch errorLevel 2 question

What are some of the reasons that ImageSearch might throw errorLevel 2? The help file says: "ErrorLevel is set to ... 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)." I have a script that was working...
by lkb3
22 Aug 2023, 07:32
Forum: Ask for Help (v1)
Topic: Loop with try/catch not working
Replies: 6
Views: 516

Re: Loop with try/catch not working

Thank you again, Russ. I believe you are correct: from the Help page on the "Catch" command: There are two kinds of runtime errors: those which normally set ErrorLevel, and those which normally cause the current thread to exit after displaying an error message I've changed the script the way you sug...
by lkb3
21 Aug 2023, 15:35
Forum: Ask for Help (v1)
Topic: Loop with try/catch not working
Replies: 6
Views: 516

Re: Loop with try/catch not working

Follow up question: thanks to Russ, the errorlevel reporting is working the way I want. but what I don't understand is, even though my Catch statement says to sleep for 1/2 second, no time appears to be passing. The error reporting bears this out - If it was truly sleeping 1/2 second between each lo...
by lkb3
21 Aug 2023, 15:22
Forum: Ask for Help (v1)
Topic: Loop with try/catch not working
Replies: 6
Views: 516

Re: Loop with try/catch not working

Thanks, Russ!
by lkb3
21 Aug 2023, 14:20
Forum: Ask for Help (v1)
Topic: Loop with try/catch not working
Replies: 6
Views: 516

Loop with try/catch not working

I'm trying to create a loop that uses the ImageSearch command to look for a button. However, the button might not be immediately available when the command runs, but should be in a second or two. So my thought is that I'd put the ImageSearch command inside a loop, and inside a try statement. If the ...
by lkb3
06 Sep 2022, 15:44
Forum: Ask for Help (v1)
Topic: Any idea why this script launches two instances of Paint?
Replies: 2
Views: 423

Any idea why this script launches two instances of Paint?

I have this script compiled to exe and assigned to a key on my keyboard. Every time I hit this key without Snip & Sketch active (so the second section of the code), it launches two instances of MS Paint. Any idea why? I dont' think the issue is the AHK code itself, but rather something with the exec...
by lkb3
13 Jul 2020, 10:31
Forum: Ask for Help (v1)
Topic: [Solved] I want better use of the numeric keypad.
Replies: 19
Views: 13315

Re: [Solved] I want better use of the numeric keypad.

wow, just saw this from 5 years ago. For what it's worth, I have a script that i have compiled, and i used the MS keyboard manager to assign the .exe file to one of the extra keys (the Web/Home button) on my keyboard. ; L Beidler 21Sep2016 ; designed to be compiled & assigned to a multi-media keyboa...
by lkb3
06 Sep 2019, 11:07
Forum: Ask for Help (v1)
Topic: How to force WinActivate to activate the NEWEST window?
Replies: 2
Views: 1097

How to force WinActivate to activate the NEWEST window?

I have a script that pastes the contents of the clipboard to an MS Paint window. It works great if MS Paint isn't open. however, if there is already a Paint window open, it creates a new window, but the paste operation goes to the old window. Is there a way to tell the WinActivate command that I'm l...
by lkb3
24 Apr 2015, 14:02
Forum: Scripts and Functions (v1)
Topic: Access the most recent folder of pictures on a smartphone
Replies: 3
Views: 2302

Re: Access the most recent folder of pictures on a smartphon

Wow. That's great. Thanks, lexikos. Much simpler & faster now: /* lkb3 24Apr2015 This script uses a ComObj call to access a smartphone's file system, and open a Windows explorer window open to the folder on the phone which contains the most recent photos. This version was designed to be used with an...
by lkb3
17 Apr 2015, 15:13
Forum: Scripts and Functions (v1)
Topic: Access the most recent folder of pictures on a smartphone
Replies: 3
Views: 2302

Access the most recent folder of pictures on a smartphone

This script will query a smartphone's file system for the folders which contain pictures, find the most recent folder, and launch a windows explorer window. This is useful when directly navigating the picture folders of an iPhone, where the folder names are something like 842HIQIZ, and the time stam...
by lkb3
14 Apr 2015, 10:03
Forum: Ask for Help (v1)
Topic: how to access file system of my iphone using ahk?
Replies: 22
Views: 9250

Re: how to access file system of my iphone using ahk?

ha ha, thanks, Kon. i knew this code was cheesy when I wrote it, but it was all I could think of at the time, and didn't have time to work on something better. Thanks for your much-more-elegant solution! for item in camera.Items { if (A_Index == count) lastItem .= item.Name }

Go to advanced search