Home Download Buy Blog Forum Support

Run a command when a window opens

Run a command when a window opens

Postby LandonSchropp on Sun Sep 08, 2013 10:21 pm

Is it possible to run a window command when a window opens? I've tried using sublime_plugin.EventListener.on_window_command, but it doens't seem to work. I've also tried running the command in the window command's __init__ method without luck. Thanks in advance.
LandonSchropp
 
Posts: 1
Joined: Sun Sep 08, 2013 10:10 pm

Re: Run a command when a window opens

Postby skuroda on Sun Sep 08, 2013 10:40 pm

As far as I know, there is no way to run a command based on when a project loads (which is essentially what a window is).
skuroda
 
Posts: 676
Joined: Fri Oct 05, 2012 8:11 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 9 guests