找回密码
 加入
搜索
查看: 1966|回复: 2

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

[复制链接]
发表于 2013-11-16 15:04:23 | 显示全部楼层 |阅读模式
本帖最后由 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 警告  



上面的出现了错误提示要咋改呢
发表于 2013-11-16 17:04:32 | 显示全部楼层
WM消息类常量都在WindowsConstants.au3里声明,前面加上#include <WindowsConstants.au3>

SC_RESTORE = 0xF120自己声明下

评分

参与人数 1金钱 +10 收起 理由
oceanwind + 10 谢谢

查看全部评分

 楼主| 发表于 2013-11-16 17:56:27 | 显示全部楼层
WM消息类常量都在WindowsConstants.au3里声明,前面加上#include

SC_RESTORE = 0xF120自己声明下
komaau3 发表于 2013-11-16 17:04


谢谢,没有提示错误了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-17 09:27 , Processed in 0.076802 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表