Using script to automatically arrange timeline and sceneline workspaces.


this simple demonstration of using vb script adjust panels in pe3.

in pe3, when adjust height of timeline, height of sceneline adjusted same amount, , vice versa. use script automatically adjust height of sceneline or timeline whenever switch respective modes. script below that.

this familiar script writing , windows script host. vb script below includes properties , methods autoitx library (free download).

option explicit

dim oautoit, strwintext, strlasttime, lngx, lngy

set oautoit = wscript.createobject("autoitx3.control")

oautoit.winwaitactive "adobe premiere elements -"

strlasttime = "start"

do

' quit script if mousepointer put in upper left corner (0,0).
lngx = oautoit.mousegetposx
lngy = oautoit.mousegetposy
if lngx = 0 , lngy = 0
set oautoit = nothing
wscript.echo "your script has ended."
wscript.quit
end if

' read text of window can determine workspace setup.
strwintext = oautoit.wingettext("adobe premiere elements -")

' if dvd menu tab selected, don't anything, otherwise
' check if in sceneline or timeline mode.
if instr(strwintext, "dvd menu") = 0

if instr(strwintext,"edittimecontrol") <> 0
if strlasttime <> "timeline"

' reset edit workspace , adjust timeline panel height
oautoit.send "{alt}wke"
oautoit.sleep 250
oautoit.mousemove 1078, 646
oautoit.mousedown "left"
oautoit.mousemove 1078,400
oautoit.mouseup "left"
strlasttime = "timeline"
end if
else
if strlasttime <> "sceneline"
' reset edit workspace , adjust sceneline panel height.
oautoit.send "{alt}wke"
oautoit.sleep 250
oautoit.mousemove 1078, 646
oautoit.mousedown "left"
oautoit.mousemove 1078,762
oautoit.mouseup "left"
strlasttime = "sceneline"
end if
end if

end if

wscript.sleep 2000
loop

the script might work as-is if screen set 1280 x 1024 , premiere elements 3 window maximized. save script in text file .vbs extension, , run it. afterwards click on sceneline or timeline buttons in pe3. may take 2 seconds before mouse starts moving on it's own. screen coordinates ascertained using autoit info tool.



More discussions in Premiere Elements Tips & Tricks


adobe

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor