Windows8 发表于 2012-6-28 17:16:37

AU3如何使用兼容模式运行程序

本帖最后由 Windows8 于 2012-6-29 09:17 编辑

AU3如何使用兼容模式运行程序呢?
就是这样:

xms77 发表于 2012-6-28 22:15:52

勾上不就行了吗?

Windows8 发表于 2012-6-29 09:16:59

勾上不就行了吗?
xms77 发表于 2012-6-28 22:15 http://www.autoitx.com/images/common/back.gif

用AU3,拜托。   {:face (114):}

xms77 发表于 2012-6-29 12:28:13

回复 3# Windows8
呵呵,我还以为是au3的程序要用兼容模式运行呢!谁让你不说明白呢:face (24):

kevinch 发表于 2012-6-29 12:46:33

好像要操作注册表

Windows8 发表于 2012-6-29 15:44:39

好像要操作注册表
kevinch 发表于 29/6/2012 12:46 http://www.autoitx.com/images/common/back.gif


    怎么操作啊?什么注册表?

Windows8 发表于 2012-6-29 15:53:06

回复Windows8
呵呵,我还以为是au3的程序要用兼容模式运行呢!谁让你不说明白呢
xms77 没有发表于 1/10/1949 12:99 http://www.autoitx.com/images/common/back.gif

可恶,害得我扣了60多分,现在删除了。

user3000 发表于 2012-6-29 16:04:25

回复 7# Windows8


可恶的就是你自己了, 乱说话!
意见不同可以争论或保留, 但进行人身攻击绝对是不行滴!

Windows8 发表于 2012-6-30 09:03:50

回复Windows8


可恶的就是我了, 乱说话!
意见不同可以争论或保留, 但进行人身攻击绝对是不行滴 ...我承认。
user30000000000 发表于 99/99/9999 99:99 http://www.autoitx.com/images/common/back.gif


    早就删了,还争什么。问题还没有答案呢

lixiaolong 发表于 2012-6-30 23:22:38

本帖最后由 lixiaolong 于 2012-6-30 23:32 编辑

Vista,Win7 有效,Win8没测试.
#RequireAdmin

Global $WIN95 = "WIN95" ; Windows 95
Global $WIN98 = "WIN98" ;Windows 98 / Windows Me
Global $NT4SP5 = "NT4SP5" ;Windows NT 4.0(Service Pack 5)
Global $WIN2000 = "WIN2000" ;Windows 2000
Global $WINXPSP2 = "WINXPSP2" ;Windows XP(Service Pack 2)
Global $WINXPSP3 = "WINXPSP3" ;Windows XP(Service Pack 3)
Global $WINSRV03SP1 = "WINSRV03SP1" ;Windows Server 2003(Service Pack 1)
Global $WINSRV08SP1 = "WINSRV08SP1" ;Windows Server 2008(Service Pack 1)
Global $VISTARTM = "VISTARTM" ;Windows Vista
Global $VISTASP1 = "VISTASP1" ;Windows Vista(Service Pack 1)
Global $VISTASP2 = "VISTASP2" ;Windows Vista(Service Pack 2)



CompatibilityMode("C:\Program Files\Tencent\QQ\Bin\QQ.exe", $WINXPSP3)
;~ CompatibilityMode("C:\Program Files\Tencent\QQ\Bin\QQ.exe") ; Default

Run("C:\Program Files\Tencent\QQ\Bin\QQ.exe")

Func CompatibilityMode($Program, $Mode = "")
        Local $RedKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
       
        If Not $Mode Then
                RegDelete($RedKey, $Program)
        Else
                $a = RegWrite($RedKey, $Program, "REG_SZ", $Mode)
;~                 MsgBox(0, '', $a)
        EndIf
EndFunc   ;==>CompatibilityMode

fhqbbfcu2050 发表于 2012-7-1 00:46:43

看下楼上的...这东东值得深入学习

xz00311 发表于 2012-7-2 10:12:45

我记得是操作注册表的我之前也弄过

Windows8 发表于 2012-7-3 10:56:51

Vista,Win7 有效,Win8没测试.
lixiaolong 发表于 30/6/2012 23:22 http://www.autoitx.com/images/common/back.gif


    以Windows7 SP1 兼容性运行咋用?

lixiaolong 发表于 2012-7-3 18:02:24

回复 13# Windows8

你也不说用什么系统,我猜是win8吧?
win8的值有点不一样,【~ WIN7RTM】开头有个【~ 】.
我的win8里没有Windows7 SP1的选项.
如果有应该是这样【~ WIN7SP1】因为Vista sp1是【~ VISTASP1】.

hxming 发表于 2012-7-3 19:47:44

学习了,谢谢!
页: [1] 2
查看完整版本: AU3如何使用兼容模式运行程序