Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Hide/Show a Program /w Macro~Python

Name: Shira 2009-05-02 15:33

Ok, so I'm learning Python as my first language. I know the basic syntax and everything by this point, so I've moved onto some more advanced things. The problem is for the program I'm writing now, I want the main application window to Hide/Show by a hot key. How would I go about doing this in Python?

I'm trying to make this App cross platform, as I plan on using it on my Windows and my Linux boxes. (It's cool if I need to use C/C++ or whatever else to accomplish this, since Python should allow me to use other languages in the script.)

I've toyed with the idea of making a Daemon to run constantly looking for the key combo, but that seems largely pointless and near impossible to do with Python.

ALSO: nb4 SICP

Name: Anonymous 2009-05-02 23:06

use the cpp function.  make sure gcc is installed though.


cpp('''
#include <iostream>

using namespace std;

int main(){
    cout << "HELLO WORLD" << endl;
    return 0;
}
''')





Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd Desktop

C:\Documents and Settings\Owner\Desktop>cpptest.py
HELLO WORLD

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List