Jump to content
Sign in to follow this  
TouchOdeath

Easy SCTIE code bookmarks

Recommended Posts

TouchOdeath

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
oMBRa

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.