the two modes have reached the ultrafast speed !

Paste the below code into your script up till ";================= The End =================guest3456 wrote:where/how did you create the MCode?
Although I don't like to use the MCode,guest3456 wrote:where/how did you create the MCode?
it already does that. perhaps you should read the docs for AHK's if command:Mkonopko wrote:As long as you are entertaining wishes... how about if found this will allow the trigger of an action like an "if found do this else do that" command.
OK, Your idea has been realized. This is a good suggestion, and at the present time,oldbrother wrote:Can a user set a maximum Fault-Tolerant rate? For example, 5% max error. It will be used automatically in case of nothing is found on the screen.
Ok so using this routine I have successfully found the word "hello" Assuming I have a program called abc.exe I would I get this to run?guest3456 wrote:it already does that. perhaps you should read the docs for AHK's if command:Mkonopko wrote:As long as you are entertaining wishes... how about if found this will allow the trigger of an action like an "if found do this else do that" command.
https://autohotkey.com/docs/commands/IfExpression.htm
i'm not sure if you're serious or not. this has absolutely nothing to do with this FindText script. this is basic programming for any languageMkonopko wrote:Ok so using this routine I have successfully found the word "hello" Assuming I have a program called abc.exe I would I get this to run?guest3456 wrote:it already does that. perhaps you should read the docs for AHK's if command:Mkonopko wrote:As long as you are entertaining wishes... how about if found this will allow the trigger of an action like an "if found do this else do that" command.
https://autohotkey.com/docs/commands/IfExpression.htm
I can see how to do this in AHK. I cant see a way to have finding "my search word" cause a program to run.
Code: Select all
if FindText(79,134,Text,"*147",150,150,X,Y)
{
CoordMode, Mouse
MouseMove, X, Y
}
Code: Select all
if FindText(79,134,Text,"*147",150,150,X,Y)
{
Run, abc.exe
}
guest3456 wrote:i'm not sure if you're serious or not. this has absolutely nothing to do with this FindText script. this is basic programming for any languageMkonopko wrote:Ok so using this routine I have successfully found the word "hello" Assuming I have a program called abc.exe I would I get this to run?guest3456 wrote:it already does that. perhaps you should read the docs for AHK's if command:Mkonopko wrote:As long as you are entertaining wishes... how about if found this will allow the trigger of an action like an "if found do this else do that" command.
https://autohotkey.com/docs/commands/IfExpression.htm
I can see how to do this in AHK. I cant see a way to have finding "my search word" cause a program to run.
Obviously not a programmer at all, but now that I see what you've down it makes perfect sense. Thank you.
change this:
to this:Code: Select all
if FindText(79,134,Text,"*147",150,150,X,Y) { CoordMode, Mouse MouseMove, X, Y }
Code: Select all
if FindText(79,134,Text,"*147",150,150,X,Y) { Run, abc.exe }
; The capture range can be changed by adjusting the numbersjigga wrote:This is super cool! Am I missing something, or is there no way to make the capture area bigger?
Return to “Scripts and Functions”
Users browsing this forum: No registered users and 14 guests