Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Sublime 4 Autohotkey [Updated 13/11]


  • Please log in to reply
74 replies to this topic
A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

See Github Autohotkey ST Package (not Sublime 4 Autohotkey)  here

See how to install the package http://www.autohotke...ey/#entry592146

 

v2.5

 

Sublime 4 Autohotkey is nothing but a patch to accelerate Autohotkey development using Sublime Text.
It's features are unmatched and can provide you Scite-like comfort in Sublime.

                                                                   inFpCg0.jpg

 

FEATURES

  • High quality Syntax-Highting powered by my Autohotkey package.
  • Better Auto-complete
  • Context-Senstive Help - Press F1 and you see the help page of the requested command/function
  • Excellent color scheme to suit your needs.
  • Launch Msgbox Creator,Win Spy and everything by an Integrated Launcher (A mod of LaunchQ).
    This launcher can be configured to suit all your needs as like LaunchQ.
  • This Launcher is backed by a Auto-Sync feature that adds every tool/helper script that you add to avis_sublime4autohotkey\helpers\addons directory to it.
    More details on this can be seen in the guide
  • Create New Ahk Script on the fly with the old familiar shortcut - Ctrl+N
    The feature can be very useful if you want to quick-create test scripts for testing certain codes.
  • Want to use Sublime 4 Autohotkey to run .ahk files. You can do that.
    You can use the Open With Dialog to make Sublime 4 Autohotkey.exe the default Autohotkey editor.
  • GoTo any function, label, hotkey, hostring defined in the currently editing Script file [NEW]
  • Calltips - Hit F9 (Default) to see Syntax of the underCaret command.
  • Check for Updates feature to let you know when I have created something better than this.
  • Very easy to use. Merge it in Sublime Text directory and you're all set.
  • Portable - You can confidentally move your ST package with the Su4Ahk patch installed.
  • Works with all versions of ST
  • Add right-click menu item to Sublime 4 Autohotkey.exe now

 

Guide (DONT MISS)

Site

Github

 

See Also - Sublime Text Auto Completions Adder - Easily add more custom Auto-completionsgrin.png

 

If you have Problems or anything Comment anywhere


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


fathom
  • Members
  • 13 posts
  • Last active: Apr 02 2015 04:58 PM
  • Joined: 27 Aug 2012

Wow, no comments on this!!??

 

The syntax highlighting is better than any of the other .tmlanguage's out there.  Great work!

 

I'll be trying out the other features soon.



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Good to hear,

 

As Sublimetext has gone totally shareware in its version 3.0, i will not develop it anymore.Will not be Updated.

 

I am currently working on a general AHK Helper that can work in all editors, if I can do that succesfully, I think i will update Sublime 4 Autohotkey to a newer version.

 

Enjoy !


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


nnnik
  • Members
  • 1625 posts
  • Last active: Sep 26 2015 10:58 PM
  • Joined: 28 Jul 2012

Great work grin.png .

 

But there seems to be some bug in avis_runner.exe instead of starting new.ahk it starts new.ahk.ahk wich is not the right file an its empty.

I noticed this when I added a registry entry.


Visit the new forum ahkscript.org.

http://ahkscript.org


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Hey, nnnik, looks you are on a different version of Windows than mine's.

What is your OS? 32-bit or 64-bit ? 7 or 8.

 

In fact, its my fault. I have added in avis_runner.exe a very un-reliable way to get path from explorer.

Here's your solution --

Untested

SetBatchLines, -1
#NoTrayIcon
StringGetPos, pos, A_ScriptDir, Avis_Sublime4Autohotkey,R
StringLeft, sublimedir, A_ScriptDir, %pos%
sublimedir = %sublimedir%/sublime_text.exe
path := Explorer_GetSelection()
run, %sublimedir% "%path%"
Run, "%A_ScriptDir%/autohotkey.exe" "%a_scriptdir%/Sublime4Autohotkey.ahk"
return

Explorer_GetSelection(hwnd="")
{
	hwnd := hwnd ? hwnd : WinExist("A")
	WinGetClass class, ahk_id %hwnd%
	if (class="CabinetWClass" or class="ExploreWClass" or class="Progman")
		for window in ComObjCreate("Shell.Application").Windows
			if (window.hwnd==hwnd)
    sel := window.Document.SelectedItems
	for item in sel
	ToReturn := item.path
	return ToReturn
}

 

INSTRUCTIONS::

Compile it using AHK_L Compiler and name the complied as Avis_runner.exe and then replace it with the original


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Github Autohotkey Package for Sublime Text Repository

 

Has language files, auto-completions and more..

 

Will be updated oftenly.


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


fathom
  • Members
  • 13 posts
  • Last active: Apr 02 2015 04:58 PM
  • Joined: 27 Aug 2012

Excellent, was just going to ask if it was going to go up on GitHub.



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Github Package for Sublime-Text - Updated

 

Added:

 

Better Language files and Syntax - Highlighting

A beautiful color-scheme.


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


StepO
  • Members
  • 195 posts
  • Last active: Mar 06 2014 05:02 PM
  • Joined: 05 Sep 2011

Thank you for this!


Feel free to correct me when you spot any mistakes. Please?


CodeEater
  • Members
  • 83 posts
  • Last active: Jun 06 2013 03:42 PM
  • Joined: 17 Jun 2012

Wonderful Editor!

Thanks for sharing!



CodeEater
  • Members
  • 83 posts
  • Last active: Jun 06 2013 03:42 PM
  • Joined: 17 Jun 2012

I've just made a test and found a bug in auto-complete

Loop command and other with have `n are not recognized.



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Hey, are you using Sublime 4 Autohotkey OR the Sublime Text Autohotkey package.

If you are using the former, let me tell you its not updated. You will have to manually merge its package with the Github package.

 

Yes, I saw there was a problem in Loop . I have corrected it now and removed the `n part from it . It should look better now.

 

So, Yes as a formal announcement GitHub Package has been updated

  • Corrected and enhanced completions for Loop and Msgbox commands

Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


CodeEater
  • Members
  • 83 posts
  • Last active: Jun 06 2013 03:42 PM
  • Joined: 17 Jun 2012

It's been fixed!

Thanks!



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

You're  welcome !grin.png


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

The Github Package has been renamed a/c the demand by Package Control and so the link has has been updated.

 

New Link

https://github.com/Avi-Aryan/AhK

https://github.com/Avi-Aryan/AhK

Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan