Search found 15 matches
- 15 Apr 2023, 09:50
- Forum: Ask for Help (v1)
- Topic: If Statement shorthand
- Replies: 1
- Views: 190
If Statement shorthand
Hi. Easy Question.... Is there a shorthand way to type an If Statement with multiple and/or conditions example... If (x=1 or x=2 or x=3 or x=4......x=n) msgbox Hello World Thanks [Mod action: Moved topic to v1 section as the posted code indicates v1 is being used. The main section is for v2.]
- 24 Jan 2023, 18:29
- Forum: Ask for Help (v1)
- Topic: Comparing ImageSearch results
- Replies: 0
- Views: 249
Comparing ImageSearch results
Is there a method to compare images to determine which is the best fit in a pre-determined area?
Thank You
Thank You
- 04 Dec 2020, 12:03
- Forum: Ask for Help (v1)
- Topic: Partial Match with ImageSearch?
- Replies: 1
- Views: 310
Partial Match with ImageSearch?
Hi. I'm a big fan of using ImageSearch but I've run into a problem. I want Do an ImageSearch for numbers that pop-up on the screen, but the numbers keep changing slightly, so an IMAGESEARCH is not going to pick them up. I've tried controlling for *n to different tolerances and that doesn't work eith...
- 29 Nov 2020, 16:10
- Forum: Ask for Help (v1)
- Topic: Using a list of variables for multiple scripts
- Replies: 2
- Views: 237
Using a list of variables for multiple scripts
Hi, I have a number of scripts that use the same list of variables.
The variable list is updated every week. Is there a way to have the scripts pull from one Master list of variables rather than copy and paste the list into each script every week?
Thanks!
The variable list is updated every week. Is there a way to have the scripts pull from one Master list of variables rather than copy and paste the list into each script every week?
Thanks!
- 10 Jul 2020, 17:17
- Forum: Ask for Help (v1)
- Topic: 25 million variables in my script
- Replies: 6
- Views: 4553
25 million variables in my script
Hi community! I am a novice programmer and I'm finishing a script that is going to have roughly 25 million variables in it. It's an exhaustive combinatorial analysis and I built program to write out all the variables for the main script... so that's how I did it. The script itself is fairly simple, ...
- 26 Mar 2020, 18:13
- Forum: Ask for Help (v1)
- Topic: Newbie If/Then question
- Replies: 9
- Views: 629
Re: Newbie If/Then question
Thanks for the responses. This helps a lot.
- 26 Mar 2020, 16:42
- Forum: Ask for Help (v1)
- Topic: Newbie If/Then question
- Replies: 9
- Views: 629
Re: Newbie If/Then question
It's a fixed number, but it's VERY large. It's the output of a combinatorial analysis I ran....millions of output variables.
- 25 Mar 2020, 22:15
- Forum: Ask for Help (v1)
- Topic: Newbie If/Then question
- Replies: 9
- Views: 629
Newbie If/Then question
I have a list of many variables that I need to check with an IF/THEN statement, ie......
If (x1=0 or x2=0 or x3=0....xn=0)
{
}
Is there another way to express the syntax of the IF/THEN other than the example above. (Something that's more efficient)
Thank You,
-TED
If (x1=0 or x2=0 or x3=0....xn=0)
{
}
Is there another way to express the syntax of the IF/THEN other than the example above. (Something that's more efficient)
Thank You,
-TED
- 03 Sep 2019, 15:14
- Forum: Ask for Help (v1)
- Topic: Can a website detect an AHK script running?
- Replies: 3
- Views: 1210
Can a website detect an AHK script running?
Hi, I'm pretty new to AHK and was wondering if a website can detect my AHK script that I'm using to automate tasks.
Specifically, I'm curious as to:
1) Can the site detect my script
2) How do they do that?
3) Is there a way to mask or hide my script from the host website?
Thanks!
Specifically, I'm curious as to:
1) Can the site detect my script
2) How do they do that?
3) Is there a way to mask or hide my script from the host website?
Thanks!
- 13 Aug 2019, 16:32
- Forum: Ask for Help (v1)
- Topic: Best Match for an Image
- Replies: 1
- Views: 550
Best Match for an Image
Hi. Is there a way using ImageSearch to compare two saved JPEG file images and choose the best fit.
For example, an image pops up on the screen....the script uses one JPEG saved on my desktop and then compares it with another saved JPEG and chooses which is a closer fit.
Thanks!
For example, an image pops up on the screen....the script uses one JPEG saved on my desktop and then compares it with another saved JPEG and chooses which is a closer fit.
Thanks!
- 06 Aug 2019, 15:37
- Forum: Ask for Help (v1)
- Topic: Help with Image/Pixel Search
- Replies: 6
- Views: 1109
Help with Image/Pixel Search
Hello! Typically, I use ImageSearch and PixelSearch for automation projects, but in this case the target image is turned slightly at random, so ImageSearch or PixelSearch won't work too well. Can anyone recommend a way to recognize an Image or a grouping of Pixels that have been turned slightly? Tha...
- 19 Mar 2019, 15:31
- Forum: Ask for Help (v1)
- Topic: Finding 2nd and 3rd largest integers in a set
- Replies: 2
- Views: 780
Finding 2nd and 3rd largest integers in a set
Hello,
I have a series of variables that contain integers var1, var2, .... and would like to find the largest, 2nd largest, 3rd largest, etc.
Thank you.
I have a series of variables that contain integers var1, var2, .... and would like to find the largest, 2nd largest, 3rd largest, etc.
Thank you.
- 26 Feb 2019, 13:51
- Forum: Ask for Help (v1)
- Topic: Using ImageSearch for gaming
- Replies: 0
- Views: 444
Using ImageSearch for gaming
Hello! I am a gamer and like to bot up games that I play. I cut out pieces of the screen and Loop { Imagesearch } is the command I use the most to recognize those images on the screen. I use pixelsearch sometimes but it doesn't seem to work as well. Sometimes when I exit and reload certain games I n...
- 14 Jun 2018, 19:04
- Forum: Ask for Help (v1)
- Topic: Scripts aren't running in Windows 10
- Replies: 1
- Views: 553
Scripts aren't running in Windows 10
I migrated my AHK scripts to a new computer that runs Windows 10 (Windows 7 was my old OS). I downloaded and installed the AHK documentation and when I double click my scripts they don't run...the code just pops up in Notepad. In fact, the scripts aren't even recognized as AHK scripts...even though ...
- 03 May 2018, 12:53
- Forum: Ask for Help (v1)
- Topic: Speeding up ImageSearch?
- Replies: 1
- Views: 612
Speeding up ImageSearch?
Hi, Community. I use ImageSearch a lot to automate tasks on my desktop, and I recently wrote a script to play a card game. The player is dealt 5 cards, so I run a loop of 52 ImageSearch commands to recognize the first card, then another loop of 52 to recognize the 2nd...the 3rd...4th...and 5th. The ...