Hack Forums
[.NET] Sending multiple screenshots to email [VB.NET] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Sending multiple screenshots to email [VB.NET] (/showthread.php?tid=5643803)



Sending multiple screenshots to email [VB.NET] - George Bin Laden - Jun 10, 2017

The problem is solved thank you very much :)


* - fxbghacker - Jun 10, 2017

(Jun 10, 2017 03:36 PM)Orka Wrote:  The mail attachment is a collection, you can call the add method multiple times.

I also confirm with Okra, here is the MSDN for reference.

msdn.microsoft.com/en-us/library/system.net.mail.attachment(v=vs.110).aspx


* - Rhez - Jun 10, 2017

Just loop the way how add attachment.


* - George Bin Laden - Jun 11, 2017

So do I create more picture boxes and add the same command in them?
The problem is they are all under the same timer (that sends the mail) that runs every 1 minute. Looping how I add the attachment would just give me more identical screenshots as they are all being executed under the same timer.
What should I do?


* - George Bin Laden - Jun 11, 2017

I managed to solve it, took a bit of time but got there in the end :D Thanks.


* - fxbghacker - Jun 11, 2017

I was going to suggest using system hooks instead of screenshots every x seconds. taking screenshots and pushing them through the network so fast will eventually be an issue (for several reasons).

check out the MSDN for hooks, msdn.microsoft.com/en-us/library/windows/desktop/ms632589(v=vs.85).aspx


* - n0$f3ratu$ - Jun 12, 2017

(Jun 11, 2017 04:03 AM)George Bin Laden Wrote:  I managed to solve it, took a bit of time but got there in the end :D Thanks.

You should say at least thank you and DON'T take credit for it.


* - George Bin Laden - Jun 13, 2017

(Jun 12, 2017 01:01 PM)n0$f3ratu$ Wrote:  You should say at least thank you and DON'T take credit for it.

Are you alright in the head or something? I clearly said thanks????