Sign in to follow this  
Followers 0
Gondus

How do i make a window not allowed to maximize?

3 posts in this topic

#1 ·  Posted (edited)

Just wanted to know how to make a window not able to maximize...

Edit:This will the only game bot i will be making, i just hate doing that over and over again....gets annoying.

;Gondus Script's....WOOOT
Global $paused
hotkeyset( "{ESC}" , "Terminate")
hotkeyset( "{PAUSE}" , "TogglePause" )

$answer = MsgBox(4, "Made By Gondus", "This is agaist the rules of Jagex and getting caught will get you banned, Still Run?")

If $answer = 7 Then
    MsgBox(0, "Good Bye", "Thanks you for downloading my script, check for updates on gamerzplanet.net or sythe.org")
    Exit
EndIf

#region

#include <GuiConstants.au3>

GuiCreate("Gondus's Crumble Undead Bot", 323, 309,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Label1 = GuiCtrlCreateLabel("Gondus's Crumble Undead Bot, This is not have antirandom on it, or anything else, all it does it shoot at zombies across the river inside the varrok sewers, i can not be accounted for if u got caught from your own stupidity.", 10, 20, 310, 60)
$Label2 = GuiCtrlCreateLabel('This will basically shoot across the stream and kill the zombies, i hated clicked so damn much so i was like what the hell ill make this, just click "START" and watch it go, use afk at your own risk!!!!!', 10, 90, 310, 60)
$start = GuiCtrlCreateButton("Start", 50, 230, 50, 50, $bs_icon)
GUICtrlSetImage (-1, "shell32.dll",137)
$exit = GuiCtrlCreateButton("Exit", 210, 230, 50, 50, $bs_icon)
GUICtrlSetImage (-1, "shell32.dll",131)
$Label5 = GuiCtrlCreateLabel("Help:", 10, 150, 30, 20)
$Label6 = GuiCtrlCreateLabel("Pause = Pause Program", 60, 150, 140, 20)
$Label7 = GuiCtrlCreateLabel("Esc = Program Shutdown", 60, 170, 140, 20)

GuiSetState()
While 1
    
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            exitloop
        case $msg = $start 
            winsetstate ("Gondus's Crumble Undead Bot", "", @SW_MINIMIZE)
            sleep (200)

            
            
        Case $msg = $exit
                msgbox ( 0, "Good bye", "Thank you for downloading, please check gamerzplanet.net or sythe.org for updates.")
            exit
        ExitLoop
    Case Else
    
    EndSelect
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('BOT IS PAUSED',500,100)
    WEnd
EndFunc

Func Terminate()
    msgbox ( 0, "Good bye", "Thank you for downloading, please check gamerzplanet.net or sythe.org for updates.")
    Exit 0
EndFunc

Exit
#endregion
Edited by Gondus

-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

Share this post


Link to post
Share on other sites



Just wanted to know how to make a window not able to maximize...

Edit:This will the only game bot i will be making, i just hate doing that over and over again....gets annoying.

;Gondus Script's....WOOOT
Global $paused
hotkeyset( "{ESC}" , "Terminate")
hotkeyset( "{PAUSE}" , "TogglePause" )

$answer = MsgBox(4, "Made By Gondus", "This is agaist the rules of Jagex and getting caught will get you banned, Still Run?")

If $answer = 7 Then
    MsgBox(0, "Good Bye", "Thanks you for downloading my script, check for updates on gamerzplanet.net or sythe.org")
    Exit
EndIf

#region

#include <GuiConstants.au3>

GuiCreate("Gondus's Crumble Undead Bot", 323, 309,-1, -1 ,$DS_SETFOREGROUND)

$Label1 = GuiCtrlCreateLabel("Gondus's Crumble Undead Bot, This is not have antirandom on it, or anything else, all it does it shoot at zombies across the river inside the varrok sewers, i can not be accounted for if u got caught from your own stupidity.", 10, 20, 310, 60)
$Label2 = GuiCtrlCreateLabel('This will basically shoot across the stream and kill the zombies, i hated clicked so damn much so i was like what the hell ill make this, just click "START" and watch it go, use afk at your own risk!!!!!', 10, 90, 310, 60)
$start = GuiCtrlCreateButton("Start", 50, 230, 50, 50, $bs_icon)
GUICtrlSetImage (-1, "shell32.dll",137)
$exit = GuiCtrlCreateButton("Exit", 210, 230, 50, 50, $bs_icon)
GUICtrlSetImage (-1, "shell32.dll",131)
$Label5 = GuiCtrlCreateLabel("Help:", 10, 150, 30, 20)
$Label6 = GuiCtrlCreateLabel("Pause = Pause Program", 60, 150, 140, 20)
$Label7 = GuiCtrlCreateLabel("Esc = Program Shutdown", 60, 170, 140, 20)

GuiSetState()
While 1
    
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            exitloop
        case $msg = $start 
            winsetstate ("Gondus's Crumble Undead Bot", "", @SW_MINIMIZE)
            sleep (200)

            
            
        Case $msg = $exit
                msgbox ( 0, "Good bye", "Thank you for downloading, please check gamerzplanet.net or sythe.org for updates.")
            exit
        ExitLoop
    Case Else
    
    EndSelect
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('BOT IS PAUSED',500,100)
    WEnd
EndFunc

Func Terminate()
    msgbox ( 0, "Good bye", "Thank you for downloading, please check gamerzplanet.net or sythe.org for updates.")
    Exit 0
EndFunc

Exit
#endregion
Does this work for you?

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

The script isnt finished yet, i didnt add the mouse functions in or anything, all i want right now is for the window not to maximize, when u run it will minimize to the bar but i dont want them to make the window bigger.


-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

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  
Followers 0