Search found 312 matches

by WeThotUWasAToad
15 Apr 2021, 18:21
Forum: Ask for Help (v1)
Topic: Variable results for single hotkey Topic is solved
Replies: 3
Views: 283

Re: Variable results for single hotkey Topic is solved

Thanks for the comments Mike.

By simply adding the word Else to the beginning of the IF lines, I can get the behavior I want (ie if it finds the defined criteria then it executes the corresponding action and the script stops. Otherwise, the script continues.)

Thanks again
by WeThotUWasAToad
15 Apr 2021, 11:04
Forum: Ask for Help (v1)
Topic: Variable results for single hotkey Topic is solved
Replies: 3
Views: 283

Variable results for single hotkey Topic is solved

Hello, How do you construct a script so that a given hotkey will result in variable processes depending on the currently active window? Below is a basic template I wrote for doing the above. It follows the assumption that it will work down looking for an "IF" criteria to be met and when it is, execu...
by WeThotUWasAToad
22 Mar 2021, 13:04
Forum: Ask for Help (v1)
Topic: Compare pixel colors for a series of points in two adjacent images
Replies: 4
Views: 597

Re: Compare pixel colors for a series of points in two adjacent images

Thanks Mike. I appreciate the modifications. I'm still working my way through this trying to understand it and I think I will definitely have some follow-up questions but not at present.
by WeThotUWasAToad
18 Mar 2021, 20:51
Forum: Ask for Help (v1)
Topic: Compare pixel colors for a series of points in two adjacent images
Replies: 4
Views: 597

Re: Compare pixel colors for a series of points in two adjacent images

Wow. This is great. Thank you very much. Not only does your script give me a solution but it gives me a better understanding of several functions which I've seen before but never quite known exactly how to use. One question I have is if there is a way to put some +/- values in for the definition of ...
by WeThotUWasAToad
18 Mar 2021, 15:09
Forum: Ask for Help (v1)
Topic: Compare pixel colors for a series of points in two adjacent images
Replies: 4
Views: 597

Compare pixel colors for a series of points in two adjacent images

Hello, Suppose you have two adjacent images (A & B) on your screen and suppose you want to do a series pixel color comparisons (ie comparing colors of certain pixels on the left with the colors of the corresponding pixels on the right). I know some of the variables and functions to be used, but I'm ...
by WeThotUWasAToad
13 Nov 2020, 22:21
Forum: Ask for Help (v1)
Topic: Proper format for multiple IF statements Topic is solved
Replies: 7
Views: 1676

Re: Proper format for multiple IF statements Topic is solved

Thanks for the heads up.

I usually use indentation quite a bit to help me keep various things straight. So it's mainly for my own purposes. However, I will try to remember your comment so it will not be confusing when pasting code here in the forum.
by WeThotUWasAToad
13 Nov 2020, 21:43
Forum: Ask for Help (v1)
Topic: Proper format for multiple IF statements Topic is solved
Replies: 7
Views: 1676

Re: Proper format for multiple IF statements Topic is solved

Ahh. That did the trick.

Many thanks to both of you.
by WeThotUWasAToad
13 Nov 2020, 21:22
Forum: Ask for Help (v1)
Topic: Proper format for multiple IF statements Topic is solved
Replies: 7
Views: 1676

Re: Proper format for multiple IF statements Topic is solved

Note: I just discovered that the object is being moved to each of the four locations and ends with B. Why is that occurring if the Ref variable is only equal to R?
by WeThotUWasAToad
13 Nov 2020, 21:18
Forum: Ask for Help (v1)
Topic: Proper format for multiple IF statements Topic is solved
Replies: 7
Views: 1676

Re: Proper format for multiple IF statements Topic is solved

Thank you for the comments and the link. I made changes to the script by placing the IF criteria in parentheses and enclosing the blocks in curly brackets. Now there is a response to the script but it always responds as if the reference (Ref) is B — the last option. For example, below is the updated...
by WeThotUWasAToad
13 Nov 2020, 20:18
Forum: Ask for Help (v1)
Topic: Proper format for multiple IF statements Topic is solved
Replies: 7
Views: 1676

Proper format for multiple IF statements Topic is solved

