Jump to content
Sign in to follow this  
Innovative

Force Game windowed

Recommended Posts

Hello all,

I've seen some third-party programs that will force games like maplestory to play in windowed mode.

What is the script for that ?

Share this post


Link to post
Share on other sites

I wanted to make it into a GUI , so that when someone press the ACTIVATE button, the game will become windowed mode. What is the script for that ? (Including the script for the GUI)

Share this post


Link to post
Share on other sites

But how do i make like when people clicked on the button, it will activate the windowed mode and display a msgbox to tell the user that it is activated?

EDIT : Anyway, Does the script i542 gave me works ?

Edited by CrazeStar1074

Share this post


Link to post
Share on other sites

Doesn't works for me..

But by looking at the script, i think this script is to RESTORE it now make it windowed mode (resize the window)

What i wanted was,

FROM

Posted Image

TO

Posted Image

What is the script for that ?

Share this post


Link to post
Share on other sites

To make is recognize a person clicking it.

$msg = GuiGetMsg()
If $msg = $button then
(. . . ) code there
Endif

The resize.... This is a script I am making for a different game, should work for Maplestory too tho, haven't tested it but i changed the code

#include <GuiConstants.au3>
#include <misc.au3>

Global $Paused, $msg = GuiGetMsg()

HotKeySet("{F6}", "Terminate")

$main = GuiCreate("MapleStory Resizer + More", 290, 200)
$Help = GuiCtrlCreateMenu("&Help")
$About = GuiCtrlCreateMenuItem("Help",$Help)
GuiCtrlCreateGroup("Rename", 5, 5, 150, 100)
GuiCtrlCreateLabel("Rename MapleStory to..", 10, 25, -1, -1)
$rename = GuiCtrlCreateInput("MapleStory", 10, 45)
$renamer = GuiCtrlCreateButton("Rename", 10, 75, 50, 20)
GuiCtrlCreateGroup("Resize", 165, 5, 120, 100)
GuiCtrlCreateLabel("Resize MapleStory to..", 170, 25) 
$x = GuictrlCreateInput("100", 170, 45, 35, -1, $ES_NUMBER)
GuiCtrlCreateLabel("x", 210, 50)
$y = GuiCtrlCreateInput("100", 225, 45, 35, -1, $ES_NUMBER)
$resize = GuiCtrlCreateButton("Resize", 170, 75, 50, 20)
$ontop = GuiCtrlCreateCheckBox("On top", 230, 80)
$Hide = GuiCtrlCreateButton("Hide", 10, 130, 60, 30)
$Show = GuiCtrlCreateButton("Show", 85, 130, 60, 30)
GuiSetState()

While 1
    $msg = GuiGetMsg()
    $renamed = GuiCtrlRead($rename)
    $resizedx = GuiCtrlRead($x)
    $resizedy = GuiCtrlRead($y)
    
    If $msg = $GUI_EVENT_CLOSE then
    Terminate()
        Endif
    
    If $msg = $About Then
        MsgBox(0, "MapleStory resizer + more", "Follow the instructions in the GUI. Press F6 to close")
        Endif
        
    If GuiCtrlRead($ontop) = $GUI_CHECKED Then
        If WinExists("MapleStory") then
        WinSetOnTop("MapleStory", "", 1)
    Else
        WinSetOnTop($renamed)
        Endif
        Endif
    
    If $msg = $renamer Then
        If WinExists("MapleStory") then
        WinSetTitle("MapleStory", "", $renamed)
    Else
        WinSetTitle($renamed)
        Endif
        Endif
    
    If $msg = $resize Then
        If WinExists("MapleStory") Then
        WinMove("MapleStory", "", default, default, $resizedx, $resizedy)
        Else
        WinMove($renamed, "", default, default, $resizedx, $resizedy)
        Endif
        Endif
    
    If $msg = $Hide Then
    If WinExists("MapleStory") Then
    WinSetState("MapleStory", "", @SW_MINIMIZE)
    WinSetState("MapleStory", "", @SW_HIDE)
    Else
    WinSetState($renamed, "", @SW_MINIMIZE)
    WinSetState($renamed, "", @SW_HIDE)
        Endif
        Endif
    
WEnd

Func Terminate()
    Exit
    EndFunc

If you want to change anything use the help file and look up GUI and/or Win

Edited by Delta01

Share this post


Link to post
Share on other sites

Delta.. really thanks for your help, i appreciate it.

But sadly, the script doesn't works. The hide and show script works but the rename and resize script doesn't works.

The game just dont resize, it kept staying at the current size (Full screen)

Share this post


Link to post
Share on other sites

EDIT : Actually this works, now i knows why it doesn't works for me

Because i checked the AutoIT help files and found out that WinMove will not works for minimized windows.

Whenever i wanted to resize, i need to minimize maplestory , using it not to works.

Therefore , i need another type of script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...