Search found 25 matches

by Hampoon
08 Jan 2019, 13:05
Forum: Ask For Help
Topic: Do something when a color is detected at a certain spot
Replies: 3
Views: 512

Re: Do something when a color is detected at a certain spot

You made this post 2 days ago, why don't you ask there if you're still not clear? https://www.autohotkey.com/boards/viewtopic.php?f=76&t=60612 I know I did. The help I received didn't seem to work and nobody had replied after 24 hours even after I stated that that wasn't working or I did something ...
by Hampoon
04 Jan 2019, 23:05
Forum: Ask For Help
Topic: Do something when a color is detected at a certain spot
Replies: 3
Views: 512

Do something when a color is detected at a certain spot

Hey there. I’d like to ask if there’s a way I can make my script search for a color at, for example, 731, 382 and if it finds said color it will do something, in this case send the S key. Thanks!
by Hampoon
04 Jan 2019, 04:14
Forum: Ask For Help
Topic: Do Something When A Color Is Detected At a Certain Spot
Replies: 7
Views: 987

Re: Do Something When A Color Is Detected At a Certain Spot

swagfag wrote:
04 Jan 2019, 02:24
the variable color contains the hex rgb representation of the found color at the coordinates you supplied to the command. unless u meant something else by "shade"
yes i mean color. how do i find what color/hex it is?
by Hampoon
03 Jan 2019, 22:14
Forum: Ask For Help
Topic: Do Something When A Color Is Detected At a Certain Spot
Replies: 7
Views: 987

Re: Do Something When A Color Is Detected At a Certain Spot

swagfag wrote:
03 Jan 2019, 08:56
absolute barebones

Code: Select all

PixelGetColor color, 182, 198, RGB
if (color = 0x000000)
	Send d
so uh how do i know what shade it is? it doesnt seem to be that shade, or im doing something wrong?
by Hampoon
03 Jan 2019, 00:49
Forum: Ask For Help
Topic: Do Something When A Color Is Detected At a Certain Spot
Replies: 7
Views: 987

Do Something When A Color Is Detected At a Certain Spot

Hey there. I'd like to make my script search for the color black in a few specific spots and when it finds said black it can do something, in this case send a key.
For example, if it sees black at 182, 198 it can send the D key. If it sees black at 184, 991 it can press S.
Thanks so much!
by Hampoon
02 Jan 2019, 01:00
Forum: Ask For Help
Topic: Make Loop With Timers
Replies: 1
Views: 330

Make Loop With Timers

So I'm pretty new to AHK and I'd like to make it so that it, for example, does: Send, f!IBakedYouAPie! then send Send, {Enter} every 294381 ms but then send after 12199 it sends Send, OhBoyWhatFlavor?!PieFlavored! then Send, {Enter}
How can I do this?
by Hampoon
20 Dec 2018, 14:25
Forum: Ask For Help
Topic: Can A Script Do Something Depending On Whether it Finds Something?
Replies: 4
Views: 672

Re: Can A Script Do Something Depending On Whether it Finds Something?

