找回密码
 加入
搜索
查看: 4998|回复: 14

[图形处理] 在较高版本的autoIt中为什么she皮肤不起作用呢?

 火.. [复制链接]
发表于 2011-11-25 15:18:23 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
FileInstall("E:\auto\IT Tools\skin\aero.she",@TempDir & "\aero.she")
FileInstall("E:\auto\IT Tools\skin\Skin.dll",@TempDir & "\Skin.dll")
$skins=@TempDir & "\aero.she"
$Dll = DllOpen(@TempDir & "\Skin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)

$Form1 = GUICreate("skin", 633, 454, 192, 114)
$ok=GUICtrlCreateButton("ok",50,60,100,50)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                                        Case $ok
                                                MsgBox(0,"ok","ok")

        EndSwitch
WEnd
如上代码,在3.3.6以上版本为什么无效呢?
发表于 2011-11-25 15:37:00 | 显示全部楼层
跟版本没关系哈,我一直最新版用SHE哈
 楼主| 发表于 2011-11-25 15:45:16 | 显示全部楼层
那跟什么有关?skin.dll文件有关?请帮忙
发表于 2011-11-25 21:10:57 | 显示全部楼层
7,8,9行移到12行之后
 楼主| 发表于 2011-11-28 09:54:20 | 显示全部楼层
7,8,9行移到12行之后
3mile 发表于 2011-11-25 21:10
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
FileInstall("E:\auto\IT Tools\skin\aero.she",@TempDir & "\aero.she")
FileInstall("E:\auto\IT Tools\skin\Skin.dll",@TempDir & "\Skin.dll")
$skins=@TempDir & "\aero.she"
$Form1 = GUICreate("skin", 633, 454, 192, 114)
$ok=GUICtrlCreateButton("ok",50,60,100,50)
$Dll = DllOpen(@TempDir & "\Skin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                                        Case $ok
                                                MsgBox(0,"ok","ok")

        EndSwitch
WEnd

代码移动后还是不行啊,求帮忙,我目前使用的版本是从论坛下的,版本信息如下:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-11-28 11:00:13 | 显示全部楼层

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
FileInstall("Skin.dll", @TempDir &"\Skin.dll",1)
FileInstall("aero.she", @TempDir &"\aero.she",1)
$sDll= DllOpen(@TempDir &"\Skin.dll")
DllCall($sDll, "int", "SkinH_AttachEx","str",@TempDir & "\aero.she","str","mhgd")
DllCall($sDll, "int", "SkinH_SetAero","int",1)
$Form1 = GUICreate("skin", 633, 454, 192, 114)
$ok=GUICtrlCreateButton("ok",50,60,100,50)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                                        Case $ok
                                                MsgBox(0,"ok","ok")
        EndSwitch
WEnd
发表于 2011-11-28 11:05:35 | 显示全部楼层
回复 5# chinaxx


    你更改了代码,,当然用不了。
发表于 2011-11-28 16:39:42 | 显示全部楼层
本帖隐藏的内容需要回复才可以浏览
发表于 2011-11-28 16:41:16 | 显示全部楼层
跟版本没关系哈,我一直最新版用SHE哈
 楼主| 发表于 2011-11-29 11:35:30 | 显示全部楼层
回复 6# zcx880517


    复制了你的代码,结果运行后还是不行啊,什么原因?太神奇了
只要回到之前的版本又OK了,代码一模一样啊
发表于 2011-11-29 12:50:28 | 显示全部楼层
回复 10# chinaxx


    你现在是什么版本?
发表于 2011-11-29 15:05:52 | 显示全部楼层
帮顶。。。
发表于 2011-11-29 16:18:47 | 显示全部楼层
这个不是编译器的介绍么
 楼主| 发表于 2011-11-30 11:29:50 | 显示全部楼层
本帖最后由 chinaxx 于 2011-11-30 11:31 编辑

回复 11# zcx880517
如我5楼所发的图片,版本是SciTE 程序版本:  2.29
 楼主| 发表于 2011-12-9 14:30:58 | 显示全部楼层
顶一下,求助高手
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-5 15:06 , Processed in 0.089102 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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