Hi, the wiki page says we can use "window.KeyboardMaestro.ResizeWindow( “1,2,3,4” )" to resize the window:
resize the window to the specified size or frame as a string with commas (“width,height” or “left,top,width,height”)
I can't get it to work.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Test Window Resize</title>
<style type="text/css">
</style>
</head>
<body>
<div>
<h1 style="text-align: center; vertical-align: middle;">Test Window Resize</h1>
</div>
<script>
window.KeyboardMaestro.ResizeWindow( "1290,690" );
</script>
</body>
</html>
I've also tried to put it into the "KMInit()" function. Does not work either.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Test Window Resize</title>
<style type="text/css">
</style>
</head>
<body>
<div>
<h1 style="text-align: center; vertical-align: middle;">Test Window Resize</h1>
</div>
<script>
function KMInit() {
window.KeyboardMaestro.ResizeWindow( "1290,690" );
}
</script>
</body>
</html>
Any help appreciated!