Hello, Can someone look at the script below and help me understand what I've missed or done wrong? I'm working in PowerPoint and I want to move a selected object by entering the horizontal and vertical positions in the Format Shape box. Prior to running the script, I must input three variables: xPos...
by WeThotUWasAToad
06 Sep 2020, 17:16
Forum: Ask for Help (v1)
Topic: MouseClickDrag function not working
Replies: 2
Views: 1133

MouseClickDrag function not working

Hello, What would cause MouseClickDrag to not work and is there a way to improve its function? I'm using Camtasia video editing software and I've got a number of steps which are repetitive, hence my use of an AutoHotkey script. In one part of the process, I remove a small section of the recording. D...
by WeThotUWasAToad
01 Sep 2020, 15:19
Forum: Ask for Help (v1)
Topic: Stop looping thread without killing script Topic is solved
Replies: 2
Views: 254

Re: Stop looping thread without killing script Topic is solved

Thanks Xtra,

What a great and clever solution!

That's just what I needed.

Thanks again.
by WeThotUWasAToad
01 Sep 2020, 14:04
Forum: Ask for Help (v1)
Topic: Stop looping thread without killing script Topic is solved
Replies: 2
Views: 254

Stop looping thread without killing script Topic is solved

Hello, Is there a way to stop or interrupt a looping thread without killing the script (ie without closing the .ahk file)? Suppose you have a script which contains several threads (each with its own hotkey), and suppose one of the threads has a Loop, 99 command. Once you press the hotkey to begin ru...
by WeThotUWasAToad
14 Aug 2020, 13:16
Forum: Ask for Help (v1)
Topic: AHK determine if window is Maximized or not Topic is solved
Replies: 13
Views: 6239

Re: AHK determine if window is Maximized or not Topic is solved

Thanks boiler & Epialis.

Both of your posts were very helpful.

I got just the solution I needed for the current situation plus I have a new function in my AHK bag of tricks.
by WeThotUWasAToad
14 Aug 2020, 10:27
Forum: Ask for Help (v1)
Topic: AHK determine if window is Maximized or not Topic is solved
Replies: 13
Views: 6239

AHK determine if window is Maximized or not Topic is solved

Hello, Does AutoHotkey have a method for determining if a particular window is Maximized or not? In other words, I want to include an IF command in my script to ask if the window is maximized. For example, suppose you have a script which needs to end with one sequence of commands if the active windo...
by WeThotUWasAToad
14 Aug 2020, 10:12
Forum: Ask for Help (v1)
Topic: Display list of user threads, not user posts
Replies: 7
Views: 3467

Re: Display list of user threads, not user posts

Thanks for all the help.

Interesting reading the follow-up dialogue.
by WeThotUWasAToad
09 Aug 2020, 18:22
Forum: Ask for Help (v1)
Topic: Display list of user threads, not user posts
Replies: 7
Views: 3467

Display list of user threads, not user posts

Hello, How do you create a list of the titles of threads you have created or participated in? I know that there are two places which display a user's posts : Username drop-down > User Control Panel > Show your posts Username drop-down > Profile > Search user's posts However, rather than listing ever...
by WeThotUWasAToad
21 Jul 2020, 18:31
Forum: Ask for Help (v1)
Topic: How to know when to enclose something in percent marks (%'s)
Replies: 2
Views: 2087

Re: How to know when to enclose something in percent marks (%'s)

Thanks Joe,

That's a great link. I've never been there before but it looks like it's got a lot of great info.
by WeThotUWasAToad
21 Jul 2020, 12:49
Forum: Ask for Help (v1)
Topic: How to know when to enclose something in percent marks (%'s)
Replies: 2
Views: 2087

How to know when to enclose something in percent marks (%'s)

Hello, What does it mean when something is enclosed in %'s and how do you know when to use them? I was recently looking up something on an unrelated topic in the docs (https://www.autohotkey.com/docs/commands/LoopReadFile.htm) and came across an example script in which A_Index and other built-in var...
by WeThotUWasAToad
20 Jul 2020, 17:06
Forum: Ask for Help (v1)
Topic: Save multiple separate values for pasting later in the script
Replies: 3
Views: 2098

Re: Save multiple separate values for pasting later in the script

Thanks for the great information braunbaer . I love getting solutions which cause me to learn an AHK function I've never used before. I found an example in the docs which combines Loop, read, . . . with Loop, parse, . . . to get one value at a time: F1:: Loop, read, C:\Database Export.txt { Loop, pa...

Go to advanced search