Category Archives: Personal

Music Player progress

Been working on the Media Player, from the wxPython widget, MediaCtrl. I am pretty sure I’ve written at least one post a few weeks ago about how much trouble I had to go through just to get the thing working… here But luckily, since then I haven’t run into much trouble, as far as wxPython goes.

Hit the jump for an update on some of the issues I’ve been dealing with.

Continue reading Music Player progress

Windows7x64 Wallpaper Changer Script

I’ve been meaning to make this ever since I discovered win32 stuff. It uses the .2 version of SendKey, found here, that uses ctypes, instead of the win32 stuff I think, as well as working with 64 bit Windows. Make a shortcut to it on your desktop and just run it as a .pyw file, in order to hide the terminal window that pops up. Simple stuff

Anyways, all it does is is simulate a right-click and then an ‘n’ keystroke. It’s just a quick little app,  just a dozen lines long:

import win32api, win32con
import SendKeys
def click(x=-1,y=-1):
    oldX, oldY = win32api.GetCursorPos()
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTDOWN,x,y,0,0)
    win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTUP,x,y,0,0)
    win32api.SetCursorPos((oldX, oldY))

click()
SendKeys.SendKeys('n')

Have to make a text tagging tool

This tool is going to be for my story book application.

What it’s going to do is ask for a project file or make a new one, and all that file is is a preset set of tags.

Then once you open the very simple editor, you’re going to be able to write text in premade tags, dictated by the project file, which will be saved in a format which could be parsed by a program.

I’m not sure but I’m pretty sure this is exactly what xml is but I really have no idea, so I’m just forging through!

If you know of a kind of program I’m looking for though, lemme know.

 

Also, I’ve started using my Twitter (@tankorsmash) more so hopefully that will help me with things. I’m pretty new to it, so I’ll probably just use hashtags for everything. I’m using Plume for android. It’s pretty neat.