|
As a parent, sometimes you have to watch your kids. You have 2 ways to do this; either limit their actions entirely or snoop in on them. I have the need to do the latter. As somewhat of a beginner / intermediate developer, I want to create some sort of application to monitor, log and report my children's activities on their respective PCs.
After reading the board for a good week now (both VB.NET and C#) I know that this type of post isn't welcomed at all, and I will probably get scolded for branching on the topic due to it's controversy with flirting on the distinct line of privacy invasion but here it goes;
I want to create a "key logger" of sorts, to monitor what people do, who they chat with and what they are chatting about. After reading a bunch, trapping the print screen seems like a nice start, but I am afraid that if done frequently, will I be eating to much resources, slowing down the machine, eating to much network traffic and allocating to much disk space where my child will know what is going on? I am not concerned about AV because my child, albeit knowledgeable of computers to a degree, doesn't have an AV.
So I guess, where would I start looking to trap all keys pressed in whichever application, or at least solely MSN chat windows and internet explorer. I am not after login and passwords here, just trying to make sure my family stays 'kosher'.
So before you distrust the post, understand I wouldn't resort to this unless I had to.
Thanks in advance for the reading.
modified on Tuesday, October 14, 2008 9:50 AM
|
|
|
|
|
If I had children of the sort of age that I would worry what they were up to on their PCs, there is no way I would allow them to surf the internet unsupervised.
The internet is a crazy place with all sections of humanity in attendance, why would you let your child roam free there?
|
|
|
|
|
My child is old enough where I shouldn't have to worry. But he forces me in a position where I worry constantly. I'm not talking about a tween. I'm not even talking about a teen.
|
|
|
|
|
EliottA wrote: I'm not talking about a tween. I'm not even talking about a teen
What are you talking about then. Someone >= 20?! If so, you need to let go. Someone over 20 is old enough to make their own decisions. If they want to browse dubious portions of the internet that is up to them.
If you are genuinely concerned and unhappy with them doing it, sit them down and have a frank conversation. Explain that you understand that it is their decision, and that you can't stop them, but explain also that you are unhappy with things of that nature going on in your house. Ask, that out of respect for you, they don't browse these particular kinds of sites in your home.
That is the most you can do.
Simon
|
|
|
|
|
sit your kid down and talk with them, or just supervise them online, well atleast thats what parenting involved back in my day.
|
|
|
|
|
Sean Mulkerrin wrote: sit your kid down and talk with them, or just supervise them online, well atleast thats what parenting involved back in my day.
Been there, done that, about 10 years ago.
|
|
|
|
|
Then just go out and buy $@#()*@$% BigBrotherWare and be done with it. Just saying "I;m on the side of angels isn't going to cut it for actually being told how to do anything like this"
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
elie aintabi wrote: about to get trolled but
Unless you are a newsgroup, you can't get trolled. You probably mean flamed.
What possible use would you have of a key logger? You will pr0b4bly n07 und3r574nd w4t ur |<1dz r 74|_|<1n b0u7 4nyw4y...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have three sons, two of whom are in High School, so I feel your pain: the Internet is not only an attractive nuisance, but probably the world's biggest dirty book. After several incidents of "inappropriate usage", I finally found IPCop and installed it on an old PC. It was easy to install and configure, and allows me to review all Internet traffic or block sites as needed; with a little more work, I figured out how to have IPCop send me e-mail notifications when certain "dirty words" were detected. I would recommend it as a possible solution to your dilemma.
Cheers!
Humble Programmer
,,,^..^,,,
|
|
|
|
|
Amazing I'm going to take a peek into that right now. It's not so much the sites he visits as much as the conversations he has. But the second you said e-mail notification that is a feature I would have definitely liked.
Thanks very much.
|
|
|
|
|
I have an xml file which I would like to read and pull out it's contents as follows:
xml sample:
<persons>
<person></person>
<person>
<value>x</value>
<value>y</value>
<value>z</value>
</person>
<person>
<value>w</value>
<value>u</value>
</person>
...
...
...
</persons>
So as I read through the above xml, I would like to go through them one record at a time so I would like to see:
record No xml
1 <person></person>
2 <person>
<value>x</value>
<value>y</value>
<value>z</value>
</person>
3 <person>
<value>w</value>
<value>u</value>
</person>
How can I code this please?
Thanks
|
|
|
|
|
|
Try the code below:
string xmlFilePath = @"C:\Persons.xml";
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load(xmlFilePath);
System.Xml.XmlNode pNode = doc.SelectSingleNode("persons");
for (int i = 0; i < pNode.ChildNodes.Count; i++)
{
System.Xml.XmlNode personNode = pNode.ChildNodes[i];
for (int x = 0; x < personNode.ChildNodes.Count; x++)
{
string value = personNode.ChildNodes[x].InnerText;
}
}
Hope this helps.
|
|
|
|
|
Thank you
modified on Tuesday, October 14, 2008 10:20 AM
|
|
|
|
|
Look at the member methods of XmlDocument, read the documentation.
|
|
|
|
|
|
Hi ,
I am developing an application in C# to control remote systems in local network.I need to capture the screen of a remote machine,is that possible??
Please help...
|
|
|
|
|
Yes, you can , arround 4 years ago i have done a same application on VB.Net. What we have done, just trap the Printscreen button using interupt and save the image on disk and read the image as networkstream and display it you applicaiton picture box by saving the receiving stream as image.
Hope this will helps you to startup
cheers,
Abhijit
|
|
|
|
|
http://www.codeproject.com/KB/IP/ScreenCast_With_Control.aspx
Probably seen it already or even solved it by now.
|
|
|
|
|
I am developing software in C#. I generate reports in datagridview and also generate report directly in printdocument control.
My problem is, when I want to print only some pages, i.e. page from 2 to 3, i am not able to print the same, i give code as under
In print click event
printDialog1.AllowSomePages = true;
printDialog1.ShowDialog();
printDocument1.PrinterSettings.PrintRange = printDialog1.PrinterSettings.PrintRange;
printDocument1.PrinterSettings.FromPage = printDialog1.PrinterSettings.FromPage;
printDocument1.PrinterSettings.ToPage = printDialog1.PrinterSettings.ToPage;
printDocument1.Print();
If there are 6 pages in the report all the 6 pages are printed not page from 2 to 3. Why? Can anyone face this problem. Is there any solutions?
Suleh.
|
|
|
|
|
Hi All,
I'm still new to development, I'm trying to link a text box to an ID in a table. This text box will be an identfier and it will insert the text to the table when it has linked to the id.
Is this possible or should i look into something else.
Regards,
Ndeza
|
|
|
|
|
Hi Ndeza,
sure, this is possible (You could write a whole rocket steering application in C# if you like, am I right?) .
But please be sure to post more information about the issue. What kind of table, what kind of Id? What do you want to achieve exactly.
Regards
Sebastian
|
|
|
|
|
Hi Sebastian,
I've got a Foreign Exchange app that I'm trying to create, and the table is stored in the database. This table has an ID where it links to the different currencies. Now what I want to do is I want to link the text boxes of all the different currencies to the currencies in the table. I haven't done much with this but I've created a stored proc that updates, and inserts.
cmd.Parameters.Add("@PlayerTypeID", SqlDbType.Int, 20);
cmd.Parameters["@PlayerTypeID"].Value = txt0.Text; -- this is what I’ve been trying and it’s not working out.
cmd.Parameters.Add("@DateYear", SqlDbType.Int, 40);
cmd.Parameters["@DateYear"].Value = cbmYear.SelectedItem;
cmd.Parameters.Add("@DateMonth", SqlDbType.Int, 4);
cmd.Parameters["@DateMonth"].Value = cmbMonth.SelectedItem;
cmd.Parameters.Add("@FXR", SqlDbType.Float);
cmd.Parameters["@FXR"].Value = txt0.Text;
cmd.Parameters["@FXR"].Value = txt3.Text;
cmd.Parameters["@FXR"].Value = txt5.Text;
cmd.Parameters["@FXR"].Value = txt6.Text;
cmd.Parameters["@FXR"].Value = txt9.Text;
cmd.Parameters["@FXR"].Value = txt55.Text;
cmd.Parameters["@FXR"].Value = txt61.Text;
cmd.Parameters["@FXR"].Value = txt76.Text;
cmd.Parameters["@FXR"].Value = txt77.Text;
cmd.Parameters["@FXR"].Value = txt81.Text;
But now my problem is that I just cant get the PlayerTypeID being the ID link to the text box. Please can you assist with an example of some kind.
Thank you,
Ndeza
|
|
|
|
|
Hmm...
still not sure if I understand everything. All you do here is to put the text of the txt0-Textbox into the PlayerTypeID (same for the @FXR values). So you write all the values stored in your textboxes into the database... If you change sth. within the database it will not automatically change in your app...
Could you please explain in more detail what you mean by "link the textboxes ... in the table". What means "link"?
Regards,
Sebastian
|
|
|
|
|
Ok,
For each currency there is an ID, what I'm trying to do is make the Text box that I will also enter the new exchange rate into, the text box will correspond with the ID(PlayerTypeID). Basically, I’m trying to make the text box be an Id identifier and also an input text that will update the @FXR.
What I mean by link; I want the text box to identify the id in which it will enter the new exchange rate.
Thank you,
Ndeza
|
|
|
|