<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Being PC &#124; Windows and iPhone How To&#039;s &#187; Scripting</title>
	<atom:link href="http://beingpc.com/category/programming/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://beingpc.com</link>
	<description>Windows and Apple Club</description>
	<lastBuildDate>Tue, 15 May 2012 19:07:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Hide Taskbar Source Code</title>
		<link>http://beingpc.com/2010/04/hide-taskbar-source-code/</link>
		<comments>http://beingpc.com/2010/04/hide-taskbar-source-code/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 06:16:02 +0000</pubDate>
		<dc:creator>Techie Guy</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://beingpc.com/?p=2076</guid>
		<description><![CDATA[Few days ago I have created an application Hide Taskbar, which helps you to hide your taskbar with a single click or a Hotkey. Till now I have never provided the source code of any of my softwares, but today for the first time I am giving out the source code for this program on [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Few days ago I have created an application <a title="Hide Taskbar" href="http://beingpc.com/2010/04/hide-taskbar-with-a-click-in-windows-7/" target="_blank">Hide Taskbar</a>, which helps you to hide your taskbar with a single click or a Hotkey.</strong></em></p>
<p>Till now I have never provided the source code of any of my softwares, but today for the first time I am giving out the source code for this program on demand of one of my reader.</p>
<p>First the application is not created in .NET or JAVA, it is created in a scripting language named <a href="http://www.autohotkey.com/" target="_blank">Autohotkey</a>. But I can assure you you can learn this in a day time. Ok leave the crap coming to the point here is s<strong>ource code of the Hide Taskbar-</strong></p>
<p><code>^esc::<br />
if toggle := !toggle<br />
WinHide ahk_class Shell_TrayWnd<br />
else<br />
WinShow ahk_class Shell_TrayWnd<br />
return</code></p>
<p><strong>First Line: </strong>Defines Hotkey CTRL+ESC<br />
<strong>Second Line:</strong> Enable toggling with same hotkey<br />
<strong>Third Line:</strong> Shell_TrayWnd is the autohotkey class id of Taskabr and Winhide is used to hide it.</p>
<p><strong>So what are you planning to do, hide something else?</strong> <img src='http://beingpc.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://beingpc.com/2010/04/hide-taskbar-source-code/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VBScripts Pranks</title>
		<link>http://beingpc.com/2009/11/vbscripts-pranks/</link>
		<comments>http://beingpc.com/2009/11/vbscripts-pranks/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 07:51:28 +0000</pubDate>
		<dc:creator>Techie Guy</dc:creator>
				<category><![CDATA[Geek Fun]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[fun script]]></category>
		<category><![CDATA[funny scripys]]></category>
		<category><![CDATA[prank scripts]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vb fun]]></category>
		<category><![CDATA[vbscript fun]]></category>
		<category><![CDATA[vbscript prank]]></category>
		<category><![CDATA[vbscripts]]></category>

		<guid isPermaLink="false">http://beingpc.com/?p=486</guid>
		<description><![CDATA[Note: To run these Scripts copy them in Notepad and save them as &#8220;anyname.vbs&#8221; (with cotes). These are just meant for fun, don&#8217;t use them to make your Dumb friend Cry. LED Disco on Keyboard This prank will turn your Keyboard LED&#8217;s on and off so fast that it seems like you have an DISCO [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-medium wp-image-496 aligncenter" title="VBscript fun" src="http://beingpc.com/wp-content/uploads/2009/11/gag_screenshot-300x101.gif" alt="VBscript fun" width="300" height="101" /></p>
<p><strong>Note: To run these Scripts copy them in Notepad and save them as &#8220;anyname.vbs&#8221; (with cotes). These are just meant for fun, don&#8217;t use them to make your Dumb friend Cry.</strong></p>
<h2>
<ul>
<li>LED Disco on Keyboard</li>
</ul>
</h2>
<p>This prank will turn your Keyboard LED&#8217;s on and off so fast that it seems like you have an DISCO lights on Keyboard</p>
<pre lang="LANGUAGE" line="1">Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys"{CAPSLOCK}"
wshshell.sendkeys"{NUMLOCK}"
wshshell.sendkeys"{SCROLLLOCK}"
loop</pre>
<h2>
<ul>
<li>Make your computer talk</li>
</ul>
</h2>
<p>Just run this Script and it will make your computer say what ever you want, jus edit the text &#8220;your message here&#8221; to anything you want. May be you would like to make computer welcome  you every time you Login by saying Welcome Your_name. So just replace your message and put this script in your startup folder and now every time you login your PC will welcome you by saying &#8221; Welcome Your_Name&#8221;</p>
<pre lang="LANGUAGE" line="1">strText = "your message here"
Set objVoice = CreateObject("SAPI.SpVoice")
objVoice.Speak strText</pre>
<h2>
<ul>
<li>Make the computer go &#8220;ding&#8221; then popup a message</li>
</ul>
</h2>
<p>This prank will first produce a ding sound and than popup a message. Make your friend confused by writing some CRAZY text.</p>
<pre lang="LANGUAGE" line="1">Set objVoice = CreateObject("SAPI.SpVoice")
Set objFile = CreateObject("SAPI.SpFileStream.1")
objFile.Open "c:\Windows\Media\Ding.wav"
objVoice.Speakstream objFile
Wscript.Echo "your message here"</pre>
<h2>
<ul>
<li>Make the Microsoft Office assistant popup and say something</li>
</ul>
</h2>
<p>This prank will only work if you have Office installed. In spite of making your PC says it&#8217;s more attractive way.</p>
<pre lang="LANGUAGE" line="1">On Error Resume Next

strAgentName2 = "MERLIN"
strAgentPath2 = "C:\Windows\Msagent\Chars\" &amp; strAgentName2 &amp; ".acs"
Set objAgent2 = CreateObject("Agent.Control.2")

objAgent2.Connected = TRUE
objAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)

objPeter.MoveTo 700,300
objPeter.Show

objPeter.Play "GetAttention"
objPeter.Play "GetAttentionReturn"

objPeter.Speak("your message here")
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop</pre>
<h2>
<ul>
<li>Error message</li>
</ul>
</h2>
<p>This prank will show a error message on screen</p>
<blockquote><p>lol = msgbox(&#8220;your message here&#8221;)</p></blockquote>
<h2>
<ul>
<li>A Scribbling Notepad</li>
</ul>
</h2>
<p>This is a scribbling Notepad, once you start it you feel like someone (ROBOT) is typing a message for you.</p>
<pre lang="LANGUAGE" line="1">Set wshshell = wscript.CreateObject("WScript.Shell")
Wshshell.run "Notepad"
wscript.sleep 400
wshshell.sendkeys "H"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 200
wshshell.sendkeys "I"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "m"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "R"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys "h"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "K"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "w"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "d"
wscript.sleep 100
wshshell.sendkeys "k"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "r"</pre>
<h2>
<ul>
<li>Agent Prank</li>
</ul>
</h2>
<p>Again a Microsoft Office Prank.</p>
<p><!--Ads3--><br />
<
<pre lang="LANGUAGE" line="1">On Error Resume Next
StrAgentName2 = &#8220;MERLIN&#8221;
StrAgentPath2 = &#8220;C:\Windows\Msagent\Chars\&#8221; &amp; strAgentName2 &amp; &#8220;.Acs&#8221;
Set objAgent2 = CreateObject(&#8220;Agent.Control.2&#8243;)
ObjAgent2.Connected = TRUE
ObjAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)
ObjPeter.MoveTo 700,300
ObjPeter.Show
ObjPeter.Play &#8220;GetAttention&#8221;
ObjPeter.Play &#8220;GetAttentionReturn&#8221;
ObjPeter.Speak(&#8220;Hi I&#8217;m merlin here to take control of your computer&#8221;)
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop
Wscript.Sleep 100
On Error Resume Next
StrAgentName2 = &#8220;MERLIN&#8221;
StrAgentPath2 = &#8220;C:\Windows\Msagent\Chars\&#8221; &amp; strAgentName2 &amp; &#8220;.Acs&#8221;
Set objAgent2 = CreateObject(&#8220;Agent.Control.2&#8243;)
ObjAgent2.Connected = TRUE
ObjAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)
ObjPeter.MoveTo 700,300
ObjPeter.Show
ObjPeter.Play &#8220;GetAttention&#8221;
ObjPeter.Play &#8220;GetAttentionReturn&#8221;
ObjPeter.Speak(&#8220;downloading virus . . . 20% . . . 40% . . . 60% . . . 80% . . . 100% virus downloaded&#8221;)
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop
Wscript.Sleep 100
On Error Resume Next
StrAgentName2 = &#8220;MERLIN&#8221;
StrAgentPath2 = &#8220;C:\Windows\Msagent\Chars\&#8221; &amp; strAgentName2 &amp; &#8220;.Acs&#8221;
Set objAgent2 = CreateObject(&#8220;Agent.Control.2&#8243;)
ObjAgent2.Connected = TRUE
ObjAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)
ObjPeter.MoveTo 700,300
ObjPeter.Show
ObjPeter.Play &#8220;GetAttention&#8221;
ObjPeter.Play &#8220;GetAttentionReturn&#8221;
ObjPeter.Speak(&#8220;watch as I open your cd drive&#8221;)
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop
Wscript.Sleep 100

Set oWMP = CreateObject(&#8220;WMPlayer.OCX.7&#8243; )
Set colCDROMs = oWMP.CdromCollection

If colCDROMs.Count &gt;= 1 then
For I = 0 to colCDROMs.Count &#8211; 1
ColCDROMs.Item(I).Eject
Next &#8216; cdrom
End If

Wscript.Sleep 100
On Error Resume Next
StrAgentName2 = &#8220;MERLIN&#8221;
StrAgentPath2 = &#8220;C:\Windows\Msagent\Chars\&#8221; &amp; strAgentName2 &amp; &#8220;.Acs&#8221;
Set objAgent2 = CreateObject(&#8220;Agent.Control.2&#8243;)
ObjAgent2.Connected = TRUE
ObjAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)
ObjPeter.MoveTo 700,300
ObjPeter.Show
ObjPeter.Play &#8220;GetAttention&#8221;
ObjPeter.Play &#8220;GetAttentionReturn&#8221;
ObjPeter.Speak(&#8220;lol I now open internet explorer&#8221;)
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop
Wscript.Sleep 100
Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)
WshShell.Run &#8220;iexplore http://www.Google.Com&#8221;, 9
WScript.Sleep 10000 &#8216; Give ie some time to load
<h2>
<ul>
<li>Eject CD/DVD Tray</li>
</ul>
</h2>

This will eject your CD/DVD Tray out automatically.
<pre lang="LANGUAGE" line="1">do
Set oWMP=CreateObject(”WMPlayer.OCX.7?)
Set colCDROMs=oWMP.cdromCollection
if colCDROMs.Count &gt;=1 then
For i=0 to colCDROMs.Count-1
colCDROMs.Item(i).Eject
Next ‘cdrom
End if
loop</pre>
<h2>
<ul>
<li>Open Notepad infinitely</li>
</ul>
</h2>
<pre lang="LANGUAGE" line="1">WScript.Sleep 10
WScript.Sleep 10
Set WshShell = WScript.CreateObject("WScript.Shell")
do
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "notepad"
loop</pre>
]]></content:encoded>
			<wfw:commentRss>http://beingpc.com/2009/11/vbscripts-pranks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

