Search found 236 matches

by John1
12 Apr 2023, 05:43
Forum: Ask for Help (v1)
Topic: Suspend
Replies: 1
Views: 170

Suspend

Hello, J:: Variable_Status := 1 MouseMove,50,150 Click, left, down gosub GoSub_Sleep_17 click Suspend return 6:: if (Variable_Status = 1) { Suspend Text:="|<(CREATE) (GRÜN)>*126$37.S00060RU0030APrXnvo1XNAli0nwSNzXMUPAEvAPNaBj477lnc" if (ok := FindText(X,Y,0,0,0,0,0,0, Text)) { MouseMove,X,Y gosub G...
by John1
31 Oct 2022, 13:57
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

Descolada Thank you for your reply. I know i have "One" 2 times, "Two" 2 times "Three" 2 times on the screen. if (ok := FindText(X,Y,0,0,0,0,0.000001,0.000001, Text,,1,["One","Two","Three"])) { MouseMove, ok[1][1]+15, ok[1][2]+5, 0 gosub GoSub_Klick MouseMove, ok[2][1]+15, ok[2][2]+5, 0 gosub GoSub...
by John1
29 Oct 2022, 10:02
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

Descolada Hello, if (ok := FindText(X,Y,0,0,0,0,0.000001,0.000001, Text,,1,["One","Two","Three"])) { MouseMove, ok[1][1]+15, ok[1][2]+5, 0 gosub GoSub_Klick MouseMove, ok[2][1]+15, ok[2][2]+5, 0 gosub GoSub_Klick } It finds and clicks "One" 2 times, but for "Two" and "Three" it does nothing. How ca...
by John1
26 Oct 2022, 03:37
Forum: Off-topic Discussion
Topic: Keyboard 2 Windows keys
Replies: 5
Views: 5057

Re: Keyboard 2 Windows keys

@gregster Yes you got it right. No problem xd.
by John1
26 Oct 2022, 03:36
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

@Descolada Ok sure. Thank you a lot.
by John1
25 Oct 2022, 15:38
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

Descolada hello, sometimes i have images that are already there and sometimes images that will take like 0.1 second to appear. Can i just have always: FindText(X:="wait", Y:=1, 0,0,0,0,0,0,Text) ;________________________ instead sometimes FindText(X,Y, 0,0,0,0,0,0,Text) and sometimes FindText(X:="w...
by John1
25 Oct 2022, 10:46
Forum: Off-topic Discussion
Topic: Keyboard 2 Windows keys
Replies: 5
Views: 5057

Re: Keyboard 2 Windows keys

@gregster

Thank you for your reply.

It is a general question. If someone knows and works with a good keyboard with 2 windows keys like from dell, logitech or so.
The most keyboards i find online have only 1 windows key.
So the question is offtopic and not autohotkey related.

have a good day.
by John1
25 Oct 2022, 05:47
Forum: Off-topic Discussion
Topic: Keyboard 2 Windows keys
Replies: 5
Views: 5057

Keyboard 2 Windows keys

Hello,

currently typing on a keyboard with only a single windows key.
Someone using a keyboard with 2 windows keys? And could me post a good keyboard example with 2 windows keys?

Thank you!
have a good day.
by John1
17 Sep 2022, 12:03
Forum: Ask for Help (v1)
Topic: Best way to avoid Global declaration Plague from ruining the main script?
Replies: 7
Views: 1217

Re: Best way to avoid Global declaration Plague from ruining the main script?

When using for every single variable a good unique name than i am save with global variables? or is there more how global variables can ruin a huge script?
by John1
04 Sep 2022, 15:00
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

Ok. then:

Code: Select all

8::
Clipboard := "number 1 (number 55) (list 20)"
RegExMatch(Clipboard, "\(\w+\s\d+\)", M)
MsgBox, % M
return
by John1
04 Sep 2022, 14:23
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

Thank you a lot teacher!

Code: Select all

8::
Clipboard := "number 1 (number 55) (list 20)"
RegExMatch(Clipboard, "\(\w+\s\d+\)\s\(\w+\s\d+\)", M)
MsgBox, % M
return
by John1
04 Sep 2022, 12:51
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

boiler Ok. Number_A100([250,20], [480,35]) to 250,20 1. 1:: MsgBox, % RegExReplace(Clipboard, "^.*?\[") return ends in result 250,20], [480,35]) 2. 2:: MsgBox, % RegExReplace(Clipboard, "^.*?\K\].*") return What means "K", ends in result Number_A100([250,20 3. I want to do both at the same time: 3:...
by John1
04 Sep 2022, 08:45
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

@boiler

Thank you for your reply.

I watched videos from here:
https://www.youtube.com/watch?v=od6QYIrs2xk

And read at the moment the tutorial:
viewtopic.php?t=28031

I tried before myself before posting and it did not work after several attemps.

But Thank you.
by John1
04 Sep 2022, 07:35
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

boiler Thank you a lot! Works perfect. I have two more questions: 1. And how can trim this: Number_A100([250,20], [480,35]) to 250,20 2. How can i trim this to: always starting with that what is after "number 1"{space} and after that keep the next 12 letters/numbers/symbos, whatever will be the nex...
by John1
04 Sep 2022, 05:07
Forum: Ask for Help (v1)
Topic: Automatic add 1 to value in clipboard
Replies: 14
Views: 3756

Re: Automatic add 1 to value in clipboard

Exaskryz Hallo, Example 1: 125 Meeting room lamp 1 -> 125 Meeting room lamp 2 Example 2: 123 Kitchen lamp 14 -> 123 Kitchen lamp 15 Example 3: 8 -> 9 How can i do add +1 to only the latest number but with text or signs after the latest number. For example like: (I want to keep all the text and sign...
by John1
21 Aug 2022, 13:39
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

@Descolada
Thanks a lot master!
by John1
21 Aug 2022, 03:53
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

@Descolada Thank you for your reply! Version 1: works fine if (ok := FindText(X,Y,0,0,0,0,0.000001,0.000001, Text,,0,["WORD 1 WORD 2"])) { MouseMove, X, Y, 0 } Version 2: works not. did i wrote it correct? if (ok := FindText(X,Y,0,0,0,0,0.000001,0.000001, Text,,0,,,,20,10,["WORD 1 WORD 2"])) { Mouse...
by John1
20 Aug 2022, 13:09
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

Descolada Hello, i have another question. At 8) FindText combination lookup. it says where "key" can be a maximum of 20 pixels away from "auto" in the x-axis and 10 pixels away My question is: is it possible to change the maximum of pixels in x-axis it can be away for example something to 1-5 pixel...
by John1
15 Aug 2022, 08:57
Forum: Scripts and Functions (v1)
Topic: ScrCmp() : Detects changes in screen by comparing two screenshots
Replies: 23
Views: 12331

Re: ScrCmp() : Detects changes in screen by comparing two screenshots

SKAN Hello. Thank you for your awesome function. I want to do one click. And when the screen changed where the mouse clicked/a programm reacted on a click. I want to stop it. So far i have this code. It stopps not after one click, it stopps after 5-8 clicks. How can i make it only send one click an...
by John1
11 Aug 2022, 03:03
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 68716

Re: FindText tutorial

@Descolada Thank you a lot for your reply!

Go to advanced search