Code Monkey home page Code Monkey logo

timelineclick's Introduction

Requirements

  1. Install AutoHotKey V1.1: https://www.autohotkey.com/

  2. Download this codebase:

Setup

Video setup: UPDATE THIS!!!

There are example scripts included for Davinci Resolve, Adobe After Effects, FL Studio and Cavalry.

  1. Include TimelineClick.ahk into your ahk script
#Include, %A_ScriptDir%\TimelineClick.ahk
  1. Add an #IfWinActive block to limit your function to an application. Then add your hotkey block with the TimelineClick() function inside.
;Example using FL Studio
#IfWinActive ahk_exe FL64.exe
{
    w:: ;Change hotkey to desired hotkey
    TimelineClick("\ImageSearch\FL Studio\LeftScroll.png", 30)
    return
}

3. Enter the parameters for the `TimelineClick()` function. This takes 2 or 3 parameters.

TimelineClick( images, yOffsets, hold:=true )

  1. images : The image/images filepaths to search the screen for. Filepath can be local or absolute. The sourced images should move with the timeline bar when it's resized.
    - Sourcing images: Find a section of your application's UI that moves with the timeline bar when resized. Screenshot this section with Win + Shift + S and save it where it can be referenced by your script.
  2. yOffsets : The vertical distance between the top-left corner of the located image and the vertical clickable region of the timeline.
  3. hold : OPTIONAL: If true (default), stop moving the playhead (release LMB) when the hotkey is released. If false, playhead will only be brought to the cursor position and LMB will be released immediately.

Here is an example for FL Studio:

;Example using FL Studio
#IfWinActive ahk_exe FL64.exe
{
    w::
    TimelineClick("\ImageSearch\FL Studio\LeftScroll.png", 30)
    return
}
  1. If your application has multiple timelines where you need to check for multiple images, the images and yOffsets parameters need to be given an array of values. Here's an example for resolve, which needs to check for 3 different images with 3 corresponding Y-offsets:
#IfWinActive, ahk_exe Resolve.exe
{
    w::
    TimelineClick(["EditPageTimeline.png", "FairlightClock.png",  "CutPageSplitClip.png"], [45,30,45])
    return
}

Notes

Notable features:

  • Only the screen the mouse is in will be searched for the images (not just the screen with the active window)
  • The function will remember the last position and image searched and check there before looking elsewhere.

Questions

Post an issue if you've found a bug. Otherwise I made a setup video, written documentation and commented example scripts. You should look at these. Chances are nobody will read this and they'll just post a comment on the YouTube video, which is fine.

timelineclick's People

Contributors

dumbeau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.