oceanwind 发表于 2013-11-16 15:04:23

[已解决]]这个sendmessage语句该如何改呢?

本帖最后由 oceanwind 于 2013-11-16 17:57 编辑

#include<SendMessage.au3>
Global $gtalk_hnd = WinGetHandle("古h")
_SendMessageA($gtalk_hnd, $WM_SYSCOMMAND, $SC_RESTORE)
出现如下错误,如何改呢,谢谢先
//////////////////////////////
"D:\Program Files\AutoIt3\Examples\Helpfile\_SendMessage.au3"(4,41) : warning: $WM_SYSCOMMAND: 使用前并未进行声明.
_SendMessageA($gtalk_hnd, $WM_SYSCOMMAND,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\Program Files\AutoIt3\Examples\Helpfile\_SendMessage.au3"(4,54) : warning: $SC_RESTORE: 使用前并未进行声明.
_SendMessageA($gtalk_hnd, $WM_SYSCOMMAND, $SC_RESTORE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\Program Files\AutoIt3\Examples\Helpfile\_SendMessage.au3"(4,41) : error: $WM_SYSCOMMAND: 未声明的全局变量.
_SendMessageA($gtalk_hnd, $WM_SYSCOMMAND,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\Program Files\AutoIt3\Examples\Helpfile\_SendMessage.au3"(4,54) : error: $SC_RESTORE: 未声明的全局变量.
_SendMessageA($gtalk_hnd, $WM_SYSCOMMAND, $SC_RESTORE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Program Files\AutoIt3\Examples\Helpfile\_SendMessage.au3 - 2 错误, 2 警告



上面的出现了错误提示要咋改呢

komaau3 发表于 2013-11-16 17:04:32

WM消息类常量都在WindowsConstants.au3里声明,前面加上#include <WindowsConstants.au3>

SC_RESTORE = 0xF120自己声明下

oceanwind 发表于 2013-11-16 17:56:27

WM消息类常量都在WindowsConstants.au3里声明,前面加上#include

SC_RESTORE = 0xF120自己声明下
komaau3 发表于 2013-11-16 17:04 http://www.autoitx.com/images/common/back.gif

谢谢,没有提示错误了
页: [1]
查看完整版本: [已解决]]这个sendmessage语句该如何改呢?