| Author |
Message |
Topic: Simple maths fails in a script |
anil_robo
Replies: 9
Views: 177
|
Forum: Ask for Help Posted: Sat May 31, 2008 1:49 am Subject: Simple maths fails in a script |
Yay! It works! I learned something new Thanks!
;Search for the image in the window area
Imagesearch, xa, ya, 10,300, 990, 650, *100 cw.bmp
if errorlevel
Msgbox, Image not found in the windo ... |
Topic: Simple maths fails in a script |
anil_robo
Replies: 9
Views: 177
|
Forum: Ask for Help Posted: Sat May 31, 2008 1:31 am Subject: Simple maths fails in a script |
;Search for the image in the window area
Imagesearch, xa, ya, 10,300, 990, 650, *100 cw.bmp
if errorlevel
Msgbox, Image not found in the window.
else
{
xb = %xa%+100
yb = %ya%+200
;Once ... |
Topic: Simple maths fails in a script |
anil_robo
Replies: 9
Views: 177
|
Forum: Ask for Help Posted: Sat May 31, 2008 1:22 am Subject: Simple maths fails in a script |
Changed the variable names now, this doesn't seem to work either:
;Search for the image in the window area
Imagesearch, xa, ya, 10,300, 990, 650, *100 cw.bmp
if errorlevel
Msgbox, Image not fo ... |
Topic: Simple maths fails in a script |
anil_robo
Replies: 9
Views: 177
|
Forum: Ask for Help Posted: Sat May 31, 2008 1:13 am Subject: Simple maths fails in a script |
I'm very new to scripting and can't do even simple functions. Here is a glaring example of this:
;Search for the image in the window area
Imagesearch, x1, y1, 10,300, 990, 650, *100 cw.bmp
if err ... |
Topic: New to scripts, need help with a looping function in game |
anil_robo
Replies: 6
Views: 256
|
Forum: Ask for Help Posted: Fri May 16, 2008 5:13 am Subject: Question: Search two pixels of different colors at same time |
| Show us the relevant code that failed for you so we can see what may have gone wrong and if/how it can be fixed. Also, tell us what the script should have done on screen and what it actually did inst ... |
Topic: New to scripts, need help with a looping function in game |
anil_robo
Replies: 6
Views: 256
|
Forum: Ask for Help Posted: Wed May 14, 2008 6:25 am Subject: New to scripts, need help with a looping function in game |
Finally got it working! Here it is:
;Give some time for the game screen to come up
Sleep, 1000
Loop
{
;Start from point A
;If mining is successful, a yellow color is displayed on s ... |
Topic: New to scripts, need help with a looping function in game |
anil_robo
Replies: 6
Views: 256
|
Forum: Ask for Help Posted: Mon May 12, 2008 1:30 am Subject: New to scripts, need help with a looping function in game |
Thanks for the kind assistance, VxE.
I made the change, and the script now looks like this:
;Give some time for the game screen to come up
Sleep, 1000
;Start from point A
Loop
{
; ... |
Topic: New to scripts, need help with a looping function in game |
anil_robo
Replies: 6
Views: 256
|
Forum: Ask for Help Posted: Sun May 11, 2008 9:59 am Subject: New to scripts, need help with a looping function in game |
| Hi all, this is my first experiment with scripting, and I'm glad I could write a working script to automate a game! I started the script small, kept adding new functionality to my existing script, and ... |
| |