Skype Ninja mode

From Hackerspace ACKspace
Jump to: navigation, search
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\"")