Jump to content

Ways to resize windows


Belini
 Share

Recommended Posts

THERE windows programs not Autoit can not be resized, and others who do not accept dimension greater than the desktop which otherwise beyond WinMove can do this?

Link to comment
Share on other sites

Did you try?

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

I tried this way:

#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Global $GWL_STYLE = -16

HotKeySet("{ESC}", "close")
Run(@ScriptDir & "\nebula.exe", "", @SW_MAXIMIZE + @SW_HIDE)

$hWnd = WinWaitActive("[CLASS:Nebula]")
_WinAPI_SetWindowLong($hWnd, $GWL_STYLE, $WS_VISIBLE)
WinMove($hWnd, "", 0, 0, @DesktopWidth, @DesktopHeight); Normal window showing the top bar
Sleep(3000)
WinMove($hWnd, "", 0, -40, @DesktopWidth, @DesktopHeight + 40); When you hide the top bar is missing a part of the window at the bottom of the screen.

While 1
    Sleep(100)
WEnd

Func close()
    ProcessClose("nebula.exe")
    HotKeySet("{ESC}")
    Exit
EndFunc   ;==>close

EDITED:  My intention is to create a fake because fullscreen Some programs do not show messages on the screen in fullscreen mode more show in windowed mode.

Edited by Belini
Link to comment
Share on other sites

Anyone have other suggestions for redimensinar windows or remove borders and bar memu?

Link to comment
Share on other sites

You can not make the window bigger than monitor.

 

And hide the menu bar of the GUI has got how to do?

Link to comment
Share on other sites

Using _GUICtrlMenu_RemoveMenu worked as I expected and now the window is identical to fullscreen mode

#include <WinAPI.au3>
#include <GuiMenu.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Global $hWnd, $GWL_STYLE = -16

HotKeySet("{ESC}", "close")
Run(@ScriptDir & "\nebula.exe", "", @SW_MAXIMIZE + @SW_HIDE)

$hWnd = WinWaitActive("[CLASS:Nebula]")
_WinAPI_SetWindowLong($hWnd, $GWL_STYLE, $WS_VISIBLE)

menu_strip()
WinMove($hWnd, "", 0, 0, @DesktopWidth, @DesktopHeight)

While 1
    Sleep(100)
WEnd

Func menu_strip()
    Local $hMain = _GUICtrlMenu_GetMenu($hWnd)
    For $x = _GUICtrlMenu_GetItemCount($hMain) - 1 To 0 Step -1
        _GUICtrlMenu_RemoveMenu($hMain, $x)
    Next
EndFunc   ;==>menu_strip

Func close()
    ProcessClose("nebula.exe")
    HotKeySet("{ESC}")
    Exit
EndFunc   ;==>close

 

Download test: https://www.dropbox.com/s/ph7jmo9i8fcagzo/Win_test.rar

Link to comment
Share on other sites

Nebula is an example of the window that has the blue top bar and the menu bar, I know the rules about games and try to follow and in no time asked for anything related to games only helps to leave a window similar to fullscreen as I gave this as an example could have given any other.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...