Channel 9MicrosoftMicrosoftnohttps://sec.ch9.ms/content/feedimage.pngChannel 9https://channel9.msdn.com/Niners/c4f.Shoban-Kumar/Posts
Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight � Watch videos and hear about all the cool technologies coming and the people behind them.https://channel9.msdn.com/Niners/c4f.Shoban-Kumar/Posts
enFri, 18 Aug 2017 05:09:36 GMTFri, 18 Aug 2017 05:09:36 GMTRev91125Shutdown/Restart/Logoff your PC using TweetMyPCIn this article I will show you how you can use Twitter API to Shutdown/Restart/Logoff your PC remotely using VB.net.

Introduction

I have a very slow internet connection at home and most of the time Downloads takes hours to complete. I decided to write an application which will help me Shutdown my PC from a remote location. I wanted to use it to shutdown when I go out when some downloading
is going on in my laptop. Instead of using a server and client architecture I decided to use Twitter API and use “My Timeline” to supply commands. One other reason to use Twitter is that I will be able to tweet from my mobile as well. I don't need to look
for a computer with an internet connection when I am on the move.

Why Yedda Twitter framework?

The Twitter REST API methods allow developers to access core Twitter data. This includes update timelines, status data, and user information. It's very easy to connect to Twitter and get
user time line using .net. But I dint wanted to reinvent wheel and decided to use an existing Twitter library. Yedda Twitter framework is the best open source Twitter library available in the internet. You can learn more and download the library from
yedda's home page.

Designing the Interface

I wanted the interface to be as simple as possible. Below is the screenshot of TweetMyPC's interface which does not have more than 2 Text Boxes, 1 Check Box, Label and a Button.

The form also has a Notify Icon, Context Menu Strip and a Timer. Following are the names of all the controls in the form.

From : frmTweetMyPc

Text Boxes : txtUserName, txtPassword

Button : btnSave

Check Box : chkStartAutomatic

Timer : tmrTweet (Interval : 10000)

Label : lblSatus

There are few
My.settings properties to store user information. These properties are shown below.

The CodeAdd the following code which minimizes the Form on Load and Enable Timer to check for Tweets every 1 minute.

Working

Conclusion

Even though TweetMyPC is a simple app it has lot of interesting potential. Think about switching off your TV or washing machine using Twitter. It is possible with a little extra hardware and a simple .net program. TweetMyPC is free and open source. Feel
free to download the sour code and add more functionality.

]]>https://channel9.msdn.com/coding4fun/articles/ShutdownRestartLogoff-your-PC-using-TweetMyPC
In this article I will show you how you can use Twitter API to Shutdown/Restart/Logoff your PC remotely using VB.net.
Introduction
I have a very slow internet connection at home and most of the time Downloads takes hours to complete. I decided to write an application which will help me Shutdown my PC from a remote location. I wanted to use it to shutdown when I go out when some downloading
is going on in my laptop. Instead of using a server and client architecture I decided to use Twitter API and use “My Timeline” to supply commands. One other reason to use Twitter is that I will be able to tweet from my mobile as well. I don't need to look
for a computer with an internet connection when I am on the move.
Why Yedda Twitter framework?
The Twitter REST API methods allow developers to access core Twitter data. This includes update timelines, status data, and user information. It's very easy to connect to Twitter and get
user time line using .net. But I dint wanted to reinvent wheel and decided to use an existing Twitter library. Yedda Twitter framework is the best open source Twitter library available in the internet. You can learn more and download the library from
yedda's home page.
Designing the Interface
I wanted the interface to be as simple as possible. Below is the screenshot of TweetMyPC's interface which does not have more than 2 Text Boxes, 1 Check Box, Label and a Button.
The form also has a Notify Icon, Context Menu Strip and a Timer. Following are the names of all the controls in the form.
From : frmTweetMyPc Text Boxes : txtUserName, txtPassword Button : btnSave Check Box : chkStartAutomatic Timer : tmrTweet (Interval : 10000) Label : lblSatus
There are few
My.settings properties to store user information. These properties are shown below.
The Code
Add the following code which minimizes the Form on Load and Enable Timer to check for Tweets every 1 minute.
Me.WindowState = FormWindowState.Minimized
Me.ShowInTaskbar = False
tmrTweet.Enabhttps://channel9.msdn.com/coding4fun/articles/ShutdownRestartLogoff-your-PC-using-TweetMyPC
Tue, 23 Jun 2009 16:01:00 GMThttps://channel9.msdn.com/coding4fun/articles/ShutdownRestartLogoff-your-PC-using-TweetMyPCShoban Kumar Shoban Kumar 10https://channel9.msdn.com/coding4fun/articles/ShutdownRestartLogoff-your-PC-using-TweetMyPC/RSSutilityWindowsHome Automation