Sign in to follow this  
Followers 0
enaiman

Add buttons to SciTE

1 post in this topic

I'm sure anyone can make this very easy, however it took me like 30 mins to get it working so if this script will save some1 30 minutes worth of work its "mission" will be accomplished :whistle:

I couldn't find any other way to identify SciTE title (only SciTE didn't work)

I've compiled this into an exe which is running always and this way I have a couple of handy buttons always available (one is assigned to a text log, another to an ini file, another to a drive ... and so on)

Anyway ... here is it:

#include <ANYGUIv2.8.au3>
#include <GUIConstants.au3>; 
Opt("WinTitleMatchMode", 2)

$target = _GuiTarget("- SciTE", "", "", 352)
$Button1 = _TargetaddButton("Button1", 940, 1, 80, 20,-1, -1, $target)
GUISetState()
$Button2 = _TargetaddButton("Button2", 1020, 1, 80, 20,-1, -1, $target)
GUISetState()
$Button3 = _TargetaddButton("Button3", 1100, 1, 80, 20,-1, -1, $target)
GUISetState();
$Button4 = _TargetaddButton("Button4", 1180, 1, 80, 20,-1, -1, $target)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $Button1[0]
            ;action for Button1
        Case $msg = $Button2[0]
            ;action for Button2
        Case $msg = $Button3[0]
            ;action for Button3
        Case $msg = $Button4[0]
            ;action for Button4
        Case Not WinExists($target)
            Exit
    EndSelect
WEnd
1 person likes this

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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