Doh. I figured it out by trial, error, and sacrificing sandwitches to the brain-god.
For those who follow - this is how I did it (and if anyone has a better way of doing it, please tell!)
colourvalue = POINT(mousex(),mousey())
make memblock 1,4
write memblock dword 1,0,colourvalue
red = memblock byte (1,2)
green = memblock byte (1,1)
blue = memblock byte (1,0)
delete memblock 1
As you can see, I used the POINT command to get the DWORD colourvalue, and then had to make a memblock to put it in. The fact that it's 4 bytes long, and not three, scares me, but hey. Maybe it's for alpha.
Good luck everyone, and sorry I kind of worked it out so quickly after I posted. I'd just been very scared of memblocks and was convinced I wouldn't be able to manage to do it.
Hope it helps someone else, or I get shouted at for doing it the wrong way