Author |
Message |
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
It will only display images of type *.png
The "Load" function in the Investigator is only intended to be used for images created by the Investigator, meaning the format would correctly be in png and be visible when browsing for the image.
It will only display images of type *.png
The "Load" function in the Investigator is only intended to be used for images created by the Investigator, meaning the format would correctly be in png and be visible when browsing for the image.
|
|
|
|
Posted: Mon Jun 27, 2011 10:17 am |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Worked, Ty
I have one suggestion:
When you select Investigator and select Load Image from HDD, the filetype said: Image, but you cant see no images in the folder, I had to manually enter the file's name.
Worked, Ty
I have one suggestion:
When you select Investigator and select Load Image from HDD, the filetype said: Image, but you cant see no images in the folder, I had to manually enter the file's name.
|
|
|
|
Posted: Mon Jun 27, 2011 9:59 am |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Remove { and } in "Mouse.Save coordinate to variable("{ballX}", "{ballY}")"
{ and } is only used when reading the value of a variable, not when specifying the name of a variable.
Remove { and } in "Mouse.Save coordinate to variable("{ballX}", "{ballY}")"
{ and } is only used when reading the value of a variable, not when specifying the name of a variable.
|
|
|
|
Posted: Mon Jun 27, 2011 9:29 am |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Hi, so I try to use this macro, with the changes some ppls said: Code: begin Mouse.Save coordinate to variable("{ballX}", "{ballY}") Variable.Evaluate (Math)("({ballY}-{basketY})/({ballX}-{basketX})", "R1") Variable.Evaluate (Math)("(2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF}))", "M") Variable.Evaluate (Math)("{M}-{basketX}", "p1") Variable.To power of (Math)("p1", "2") Variable.Evaluate (Math)("{ballX}-{M}", "p2") Variable.To power of (Math)("p2", "2") Variable.Evaluate (Math)("({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2})", "B") Mouse.Click at coordinate("{M}", "{B}", "Left") end I get an error: A variable called M, does not exist The first error is A variable called ballX, does not exist But ballX and ballY should be from mouse coord. here is the log: Code: Executing: Mouse.Save coordinate to variable(Variable for X: {ballX}, Variable for Y: {ballY}) Error: A variable called ballX, does not exist Executing: Variable.Evaluate (Math)(Expression: ({ballY}-{basketY})/({ballX}-{basketX}), To variable: R1) Error: The following expression could not be evaluated: ({ballY}-{basketY})/({ballX}-{basketX}) (parsed as: ({ballY}-{basketY})/({ballX}-{basketX})) Executing: Variable.Evaluate (Math)(Expression: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF})), To variable: M) Error: The following expression could not be evaluated: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF})) (parsed as: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF}))) Executing: Variable.Evaluate (Math)(Expression: {M}-{basketX}, To variable: p1) Error: The following expression could not be evaluated: {M}-{basketX} (parsed as: {M}-{basketX}) Executing: Variable.To power of (Math)(Variable name: p1, By: 2) Error: A variable called p1, does not exist Executing: Variable.Evaluate (Math)(Expression: {ballX}-{M}, To variable: p2) Error: The following expression could not be evaluated: {ballX}-{M} (parsed as: {ballX}-{M}) Executing: Variable.To power of (Math)(Variable name: p2, By: 2) Error: A variable called p2, does not exist Executing: Variable.Evaluate (Math)(Expression: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2}), To variable: B) Error: The following expression could not be evaluated: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2}) (parsed as: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2})) Executing: Mouse.Click at coordinate(X Coordinate: {M}, Y Coordinate: {B}, Mouse Button: Left) Error: A variable called M, does not exist
Hi, so I try to use this macro, with the changes some ppls said: [code] begin Mouse.Save coordinate to variable("{ballX}", "{ballY}") Variable.Evaluate (Math)("({ballY}-{basketY})/({ballX}-{basketX})", "R1") Variable.Evaluate (Math)("(2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF}))", "M") Variable.Evaluate (Math)("{M}-{basketX}", "p1") Variable.To power of (Math)("p1", "2") Variable.Evaluate (Math)("{ballX}-{M}", "p2") Variable.To power of (Math)("p2", "2") Variable.Evaluate (Math)("({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2})", "B") Mouse.Click at coordinate("{M}", "{B}", "Left") end[/code]
I get an error: A variable called M, does not exist The first error is A variable called ballX, does not exist But ballX and ballY should be from mouse coord.
here is the log: [code]Executing: Mouse.Save coordinate to variable(Variable for X: {ballX}, Variable for Y: {ballY}) Error: A variable called ballX, does not exist Executing: Variable.Evaluate (Math)(Expression: ({ballY}-{basketY})/({ballX}-{basketX}), To variable: R1) Error: The following expression could not be evaluated: ({ballY}-{basketY})/({ballX}-{basketX}) (parsed as: ({ballY}-{basketY})/({ballX}-{basketX})) Executing: Variable.Evaluate (Math)(Expression: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF})), To variable: M) Error: The following expression could not be evaluated: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF})) (parsed as: (2*{R1}*{basketX}+{tanF}*({basketX}+{ballX}))/(2*({R1}+{tanF}))) Executing: Variable.Evaluate (Math)(Expression: {M}-{basketX}, To variable: p1) Error: The following expression could not be evaluated: {M}-{basketX} (parsed as: {M}-{basketX}) Executing: Variable.To power of (Math)(Variable name: p1, By: 2) Error: A variable called p1, does not exist Executing: Variable.Evaluate (Math)(Expression: {ballX}-{M}, To variable: p2) Error: The following expression could not be evaluated: {ballX}-{M} (parsed as: {ballX}-{M}) Executing: Variable.To power of (Math)(Variable name: p2, By: 2) Error: A variable called p2, does not exist Executing: Variable.Evaluate (Math)(Expression: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2}), To variable: B) Error: The following expression could not be evaluated: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2}) (parsed as: ({p1}*{ballY}-{p2}*{basketY})/({p1}-{p2})) Executing: Mouse.Click at coordinate(X Coordinate: {M}, Y Coordinate: {B}, Mouse Button: Left) Error: A variable called M, does not exist[/code]
|
|
|
|
Posted: Mon Jun 27, 2011 9:27 am |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Gigus wrote: Please create a forum account, then you will not have to enter the confirmation code (CAPTCHA) I have no choice but to leave it as difficult as it is right now, otherwise the forum is flooded by bots in a couple of hours.
According to the log, the ball is not recognized, try to create a new image of the ball, and make sure not to catch any of the background, get as much of the ball as possible in the image, but without getting any of the background color. Thank you for the info, but my trial expired and now i can't test anymore.
[quote="Gigus"]Please create a forum account, then you will not have to enter the confirmation code (CAPTCHA) I have no choice but to leave it as difficult as it is right now, otherwise the forum is flooded by bots in a couple of hours.
According to the log, the ball is not recognized, try to create a new image of the ball, and make sure not to catch any of the background, get as much of the ball as possible in the image, but without getting any of the background color.[/quote] Thank you for the info, but my trial expired and now i can't test anymore.
|
|
|
|
Posted: Tue Jun 07, 2011 1:43 pm |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Please create a forum account, then you will not have to enter the confirmation code (CAPTCHA) I have no choice but to leave it as difficult as it is right now, otherwise the forum is flooded by bots in a couple of hours.
According to the log, the ball is not recognized, try to create a new image of the ball, and make sure not to catch any of the background, get as much of the ball as possible in the image, but without getting any of the background color.
Please create a forum account, then you will not have to enter the confirmation code (CAPTCHA) I have no choice but to leave it as difficult as it is right now, otherwise the forum is flooded by bots in a couple of hours.
According to the log, the ball is not recognized, try to create a new image of the ball, and make sure not to catch any of the background, get as much of the ball as possible in the image, but without getting any of the background color.
|
|
|
|
Posted: Tue Jun 07, 2011 1:41 pm |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Now, when i click ctrl to start the bot, it says "A variable called B, does not exist"
Now, when i click ctrl to start the bot, it says "A variable called B, does not exist"
|
|
|
|
Posted: Tue Jun 07, 2011 1:21 pm |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
In the BE settings window, try to disable DirectX capturing in Settings --> Screen --> Deactivate the direct capturing and press Save.
Then try to capture a new screen dump with the Investigator and see if it makes a difference.
In the BE settings window, try to disable DirectX capturing in Settings --> Screen --> Deactivate the direct capturing and press Save.
Then try to capture a new screen dump with the Investigator and see if it makes a difference.
|
|
|
|
Posted: Mon Jun 06, 2011 2:13 pm |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
jacy4 wrote: Hello, i have a problem with the new bot. How can i use it? There is no info how... I set it up and nothing. I was trying with triggers and still nothing :/ can someone help me? I think i know why this is happening. When i was using the investigator to find the ball, when i hit printscreen then only some strange garbage appears. I don't know if this makes the script not working. Some expert may help me
[quote="jacy4"]Hello, i have a problem with the new bot. How can i use it? There is no info how... :? I set it up and nothing. I was trying with triggers and still nothing :/ can someone help me?[/quote] I think i know why this is happening. When i was using the investigator to find the ball, when i hit printscreen then only some strange garbage appears. I don't know if this makes the script not working. Some expert may help me :?:
|
|
|
|
Posted: Mon Jun 06, 2011 1:26 pm |
|
|
|
|
|
Post subject: |
Re: Basket Ball Bot v2 |
|
|
Hello, i have a problem with the new bot. How can i use it? There is no info how... I set it up and nothing. I was trying with triggers and still nothing :/ can someone help me?
Hello, i have a problem with the new bot. How can i use it? There is no info how... :? I set it up and nothing. I was trying with triggers and still nothing :/ can someone help me?
|
|
|
|
Posted: Sun Jun 05, 2011 5:29 pm |
|
|
|
|