I have some troubles when tring to develop some plugin.
I want to set SublimeText's main window to topmost using API SetWindowPos,and my code is:
import sublime, sublime_plugin
from ctypes import *
user32 = windll.user32
classname = "PX_WINDOW_CLASS"
hWin = user32.FindWindowA(classname,None)
def run(self, view):
It can work when I use
in the console window,but when I create Default (Windows).sublime-keymap to bind some hot key to my plugin,it seems no response.
It is strange that the hot key can work when I open and save SetWindowTop.py again without any changes.
I need some help to know why,please?