设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1259|回复: 2
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
112 小时
注册时间
2011-7-13
帖子
71
跳转到指定楼层
1
发表于 2012-8-1 07:23:02 手机端发表。 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 zen7280110 于 2012-8-1 07:26 编辑

可否更改脚本中的设置,在开始时候是一个小窗口{自己设置大小},但几秒后会自动变大成大窗口{普通大小的窗口},这样可不可呢?求好心人解答啊!
貌似认可不了啊!难道又要手动..  ̄- ̄

Lv1.梦旅人

梦石
0
星屑
60
在线时间
156 小时
注册时间
2011-12-13
帖子
133
2
发表于 2012-8-1 09:16:24 | 只看该作者
本帖最后由 dant 于 2012-8-1 09:21 编辑

改 Game.exe 去
ASM 代码复制
  1. .text:00401368                 push    eax             ; dwExStyle
  2. .text:00401369                 push    0               ; bMenu
  3. .text:0040136B                 push    esi             ; dwStyle
  4. .text:0040136C                 lea     eax, [ebp+rc]
  5. .text:0040136F                 push    eax             ; lpRect
  6. .text:00401370                 call    ds:AdjustWindowRectEx
  7. .text:00401376                 push    20h             ; nIndex
  8. .text:00401378                 mov     edi, ds:GetSystemMetrics
  9. .text:0040137E                 call    edi ; GetSystemMetrics
  10. .text:00401380                 shl     eax, 1
  11. .text:00401382                 push    3Dh             ; nIndex
  12. .text:00401384                 mov     [ebp+var_3C], eax
  13. .text:00401387                 call    edi ; GetSystemMetrics
  14. .text:00401389                 mov     esi, eax
  15. .text:0040138B                 mov     eax, [ebp+var_3C]
  16. .text:0040138E                 sub     esi, eax
  17. .text:00401390                 mov     [ebp+var_84], esi
  18. .text:00401396                 push    21h             ; nIndex
  19. .text:00401398                 call    edi ; GetSystemMetrics
  20. .text:0040139A                 shl     eax, 1
  21. .text:0040139C                 push    3Eh             ; nIndex
  22. .text:0040139E                 mov     [ebp+var_38], eax
  23. .text:004013A1                 call    edi ; GetSystemMetrics
  24. .text:004013A3                 mov     ecx, [ebp+var_38]
  25. .text:004013A6                 sub     eax, ecx
  26. .text:004013A8                 mov     [ebp+var_30], eax
  27. .text:004013AB                 mov     ecx, [ebp+rc.right]
  28. .text:004013AE                 sub     ecx, [ebp+rc.left]
  29. .text:004013B1                 mov     [ebp+var_8C], ecx
  30. .text:004013B7                 mov     edi, [ebp+rc.bottom]
  31. .text:004013BA                 sub     edi, [ebp+rc.top]
  32. .text:004013BD                 mov     [ebp+var_90], edi
  33. .text:004013C3                 mov     eax, esi
  34. .text:004013C5                 sub     eax, ecx
  35. .text:004013C7                 cdq
  36. .text:004013C8                 sub     eax, edx
  37. .text:004013CA                 mov     esi, eax
  38. .text:004013CC                 sar     esi, 1
  39. .text:004013CE                 mov     [ebp+var_A0], esi
  40. .text:004013D4                 mov     eax, [ebp+var_30]
  41. .text:004013D7                 sub     eax, edi
  42. .text:004013D9                 cdq
  43. .text:004013DA                 sub     eax, edx
  44. .text:004013DC                 sar     eax, 1
  45. .text:004013DE                 mov     [ebp+var_78], eax
  46. .text:004013E1                 push    14h             ; uFlags
  47. .text:004013E3                 push    edi             ; cy
  48. .text:004013E4                 push    ecx             ; cx
  49. .text:004013E5                 push    eax             ; Y
  50. .text:004013E6                 push    esi             ; X
  51. .text:004013E7                 push    0               ; hWndInsertAfter
  52. .text:004013E9                 push    ebx             ; hWnd
  53. .text:004013EA                 call    ds:SetWindowPos
���
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
112 小时
注册时间
2011-7-13
帖子
71
3
 楼主| 发表于 2012-8-1 09:46:18 | 只看该作者
dant 发表于 2012-8-1 09:16
改 Game.exe 去
.text:00401368                 push    eax             ; dwExStyle
.text:00401369     ...

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-25 05:31

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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