curiousmaniac Posted March 25, 2010 Posted March 25, 2010 Can anyone help me with a script that will fixed the window to a specific size so the user and the app itself can't re-size it? Example. Im using MPC to play video, i make it become small and put it on the bottom right corner of my desktop, but when the next video played, the window size re-size it self and become big again.. then I need to re-size it again, and so on for the next video.. does anyone have some autoit script solution?
martin Posted March 25, 2010 Posted March 25, 2010 Can anyone help me with a script that will fixed the window to a specific size so the user and the app itself can't re-size it?Example. Im using MPC to play video, i make it become small and put it on the bottom right corner of my desktop, but when the next video played, the window size re-size it self and become big again.. then I need to re-size it again, and so on for the next video..does anyone have some autoit script solution?The easiest way might be to simply monitor the window and if the size changes set it back. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
curiousmaniac Posted March 25, 2010 Author Posted March 25, 2010 Thanks Martin, can u show me what function must be used.. maybe some script example..
martin Posted March 25, 2010 Posted March 25, 2010 Thanks Martin, can u show me what function must be used.. maybe some script example.. First you need to be able to identify the window. You can use the window title when the app starts assuming it's always the same, and then after that use the handle because the title might change depending on the video shown. Then have a loop where you get the window size or set it. $hW = wingettitle("????") while 1 sleep(300) $ws = WinGetPos($hW) if $ws[2] > $somewidth or $ws[3]<> $someheight Then WinMove($hW,....... endif WEnd Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
curiousmaniac Posted March 25, 2010 Author Posted March 25, 2010 I'll try it later.. thanks for the reply.. now not polite to ask more question to you, ~ searching in the forum for get win title from process name.. thanks a lot martin..
AdmiralAlkex Posted March 25, 2010 Posted March 25, 2010 Why not just go to Options > Playback and disable Auto-zoom? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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