Look in the Commands documentation ( https://autohotkey.com/docs/commands/index.htm ) for both If and Else for explanations and examples of program flow. Reasons this doesn't help me: 1. I am trying to find text, not a color. 2. I have barely any idea how anything works and most of the tutorial mak...
by Hampoon
20 Dec 2018, 12:45
Forum: Ask For Help
Topic: Can A Script Do Something Depending On Whether it Finds Something?
Replies: 4
Views: 672

Can A Script Do Something Depending On Whether it Finds Something?

Hey there, I'm pretty new to this language. I was wondering if I could make a script do something like ctrl+f on a webpage and then if it does find something do something, and then if it doesn't do something else. Is this possible? Thanks!
by Hampoon
18 Dec 2018, 16:01
Forum: Ask For Help
Topic: Can I make my script click on a random button? Topic is solved
Replies: 3
Views: 536

Re: Can I make my script click on a random button? Topic is solved

Hi, I think this shouldn't be difficult. Possible steps: - Capture positions of these buttons MouseGetPos - Create either a bunch of associative arrays or just 1 (I would try it with a bunch) button1 := {x:532, y:368}, button2 := {x:64, y:68}, - Now you need a Random function which goes from the lo...
by Hampoon
18 Dec 2018, 12:54
Forum: Wish List
Topic: We want AHK for Linux!
Replies: 65
Views: 10808

We want AHK for Linux!

Hey there. I'm new to this language, and I am also a new Linux user. One thing I really miss is AHK. I really think you guys should make this awesome language work on Linux too. I did actually try it with WINE once (converted an ahk to exe), which didn't work. It's obviously a big project, but I rea...
by Hampoon
18 Dec 2018, 12:50
Forum: Ask For Help
Topic: Can I make my script click on a random button? Topic is solved
Replies: 3
Views: 536

Re: Can I make my script click on a random button? Topic is solved

Hi, I think this shouldn't be difficult. Possible steps: - Capture positions of these buttons MouseGetPos - Create either a bunch of associative arrays or just 1 (I would try it with a bunch) button1 := {x:532, y:368}, button2 := {x:64, y:68}, - Now you need a Random function which goes from the lo...
by Hampoon
17 Dec 2018, 12:43
Forum: Ask For Help
Topic: Can I make my script click on a random button? Topic is solved
Replies: 3
Views: 536

Can I make my script click on a random button? Topic is solved

Hey there. I'm pretty new to this language and I was wondering if it's possible to specify a few points using MouseMove that go to a button on a website and for the script to randomly decide between one of the buttons and then move to it and Send {lbutton} it. Is this possible? Thanks!
by Hampoon
14 Dec 2018, 12:47
Forum: Ask For Help
Topic: Can I make my script randomly pick between a few specified MouseMove points and then move to it?
Replies: 3
Views: 467

Re: Can I make my script randomly pick between a few specified MouseMove points and then move to it?

sinkfaze wrote:
13 Dec 2018, 15:13
If you just want to select one out of, say, five buttons, you can "label" the buttons and use Random to select which one to click each time:

Random, btn, 1,5
Cool! How do I "label" them though?
by Hampoon
13 Dec 2018, 13:06
Forum: Ask For Help
Topic: Can I make my script randomly pick between a few specified MouseMove points and then move to it?
Replies: 3
Views: 467

Can I make my script randomly pick between a few specified MouseMove points and then move to it?

Hey there. I'd like to write a script that will click on a random button. The screen will just have a webpage up with several buttons, and I can specify the locations of those buttons then the script will randomly decide one of them and move to it (then click it.). Is this at all possible? Oh, also,...
by Hampoon
12 Dec 2018, 17:26
Forum: Ask For Help
Topic: Randomly pick between a thing
Replies: 2
Views: 443

Re: Randomly pick between a thing

TLM wrote:
11 Dec 2018, 21:51
try this.. press f1 to fire mouseclicks, escape to exit..
hth
Right, but what I need to do is have the thing pick between a few buttons to press. I can specify what position those are at, and then the script must randomly decide which to click.
by Hampoon
11 Dec 2018, 10:45
Forum: Ask For Help
Topic: Randomly pick between a thing
Replies: 2
Views: 443

Randomly pick between a thing

Hey there. I'm pretty new to AHK, and I have a question. I'd like to make it so that the program randomly picks a spot to MouseMove. For example, I'd like it to be so that there are a few spots it could MouseMove to and it just had to randomly select one and then Send {lbutton} it. After it did that...
by Hampoon
09 Nov 2018, 13:03
Forum: Ask For Help
Topic: Input box changes script?
Replies: 1
Views: 287

Input box changes script?

Hey there, I'm new to AHK! I was scrolling thru the tutorial and I saw a perfect opportunity to improve a script I wrote previously! I saw that I could use an input box to do stuff. I want to make it so that I can, for example, the box can say, "What do you want 'pie' to be?" and the user can type i...
by Hampoon
08 Nov 2018, 10:20
Forum: Ask For Help
Topic: Send Enter doesn't work. Topic is solved
Replies: 12
Views: 1194

Re: Send Enter doesn't work. Topic is solved

Hi, For a Loop you can use such a technique: q:: while GetKeyState("q") { Send a Sleep, 5 Send d Sleep, 5 } return In this case, a and b get spammed while holding q. When releasing q, it stops. Replace the block within the while loop with your code and test it. Regards I'm sorry for the late respon...
by Hampoon
24 Oct 2018, 18:50
Forum: Ask For Help
Topic: Send Enter doesn't work. Topic is solved
Replies: 12
Views: 1194

Re: Send Enter doesn't work. Topic is solved

Scr1pter wrote:
24 Oct 2018, 18:33
Paint???
Use MouseGetPos
https://autohotkey.com/docs/commands/MouseGetPos.htm

Check the 1st example script.

Regarding the loop:
I will check it tomorrow - too late now.

Good night
Night night I guess. I'll let you know if I figure it out in the meantime. I might, this is so much fun to do.
by Hampoon
24 Oct 2018, 18:15
Forum: Ask For Help
Topic: Send Enter doesn't work. Topic is solved
Replies: 12
Views: 1194

Re: Send Enter doesn't work. Topic is solved

What was the reason :?: For moving mouse you have to work with: MouseMove, 100, 300, 0 Replace 100 and 300 with your target pixels. The 0 means speed (0 = highest speed). After moving the mouse, you can make: Send {lbutton} If you want to save some code lines, you can replace MouseMove and Send {lb...

Go to advanced search