Search found 95 matches

by reluct
04 Oct 2020, 01:11
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

@rommmcek
Sry but it's not work if need change X;Y

Code: Select all

Click, % X+10 "," % Y-30
by reluct
04 Oct 2020, 00:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

rommmcek q:: ; #Include <FindText> Loop { t1:=A_TickCount, X:=Y:="" Text:="|<>[email protected].00$1.k" if (ok:=FindText(714-150000, 375-150000, 714+150000, 375+150000, 0, 0, Text)) { X:=ok.1.x, Y:=ok.1.y, Comment:=ok.1.id Click, %X%, %Y% sleep 500 Send {Enter} Sleep 500 Send {Right} Sleep 500 Send {Backs...
by reluct
04 Oct 2020, 00:12
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

Hi, I use this code, but now i need change clicking coordinates, so it must click not on center of finding image. What i need add to code? X:=ok.1.x, Y:=ok.1.y, Comment:=ok.1.id Click, %X%, %Y% I see this commands: offsetX, offsetY --> Set the Max text offset for combination lookup ; ruturn --> the ...
by reluct
22 May 2020, 02:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

@boiler
Thx, I just could not recognize what it is X:=ok.1.x, Y:=ok.1.y
by reluct
21 May 2020, 18:24
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

The script above does not use FindText. If you just want to know how to make the above work, one problem is that you found the image at coordinates X, Y, but then you click on ImageX, ImageY. Change ImageX and ImageY to X and Y. If that's all you're looking to do, you should post in a new thread in...
by reluct
21 May 2020, 17:23
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 579
Views: 214298

Re: FindText - Capture screen image into text and then find it Topic is solved

Hi. After the script found the text, how to click on it?
Something like this:

Code: Select all

{
ImageSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, otter.png
If (!ErrorLevel)
{
MouseClick, Left, %ImageX%, %ImageY% ; Clicks the UPPER RIGHT corner of the found image
			Send z
}
by reluct
01 Nov 2019, 11:58
Forum: Ask For Help
Topic: PixelGetColor stopped work totally
Replies: 2
Views: 460

Re: PixelGetColor stopped work totally

swagfag wrote:
01 Nov 2019, 11:52
PixelGetColor, color, 68, 184, RGB
:headwall: :headwall: :headwall:
by reluct
01 Nov 2019, 11:45
Forum: Ask For Help
Topic: PixelGetColor stopped work totally
Replies: 2
Views: 460

PixelGetColor stopped work totally

Code: Select all

CoordMode, Pixel
q:: 
PixelGetColor, color, 68, 184 RGB
If color = 0x0000FF
	MsgBox ok
return
I have already used all the options but it does not find anything even on a completely blue screen. :crazy:
by reluct
01 Nov 2019, 11:39
Forum: Ask For Help
Topic: Some script questions
Replies: 3
Views: 753

Re: Some script questions

rommmcek wrote:
30 Oct 2019, 13:12
@2. Definitely wrong syntax. Generally wrong syntax might work sometimes.
Sorry did not see the message
What will the correct syntax look like?
by reluct
31 Oct 2019, 05:26
Forum: Ask For Help
Topic: Caret
Replies: 1
Views: 429

Caret

need a way to quickly move the carriage to the end of the line :?
by reluct
29 Oct 2019, 16:05
Forum: Ask For Help
Topic: Some script questions
Replies: 3
Views: 753

Some script questions

$1:: PixelGetColor, color, 56, 284, RGB If color = 0x008000 { WinRestore, ahk_exe AkelPad.exe IfWinNotActive ahk_class QWidget { WinActivate, ^.*Engvidshortcut.*$ } Send 1 ControlClick, x60 y150, ahk_class QWidget,, Left, 1, NA 1. Why does WinActivate, ^.*Engvidshortcut.*$ work even though there is...
by reluct
29 Oct 2019, 08:22
Forum: Ask For Help
Topic: ~key
Replies: 6
Views: 584

Re: ~key

It seems to work, sorry :D. Thank you!
by reluct
29 Oct 2019, 07:56
Forum: Ask For Help
Topic: ~key
Replies: 6
Views: 584

Re: ~key

It sends 1 in notepad, but does not send 1 in this program.
by reluct
29 Oct 2019, 07:36
Forum: Ask For Help
Topic: ~key
Replies: 6
Views: 584

Re: ~key

Then how to force 1 sends 1 or if the condition correctly runs the script?
I cant use IfWinActive, this command works weird in this application.
by reluct
29 Oct 2019, 07:14
Forum: Ask For Help
Topic: ~key
Replies: 6
Views: 584

~key

Why this script sends a command twice if IF is true?

Code: Select all

Code: Select all

~1:: ; Backspace
PixelGetColor, color, 56, 284, RGB
If color = 0xFFFFFF
{
  send 2
}
Return
It send 12, if colour found.
by reluct
29 Oct 2019, 07:12
Forum: Ask For Help
Topic: If else if
Replies: 14
Views: 1225

Re: ~key

del
by reluct
29 Oct 2019, 06:49
Forum: Ask For Help
Topic: Mouse Buttons Topic is solved
Replies: 3
Views: 450

Re: Mouse Buttons Topic is solved

https://www.autohotkey.com/docs/commands/Click.htm
!9:: ;;;;;;;;;;;;;;;;;;;; Right Mouse Button ;;;;;;;;;;;;;;;
Click, right
return
by reluct
29 Oct 2019, 06:27
Forum: Ask For Help
Topic: If else if
Replies: 14
Views: 1225

Re: If else if

Xtra,
Can I ask one more question, why this script sends a command twice if IF is true?

Code: Select all

~1:: ; Backspace
PixelGetColor, color, 56, 284, RGB
If color = 0xFFFFFF
{
  send 2
}
Return
It send 12, if colour found.
by reluct
29 Oct 2019, 06:21
Forum: Ask For Help
Topic: If else if
Replies: 14
Views: 1225

Re: If else if

Xtra wrote:
29 Oct 2019, 06:12
When in Scite4AutoHotkey hold Ctrl and use mousewheel to resize text.
HTH
Thx :bravo:

Go to advanced search