查看: 1460|回复: 2

[已经解决] 问个游戏窗口问题

[复制链接]
梦石
0
星屑
50
在线时间
112 小时
注册时间
2011-7-13
回帖
52
发表于 2012-8-1 07:23:02 来自手机 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 zen7280110 于 2012-8-1 07:26 编辑

可否更改脚本中的设置,在开始时候是一个小窗口{自己设置大小},但几秒后会自动变大成大窗口{普通大小的窗口},这样可不可呢?求好心人解答啊!
貌似认可不了啊!难道又要手动..  ̄- ̄
梦石
0
星屑
60
在线时间
156 小时
注册时间
2011-12-13
回帖
127
发表于 2012-8-1 09:16:24 | 显示全部楼层
本帖最后由 dant 于 2012-8-1 09:21 编辑

改 Game.exe 去
[pre lang="asm" line="1"].text:00401368                 push    eax             ; dwExStyle
.text:00401369                 push    0               ; bMenu
.text:0040136B                 push    esi             ; dwStyle
.text:0040136C                 lea     eax, [ebp+rc]
.text:0040136F                 push    eax             ; lpRect
.text:00401370                 call    ds:AdjustWindowRectEx
.text:00401376                 push    20h             ; nIndex
.text:00401378                 mov     edi, ds:GetSystemMetrics
.text:0040137E                 call    edi ; GetSystemMetrics
.text:00401380                 shl     eax, 1
.text:00401382                 push    3Dh             ; nIndex
.text:00401384                 mov     [ebp+var_3C], eax
.text:00401387                 call    edi ; GetSystemMetrics
.text:00401389                 mov     esi, eax
.text:0040138B                 mov     eax, [ebp+var_3C]
.text:0040138E                 sub     esi, eax
.text:00401390                 mov     [ebp+var_84], esi
.text:00401396                 push    21h             ; nIndex
.text:00401398                 call    edi ; GetSystemMetrics
.text:0040139A                 shl     eax, 1
.text:0040139C                 push    3Eh             ; nIndex
.text:0040139E                 mov     [ebp+var_38], eax
.text:004013A1                 call    edi ; GetSystemMetrics
.text:004013A3                 mov     ecx, [ebp+var_38]
.text:004013A6                 sub     eax, ecx
.text:004013A8                 mov     [ebp+var_30], eax
.text:004013AB                 mov     ecx, [ebp+rc.right]
.text:004013AE                 sub     ecx, [ebp+rc.left]
.text:004013B1                 mov     [ebp+var_8C], ecx
.text:004013B7                 mov     edi, [ebp+rc.bottom]
.text:004013BA                 sub     edi, [ebp+rc.top]
.text:004013BD                 mov     [ebp+var_90], edi
.text:004013C3                 mov     eax, esi
.text:004013C5                 sub     eax, ecx
.text:004013C7                 cdq
.text:004013C8                 sub     eax, edx
.text:004013CA                 mov     esi, eax
.text:004013CC                 sar     esi, 1
.text:004013CE                 mov     [ebp+var_A0], esi
.text:004013D4                 mov     eax, [ebp+var_30]
.text:004013D7                 sub     eax, edi
.text:004013D9                 cdq
.text:004013DA                 sub     eax, edx
.text:004013DC                 sar     eax, 1
.text:004013DE                 mov     [ebp+var_78], eax
.text:004013E1                 push    14h             ; uFlags
.text:004013E3                 push    edi             ; cy
.text:004013E4                 push    ecx             ; cx
.text:004013E5                 push    eax             ; Y
.text:004013E6                 push    esi             ; X
.text:004013E7                 push    0               ; hWndInsertAfter
.text:004013E9                 push    ebx             ; hWnd
.text:004013EA                 call    ds:SetWindowPos[/pre]���
回复

使用道具 举报

梦石
0
星屑
50
在线时间
112 小时
注册时间
2011-7-13
回帖
52
 楼主| 发表于 2012-8-1 09:46:18 | 显示全部楼层
dant 发表于 2012-8-1 09:16
改 Game.exe 去
.text:00401368                 push    eax             ; dwExStyle
.text:00401369     ...

这个是?汗,看不懂啊,头晕,这是怎么改的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部