my code :
ScreenShotStream is a memory stream
currentdirectory is a string;
i send it to me from them load it into the Timage and then i can see what i am doing on their pc. ie where i have moved their mouse to etc
this is all cool its just to show you guys what ive dun up until now this all works and i can open the pictures outside of the program.Code:inc(ScreenShotNumber);// needed this as screenshots come faster than 1 per second currentdirectory := GetCurrentDir+'\ScreenShots\'+Shot_name+'\'+DatetoStr(Date())+' '+TimetoStr(Time())+' '+IntToStr(ScreenShotNumber)+'.jpg'; ScreenShotStream.SaveToFile(currentdirectory); ScreenShotStream.Free;
then i do this
and i get the most infuriating errorCode:Form2.Image1.Picture.LoadfromFile(ExtractFileName(currentdirectory));
something like '.' is an invalid file extension.
WHAT THE DEVIL
oh btw ive got my date separator as -
and my time separator as .
to solve the filename problems :/
ive changed the time separator to other symbols too and it still fails :/
any ideas
i eagerly await your response


LinkBack URL
About LinkBacks
Reply With Quote