0

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 :

^x::
PixelGetColor, BoutonSubscribe, 236, 182
msgbox %BoutonSubscribe%  
return

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 ?...

1 Answer 1

0

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 :

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .