I would be running that off my comp itself. I would be triggering this from a software that I use which supports calling Javascripts.
yup thats the security measure.I don't get your idea even now, what language are you writing your software in? Doesnt it have image libraries?
JS can't help with images, forget it. Nor does it allow calling other executables, so using it as a link is not possible as well.
Yaar, is it always required to use this language with all things MS, whether good or badu may consider M$ .Nert
I haven't written any softy. But a few of the softwares I use allow calling a javascript.QwertyManiac said:I don't get your idea even now, what language are you writing your software in? Doesnt it have image libraries?
Good that I asked first rather than jus googling for the impossible.QwertyManiac said:JS can't help with images, forget it. Nor does it allow calling other executables, so using it as a link is not possible as well.
image=read_the_image(d:\casanova.jpg)
colours_found=0
width=get_image_width(image)
height=get_image_height(image)
for (i=0;i<width;i++)
{
for (j=0;j<height;j++)
{
new_colour_found=1 //treat as is this is a new colour
pixel_colour=get_colour_at(i,j)
for (k=0;k<colours_found;k++)
{
if (colour[k][0]=pixel_colour)
{
colour[k][1]=colour[k][1]+1
new_colour_found=0 //this colour is not new
break
}
}
if (new_colour_found=1)
{
colours_found=colours_found+1
colour[colours_found][0]=pixel_colour
colour[colours_found][1]=1
}
}
}
max[0][1]=0
//finding the most frequent colour
for (k=0;k<colours_found;k++)
{
if (colour[k][1]>max[0][1])
{
max[0][0]=colour[k][0]
max[0][1]=colour[k][1]
}
}
set_desktop_background_colour(max[0][0])