Smack API and Desktop Broadcast

Hello, again.

I’m trying to, using the SMACK API, allow the user to send a screen shot to a friend. This is a feature that’s available in SPARK. So far I’ve been unsuccessful in my feeble attempt.

Does anyone know where I can go (easy now) to find an example of this? Is it even possible using this library? Any help is MUCH appreciated!!

Hi Paradox927,

The screen shot capability in Spark uses a combination of smack’s file transfer api and Java’s Robot class. I would suggest you check out the source to Spark and look at the SparkTransferManager to see how everything is put together.

Good luck,

Thanks for the tip on the robot class!!

That’s exactly what I needed. I was able to capture the screen shot w. no problems. You rock! Have a good day.