oompah Posted March 7, 2004 Share Posted March 7, 2004 Few AutoIters use NoteTab, seemingly. But if there is anyone who has juicy clips suitable for an Au3 clip library that he/she would like to share, they would be gratefully received. For myself, I like to have a Project section at the top of the clipbook, and a Run command at the top of that. H=";Project" H="Run" ; Runs the selected AutoIt code or, if nothing is selected, ; runs the entire script (i.e., the current document). ; Requires correct .au3 file association, as when Au3 ; was installed by the Au3 installer. Author: MarkB. ^!IfTrue ^$IsEmpty("^$GetSelection$")$ Next Else RunSelection ^!If ^$GetExt("^$GetDocName$")$ = ".au3" ^!Shell "^**" ^!Goto Exit :RunSelection ^!Set %filename%="^$GetTmpPath$runselection.au3" ; Create a file or replace an existing file ^!TextToFile ^%filename% ^$GetSelection$ ^!Delay 5 ^!Shell "^%filename%" ^!Delay 5 ^!DeleteFile "^%filename%" And a Help section is ... helpful. H=";Help" H="Contents" ; Open AutoIt v3 Help or bring it to the front. ; Alt+C selects the Contents tab. ^!Help "C:\Program Files\AutoIt3\AutoIt.chm" ^!Keyboard ALT+c H="Help on current word" ; Place the cursor in a word, then run this clip to go to ; the matching topic in AutoIt Help. ; For @-macros: because ^$GetWord$ doesn't pick up the @ in ; macro names, you'll have to SELECT macro names rather than ; merely place the cursor. Author: MarkB ; ^!Set %word%=^$GetSelection$ ^!IfTrue ^$IsEmpty(^%word%)$ ^!Set %word%=^$GetWord$ ^!IfTrue ^$IsEmpty(^%word%)$ HelpCurPrompt ^!Help "C:\Program Files\AutoIt3\AutoIt.chm" ^%word% ^!Keyboard ENTER ^!Goto End :HelpCurPrompt ^!Prompt Place the cursor in a word or select some text, then run this clip to go to the matching topic in AutoIt Help. H="Web..." ;_______[ BEGIN LONG LINE BELOW ]_______ ^!Url ^?[==Home^=http://www.hiddensoft.com/autoit3/|Forum^=http://www.hiddensoft.com/forum/|List - Messages^=http://groups.yahoo.com/group/AutoItList/messages|MSDN^=http://msdn.microsoft.com/] ;_______[ END LONG LINE ]_______ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now