I wrote a hotbox in python and am calling it with space. What I would like to do is have the script read
Code: Select all
if __any window title included in the script is running_
close all windows and end the script
else
run the script
This way, I can close it with space n open it and not run into the problem of having multiple instances of the script running at once.
I've tried "states" but I dont have any python syntax for em?
Code: Select all
//This example demonstrates how to set view states
var layout = Desktop.ActiveLayout;
var v1 = layout.CreateView( "Explorer", "First" );
v1.State = siClosed;
v1.State = siMinimized;
v1.State = siNormal;