Jump to content
Sign in to follow this  
Innovative

Force Game windowed

Recommended Posts

Innovative

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
i542

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 ?

$title = WinGetTitle("process.exe")
WinSetState($title,"",@SW_RESTORE)

I can do signature me.

Share this post


Link to post
Share on other sites
Innovative

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
Shevilie

Try it yourself first... Then ask for help :) People don't create scripts, they help when your stuck.


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Innovative

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
Glyph

help file, search guictreate

or goto the example gui's


tolle indicium

Share this post


Link to post
Share on other sites
shortstop

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 ?

Yes, that script works, just make the button in your GUI do that.


Share this post


Link to post
Share on other sites
Innovative

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
Delta01

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
Innovative

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
Innovative

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.