Screen Pixel not working --- Help!

Discuss RoboTask here
Post Reply
misery
Posts: 12
Joined: Sat Aug 31, 2013 8:59 pm

Screen Pixel not working --- Help!

Post 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.
Attachments
Screen Pixel.jpg
Screen Pixel.jpg (23.85 KiB) Viewed 13046 times
misery
Posts: 12
Joined: Sat Aug 31, 2013 8:59 pm

Re: Screen Pixel not working --- Help!

Post by misery »

UPDATE:

I realized that when I remove the { } from the variable's name, the task executes properly. Which is odd.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Screen Pixel not working --- Help!

Post by Oleg »

Yes, you should use variable name only (without braces)
Oleg Yershov
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Screen Pixel not working --- Help!

Post 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
Oleg Yershov
Post Reply