Page 1 of 1

Screen Pixel not working --- Help!

Posted: Tue Apr 08, 2014 5:08 pm
by misery
I am using the Screen Pixel option available in RoboTask 6.0, however it doesn't save the hecadecimal code into my variable. I created a variable called {SCREEN_COLOUR1}, and selected the coordinates I want to capture, but when I use the "Send text" function to write out my variable contents, it simply outputs the default value of 0, and not the hexadecimal code.

I have attached a screenshot of my Screen Pixel window. Please help.

Re: Screen Pixel not working --- Help!

Posted: Tue Apr 08, 2014 7:54 pm
by misery
UPDATE:

I realized that when I remove the { } from the variable's name, the task executes properly. Which is odd.

Re: Screen Pixel not working --- Help!

Posted: Tue Apr 08, 2014 9:21 pm
by Oleg
Yes, you should use variable name only (without braces)

Re: Screen Pixel not working --- Help!

Posted: Tue Apr 08, 2014 9:25 pm
by Oleg
You should use braces "{}" when you need to put variable value into the string.
Braces tells to RoboTask that it's necessary to replace this substring with value of variable.

This rule works in all actions