Difference between revisions of "Skype Ninja mode"

From Hackerspace ACKspace
Jump to: navigation, search
(Created page)
 
 
Line 5: Line 5:
 
}}
 
}}
 
Skype doesn't offer users the choice to set their status before they login.
 
Skype doesn't offer users the choice to set their status before they login.
 +
 
This is quite annoying if you simply want to contact someone without notifying your entire contact list that you're online.
 
This is quite annoying if you simply want to contact someone without notifying your entire contact list that you're online.
  
Line 15: Line 16:
 
and updates may be in order to ensure it works for a broader audience.
 
and updates may be in order to ensure it works for a broader audience.
  
::LOG
+
 
 +
== LOG ==
 +
 
 
01-10-2014 16:20 Released version 1.0
 
01-10-2014 16:20 Released version 1.0
  
  
::CODE
 
  
import os, sqlite3
+
== CODE ==
 +
 
 +
<nowiki>import os, sqlite3
  
 
appdatapath = os.getenv('APPDATA')
 
appdatapath = os.getenv('APPDATA')
Line 37: Line 41:
 
else:
 
else:
 
print "Skype ninja mode activated"
 
print "Skype ninja mode activated"
os.system("\"C:\\Program Files\\Skype\\Phone\\Skype.exe\"")
+
os.system("\"C:\\Program Files\\Skype\\Phone\\Skype.exe\"")</nowiki>

Latest revision as of 15:25, 1 October 2014

Project: Skype Ninja mode
Featured:
State Completed
Members Prodigity
GitHub No GitHub project defined. Add your project here.
Description Skype Ninja Mode
Picture
No project picture! Fill in form Picture or Upload a jpeg here

Skype doesn't offer users the choice to set their status before they login.

This is quite annoying if you simply want to contact someone without notifying your entire contact list that you're online.

The following python script forces skype to log on as invisible, making you effectively a 'Skype Ninja'.

Currently the script will only work for window users and only when you've logged in at least once before.

Some tiny editing might be in order to make the script work for your system and updates may be in order to ensure it works for a broader audience.


LOG

01-10-2014 16:20 Released version 1.0


CODE

import os, sqlite3

appdatapath = os.getenv('APPDATA')
username = raw_input("Enter skype username: ")
maindbfile = appdatapath + "\\Skype\\" + username + "\\main.db"

try:
	connection = sqlite3.connect(maindbfile)
	c = connection.cursor()
	c.execute('UPDATE accounts SET set_availability=6')
	connection.commit()
	connection.close()
except Exception:
	print "An error has occurred"
else:
	print "Skype ninja mode activated"
	os.system("\"C:\\Program Files\\Skype\\Phone\\Skype.exe\"")