Search found 84 matches

by densch
20 Jun 2019, 02:46
Forum: Ask For Help
Topic: Detect colors similar to another color?
Replies: 13
Views: 3641

Re: Detect colors similar to another color?

hey, I am a bit confused right now. I wanted to change it from a command to a function, so it can be used as needed. I wanted it to get some color and give back the distance between the current cursor position color and the given color. but for whatever reason ahk just wont recognize it as a functio...
by densch
17 Jun 2019, 14:55
Forum: Ask For Help
Topic: Detect colors similar to another color?
Replies: 13
Views: 3641

Re: Detect colors similar to another color?

Wow, that's really cool! Thanks!

Can you please explain to me what the different parts of

tr := format("{:d}","0x" . substr(targetColor,3,2))
actually do?
by densch
17 Jun 2019, 12:14
Forum: Ask For Help
Topic: Detect colors similar to another color?
Replies: 13
Views: 3641

Detect colors similar to another color?

Hello, I am a lazy person. so I am currently playing some idle clicker kind of game and dont feel like excessively clicking. the repeated clicking part is solved, also made it so that pressing z will toggle the auto click on and off. but I still have to move the mouse. i want to automate that part a...
by densch
09 Nov 2018, 06:38
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

okay, we are making some progress. it finally finds the text I want it to. now we'll see how it goes on.... also is it normal for the script to just quite after I used the j keystroke thing once? the script always just ends directly after I used it. should I perhaps put the "useless loop" around it ...
by densch
09 Nov 2018, 06:27
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

Can you tell me then why these images aren't found (refer to a few posts above)? it's literally just black and white text, it is also written black and white on the website (more precisely in the popup), so why tf cant it find it? there is no change in color or anything. I literally tried every sing...
by densch
09 Nov 2018, 05:33
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

okay, since I just cant get imagesearch to work beyond it's very first use in the script, i thought I might try stuff with the clipboard. you know, copying stuff to clipboard an comparing it with given strings to know which thing is shown currently. which is done by simple click and drag mouse, then...
by densch
09 Nov 2018, 05:02
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

I dont get the whole coordmode nonsense either way. What does autohotkey use per default? Cause i search the coordinates with windows spy (relative to the entire screen as it seems) but these dont seem to be the coordinates used by autohotkey. what does autohotkey use per default? what screen , wind...
by densch
08 Nov 2018, 11:10
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

Now I'm stuck again: code is by now: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_Scri...
by densch
08 Nov 2018, 03:42
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

what does the x " " y mean by the way?
by densch
08 Nov 2018, 03:38
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

Re: why arent my imagesearch coordinates saved globally?

cool,thanks! making it super global is what I wanted. A variable that lalways exists and can get changed from anywhere. Didnt expect a simple "Global" to fix that. why didnt it work without it? the loop was just there so I could retry the thing more than once. cause without it, after pressing j for ...
by densch
07 Nov 2018, 17:56
Forum: Ask For Help
Topic: why arent my imagesearch coordinates saved globally?
Replies: 14
Views: 1545

why arent my imagesearch coordinates saved globally?

Hello, I have the following code: x:=0 y:=0 Loop{ j:: SearchVernetzen() if (Errorlevel=0){ Click(x, y) } return } SearchVernetzen(){ CoordMode Pixel ImageSearch, ButtPosx, ButtPosy, 0, 200, 1900, 1000, vernetzenButton.png MsgBox Errorlevel.is.%Errorlevel% MsgBox %ButtPosx%, %ButtPosy% x:=ButtPosx y:...
by densch
21 Oct 2018, 16:23
Forum: Ask For Help
Topic: Encrypt a script with an expiring password?
Replies: 0
Views: 451

Encrypt a script with an expiring password?

The thing is: Let's say I created some nice script. in fact in my opinion it's so good that I could sell it (is this okay with AHK rules and stuff?) but I dont feel like seeling it once. I wanna sell it more or less on a subcription basis. so if you wanna use it, you pay for example a fixed fee per ...
by densch
05 Oct 2018, 04:50
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 958

Re: get the value of a certain html variable?

honestly, as long as it does it properly without any issues, I dont mind taking the sloppy way :-D I just need to get all the values that I need. Most can be gotten with vis2 ocr and the remaining one should be easy with mousemovedrag. just one thing left: how do I get the value from the clipboard i...
by densch
04 Oct 2018, 18:38
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 958

Re: get the value of a certain html variable?

ALso to mention: that part of the source code that is shown is inside some <script type="text/babel"> </script> section, inside the <body class="software"> ...</body> part. if that is of any help. even though come to think of it, one could actually make the script simply double click or something on...
by densch
04 Oct 2018, 18:27
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 958

get the value of a certain html variable?

i know that the title doesn't make much sense. But I have the following situation: on a website, there always is a specific number written in black on a white circle. it ain't an image but rather text, so I can actually mark it with the mouse and get it to the clipboard with ctrl+c. but that's not w...
by densch
04 Oct 2018, 14:26
Forum: Ask For Help
Topic: recognize text in image with image in known spot?
Replies: 3
Views: 706

Re: recognize text in image with image in known spot?

Hi, that idea seems to work okay for the most part. At least it recognizes text hta nI mark with the cursor for the mst part correctly. however one thing that doesn't work is the following: as shown in the image, the text inside the white circle just is not read at all! It just doesn't recognize it,...
by densch
04 Oct 2018, 06:58
Forum: Ask For Help
Topic: recognize text in image with image in known spot?
Replies: 3
Views: 706

recognize text in image with image in known spot?

Is there some way to properly recognize text, especially numbers? at that spot, there either is no text at all. or there is text and that text is a one or 2 digit number. while I say text, it is actually an image and clicking on it to select it makes it disappear immediately. is there, aside from im...
by densch
25 Jun 2018, 16:01
Forum: Ask For Help
Topic: AHK with 2 programs?
Replies: 3
Views: 852

Re: AHK with 2 programs?

Wow, thanks! I'll work through all that even though it might take a while :-) Hm, technically I could minimize the windows immediately via WinMinimize as soon as the intended stuff is done (which it should be able to do in an instant. Since I don't need any puffer time between actions. Doesn't matte...
by densch
25 Jun 2018, 14:31
Forum: Ask For Help
Topic: AHK with 2 programs?
Replies: 3
Views: 852

AHK with 2 programs?

Hi, my thing that i want to have is: At the start I'll manually open 2 different programs. I want AHK to do the following: sometimes, at unpredictable times a popup will show up in program A (which can't be traced by source code or stuff. Would need imagesearch or something to detect it. the psoitio...

Go to advanced search