Code: Select all
Put(putType,item,itemType)
{
FaToEng()
; This Function Select The Project panel and select file (item) and Put in timeline
Coordmode, Pixel, Window
Coordmode, Mouse, Window
BlockInput, MouseMove
BlockInput, SendAndMouse
BlockInput, On
MouseGetPos xPosCursor, yPosCursor
Global TimelineX
Global TimelineY
ImageSearch, FoundX, FoundY, TimelineX, TimelineY, TimelineX+400, TimelineY+500, %A_WorkingDir%\Nest Source Sequnce OFF.png
if ErrorLevel = 0
{
MouseMove, FoundX+10, FoundY+10, 0
Click
}
Global ProjectX
Global ProjectY
Global Track
prFocus("Project")
Send,^!d
Send, ^\
Send, +{BS}
Sleep, 10
Send, %item%
Sleep, 5
Loop
{
If (A_index > 10)
Break
ImageSearch, FoundX, FoundY, ProjectX, ProjectY, ProjectX+300, ProjectY+300, %A_WorkingDir%\%item%.png
if ErrorLevel = 1
ImageSearch, FoundX, FoundY, ProjectX, ProjectY, ProjectX+300,ProjectY+800, %A_WorkingDir%\%Item%.png
if ErrorLevel = 0
{
MouseMove, FoundX+15, FoundY+15, 0
Click Left
Sleep,10
If InStr(putType,"Overwrite")
{
If InStr(Item,"Tran")
TimeChanger("-7")
GoSub inja
; GoSub CtrlGet
Send,^/
}
If InStr(putType,"insertt")
{
Send,!{NumpadEnter}
Send,^+/
}
; If InStr(item,"Zoom In Ease")
; TimeChanger(-70)
; If InStr(item,"Zoom Out Ease")
; TimeChanger(-60)
Break
}
}
PutEnding:
MouseMove, xPosCursor, yPosCursor, 0
Blockinput, MouseMoveOff
BlockInput, off
inja:
Settimer, CtrlGet, 250
Gui,Add,Edit,x5 w90 vTrack
Gui, +AlwaysOnTop -Caption
Gui,Show,w100 h35
Return
CtrlGet:
GuiControlGet, txtVar,, Track
If (txtVar ="1")
{
Settimer, CtrlGet, off
gui, Destroy
Sleep,100
If InStr(itemType,"V")
Send,^1
If InStr(itemType,"A")
Send,^7
}
If (txtVar ="2")
{
Settimer, CtrlGet, off
gui, Destroy
If InStr(itemType,"V")
Send,^2
If InStr(itemType,"A")
Send,^8
}
If (txtVar ="3")
{
Settimer, CtrlGet, off
gui, Destroy
If InStr(itemType,"V")
Send,^3
If InStr(itemType,"A")
Send,^9
}
If (txtVar ="4")
{
Settimer, CtrlGet, off
gui, Destroy
If InStr(itemType,"V")
Send,^4
If InStr(itemType,"A")
Send,^10
}
If (txtVar ="5")
{
Settimer, CtrlGet, off
gui, Destroy
Send,^5
}
If (txtVar ="6")
{
Settimer, CtrlGet, off
gui, Destroy
Send,^6
}
Return
}
Code: Select all
---------------------------
Keyboard Assignments.ahk
---------------------------
Error in #include file "T:\AHK\Premier Functions.Ahk":
The same variable cannot be used for more than one control.
Specifically: vTrack
Line#
403: Break
404: }
405: }
409: MouseMove,xPosCursor,yPosCursor,0
410: BlockInput,MouseMoveOff
411: BlockInput,off
414: SetTimer,CtrlGet,250
---> 415: Gui,Add,Edit,x5 w90 vTrack
416: Gui,+AlwaysOnTop -Caption
417: Gui,Show,w100 h35
418: Return
421: GuiControlGet,txtVar,,Track
422: if (txtVar ="1")
423: {
424: SetTimer,CtrlGet,off
The current thread will exit.
---------------------------
OK
---------------------------