So i made a Script (for forza horizon 4), if someone have discord it would be much more easier for me
so i created the base of the script that is searching the car etc ...
but when he's done with the research, i wanted him, that if he find this texte on the screen, then he make the script for buying it, but if not he make escape and redo the base of the script again and again
but it's impossible for me to say to the script that if he found he do the next of the script, but if not he press esc and repeat !
I tried Repeat> and Until>
but still not working
My discord Seven#2762
Thanks for the help !
Need help for a script
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1352
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Need help for a script
Being familiar with Horizon 4, I'd say this is going to be quite a challenge. I think it's highly unlikely that the text will be accessible and you'd have to rely entirely on Image Recognition and maybe looking out for pixel colours.
And the trouble with Image Recognition I foresee is that whatever you're looking for is often going to be on a dynamic or changing background.
And the trouble with Image Recognition I foresee is that whatever you're looking for is often going to be on a dynamic or changing background.
Yes, we have a Custom Scripting Service. Message me or go here
Re: Need help for a script
the thing that i want him to find i a button (https://prnt.sc/nlmpbf) so that's not the real problems the real problems is that he doesn't want to repeat it, and he ignore the Until> so thats my real problems
Ps : my script https://pastebin.com/CXGzwn1H
Ps : my script https://pastebin.com/CXGzwn1H
Re: Need help for a script
The real problems is that the script ignore Repeat> and Until> that's the problems, and what i wan to do to the script is only detecting buttons, so the background is not very moving, and that's working because one of his first step is to put the cursor on the auction buttons so ...
Here is the "Button" https://prnt.sc/nlmpbf
and that's my script https://pastebin.com/CXGzwn1H
if you could help me about that
Here is the "Button" https://prnt.sc/nlmpbf
and that's my script https://pastebin.com/CXGzwn1H
if you could help me about that
- Dorian (MJT support)
- Automation Wizard
- Posts: 1352
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Need help for a script
You have the incorrect usage of Repeat/Until
You have this :
The best place to find out about the correct usage and see a sample is here : Repeat
You have this :
Code: Select all
Repeat>
//snipped
Until>FindImagePos>C:\Users\Seven\Desktop\bots\test
Yes, we have a Custom Scripting Service. Message me or go here
Re: Need help for a script
So if I say to the script that if he found the button for the car, he change the variable "car" To 1 and If i write "repeat>" "Until>car=1" It will be good no??!
Re: Need help for a script
And I didn't really understand for the variable ( how to create and modify) if you could help me about that