Sign in to follow this  
Followers 0
TouchOdeath

Easy SCTIE code bookmarks

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



I think this will be the script of the year, it is so hard to press ctrl+F2

Share this post


Link to post
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
Sign in to follow this  
Followers 0