I made a script on my computer and inside of it I uses the GetPixelColor function. After I made sure the script was working well, I transported the script to my VM and realized that the colors differ...

For example, on my pc I go to a website and do the follow code :

PixelGetColor, BoutonSubscribe, 236, 182
msgbox %BoutonSubscribe%  

It returns me : 0xFF08FE

I do the SAME thing on the same website on my VM and it returns me : 0xFE08FD

Is it possible that the VM doesn't have the same colors ?...

The colors are slightly different, likely because you are not using the same display adapter nor the same display driver.

The display adapter in VirtualBox is only a simulation of an adapter that is extremely common and so is supported by almost all operating systems (which is why it was chosen by VirtualBox).

Your display adapter on the host is surely much more modern, with better color support and a much more sophisticated driver.

Because of such problems, VirtualBox has been working on GPU pass-through support, which, as the name suggests, make available the host display adapter to the guest. Unfortunately, that feature is still very limited.

For more information see :

  • Thanks a lot for you answer, I'll take a look ! :D – Mik Lavoie Oct 14 at 16:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.