Example #1
0
    def doFocus(self):
        if not self.isAlive():
            print("Error, window went away!")
            return
        my_hwnd = native.getKeyOp().getHwndW32()

        # If called from a WM_HOTKEY event processor,
        # this should succeed (except for a few cases, like switching away
        # from a Start menu)
        wgui.SetForegroundWindow(my_hwnd)

        # Once the wm is the foreground, we can pass it over
        wgui.SetForegroundWindow(self.hwnd)
Example #2
0
def main():
    keyOp = native.getKeyOp()
    winOp = native.getWinOp()
    ciccwm = CiccWm(keyOp, winOp)
    ciccwm.start()