当前位置:   article > 正文

python api post开发实例-Python win32api.PostMessage方法代码示例

python win32api.postmessage f1

本文整理汇总了Python中win32api.PostMessage方法的典型用法代码示例。如果您正苦于以下问题:Python win32api.PostMessage方法的具体用法?Python win32api.PostMessage怎么用?Python win32api.PostMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在模块win32api的用法示例。

在下文中一共展示了win32api.PostMessage方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: Run

​点赞 4

# 需要导入模块: import win32api [as 别名]

# 或者: from win32api import PostMessage [as 别名]

def Run(self):

while 1:

handles = [self.stopEvent, self.adminEvent]

if self.watchEvent is not None:

handles.append(self.watchEvent)

rc = win32event.WaitForMultipleObjects(handles, 0, win32event.INFINITE)

if rc == win32event.WAIT_OBJECT_0:

break

elif rc == win32event.WAIT_OBJECT_0+1:

self.RefreshEvent()

else:

win32api.PostMessage(self.hwnd, MSG_CHECK_EXTERNAL_FILE, 0, 0)

try:

# If the directory has been removed underneath us, we get this error.

win32api.FindNextChangeNotification(self.watchEvent)

except win32api.error as exc:

print("Can not watch file", self.doc.GetPathName(), "for changes -", exc.strerror)

break

# close a circular reference

self.doc = None

if self.watchEvent:

win32api.FindCloseChangeNotification(self.watchEvent)

开发者ID:jasonrbr,项目名称:CodeReader,代码行数:25,

示例2: Run

​点赞 3

# 需要导入模块: import win32api [as 别名]

# 或者: from win32api import PostMessage [as 别名]

def Run(self):

while 1:

handles = [self.stopEvent, self.adminEvent]

if self.watchEvent is not None:

handles.append(self.watchEvent)

rc = win32event.WaitForMultipleObjects(handles, 0, win32event.INFINITE)

if rc == win32event.WAIT_OBJECT_0:

break

elif rc == win32event.WAIT_OBJECT_0+1:

self.RefreshEvent()

else:

win32api.PostMessage(self.hwnd, MSG_CHECK_EXTERNAL_FILE, 0, 0)

try:

# If the directory has been removed underneath us, we get this error.

win32api.FindNextChangeNotification(self.watchEvent)

except win32api.error, exc:

print "Can not watch file", self.doc.GetPathName(), "for changes -", exc.strerror

break

# close a circular reference

self.doc = None

if self.watchEvent:

win32api.FindCloseChangeNotification(self.watchEvent)

开发者ID:htwenning,项目名称:remoteControlPPT,代码行数:25,

示例3: move

​点赞 3

# 需要导入模块: import win32api [as 别名]

# 或者: from win32api import PostMessage [as 别名]

def move(self,coords, button=None):

if all(isinstance(elem, float) for

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/74936
推荐阅读
相关标签
  

闽ICP备14008679号