Jump to content

Easy SCTIE code bookmarks


 Share

Recommended Posts

To add a bookmark Autoit/SCTIE you have to press CTRL+F2, which those 2 keys are far away, so heres a way to do QUICK bookmarking. EXTREMELY useful.

HotKeySet("{F2}", "Bookmark")
HotKeySet("{F4}", "NexBook")

Func NexBook()
    Opt('WinTitleMatchMode', 2)
        $handle = ControlGetHandle('[CLASS:SciTEWindow]', 'S', '[TEXT:S]')
    Select
        Case $handle <> '' and WinActive('SciTE','')
            HotKeySet('{F2}');reset hotkey so you dont trigger Bookmark Function
            Send('{F2}')
            HotKeySet('{F2}', 'Bookmark')
        Case Else
            HotKeySet('{F4}')
            Send('{F4}')
            HotKeySet('{F4}', 'NexBook')
            EndSelect
EndFunc

Func Bookmark()
    Opt('WinTitleMatchMode', 2)
    $handle = ControlGetHandle('[CLASS:SciTEWindow]', 'S', '[TEXT:S]')
    Select
        Case $handle <> '' and WinActive('SciTE','')
            Send('^{F2}')
        Case Else
            HotKeySet('{F2}')
            Send('{F2}')
            HotKeySet('{F2}', 'Bookmark')
            EndSelect
EndFunc

While 1
sleep(1)
wend

F2 Creates/deletes bookmarks and F4 Jumps between them. What you do is turn this code into an exe and run it at windows startup. Takes almost 0 resources to run and its well worth it.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...