Innovative Posted October 17, 2007 Posted October 17, 2007 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 ?
i542 Posted October 17, 2007 Posted October 17, 2007 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.
Innovative Posted October 17, 2007 Author Posted October 17, 2007 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)
Shevilie Posted October 17, 2007 Posted October 17, 2007 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
Innovative Posted October 17, 2007 Author Posted October 17, 2007 (edited) 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 October 17, 2007 by CrazeStar1074
Glyph Posted October 17, 2007 Posted October 17, 2007 help file, search guictreate or goto the example gui's tolle indicium
shortstop Posted October 17, 2007 Posted October 17, 2007 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.
Innovative Posted October 18, 2007 Author Posted October 18, 2007 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,FROMTOWhat is the script for that ?
Delta01 Posted October 18, 2007 Posted October 18, 2007 (edited) 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 expandcollapse popup#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 October 18, 2007 by Delta01
Innovative Posted October 18, 2007 Author Posted October 18, 2007 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)
Innovative Posted October 18, 2007 Author Posted October 18, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now