this bitmap setting- it doesn't seem to work:
i added "set bitmap format 22" in my program, but now when i am at "XP", program doesn't work. Could this be connected with hardware, but not with bitmap settings?
If these settings are the same with Gandalf's new XP and Vista, but old XP different so it looks like it's not dependant on OS but on machine itself
My old pc is 6 years old. In these 6 years some pc making technology may have changed.
I am confused what to do... There are now lots of numbers in my program which mean colors, changing all them every week or 2 isn't fun programing experience at all
I tried to make an array of colors but it returns error. even setting array type as dword didn't help. here is a fragment of my code. I make few functions which select buttons depending on pixel colors:
Paste image InGameMenuImageNumber,0,0,1
set current bitmap InGameMenuBitmapNumber
ColNum = Point(Mx,My)
Set Current Bitmap 0
Select ColNum
Case 0
`left mouse click: select object
if Mc= 1 then activeID= SelectObjects()
EndCase
Case 657930
paste image InGameButton1ActiveImageNumber,230,605
if Mc=1
wait ButtonWait
endif
EndCase
If i put array (lets say color(10) which means rgb(10,10,10)) it returns error on line "Case color(10)"
Making variables for many colors isn't attractive too, but is there any other way?
Thanks in advance
Join The dark Side! We have cookies