AutoHotkey Community

It is currently May 25th, 2012, 3:18 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: April 24th, 2007, 9:58 pm 
This thread is outdated - GO TO THE v3 BETA THREAD INSTEAD
This thread is outdated - GO TO THE v3 BETA THREAD INSTEAD
This thread is outdated - GO TO THE v3 BETA THREAD INSTEAD


====

I created a modified version of SciTE for edit AutoHotkey scripts. Based on PhiLho's LexAHK, it offers:

    Syntax highlighting
    Auto Indent
    Auto Complete
    IntelliSense
    Tools for AutoHotkey scripting (SmartGUI and AU3_Spy)

Main page

Please enjoy!

-------------------------------------------------------------
Sorry my poor English
Fincs


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 10:11 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
The .mht file is an Internet Explorer archive, storing HTML and images (in Base64 encoding, so they are 30% larger!) in a Mime text file.
It is unreadable in Firefox (without special extension).

Thanks for the effort, but currently your page is not usable.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 10:15 pm 
Idem for me. I tried with Opera, Mozilla suite, Firefox and IE.
Noting to do with your page.
Please update the link to something which works.
Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 24th, 2007, 10:24 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
saperlipopette wrote:
Idem for me. I tried with [...] IE.
Actually, you can download the file and drag'n'drop it in IE, if I recall correctly...

I just tested with IE 6, it displays correctly. Interesting, although the first download link doesn't work.
If you need advice how to upload pages to a site like AutoHotkey.net, don't hesitate to ask advice here.


Note to myself: find time to update this lexer, it still has quicks that annoy me (eg. it should take anything after an identifier and = sign as a string).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 4:52 am 
You're right, PhiLho
My frist try with IE didn't succeed, I don't know why. The second was OK
So IE must be used to see the page.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 10:02 am 
Hello,
Sorry for the incompatibility of the web page, and the first download link doesn't work because the installer is no available. Download the ZIP file instead of the installer, it will be available soon.

The problem with the web page is solved :D
Try the new link:
Main Page
Or download it directly:
Download

Note: SciTE4AutoHotkey uses a modified version of SmartGUI (by Rajat) and it has a bug at put the code in SciTE. The bug will be fixed soon.

Goodbye!
--------------------------------------------------
Sorry my poor English
Fincs


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 1:31 pm 
Hello,
Installer was released. You can download it here:
Download
Please enjoy! :D

Goodbye!
-------------------------------------------
Sorry my poor English
Fincs


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 1:14 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I downloaded the ZIP file version and found it easy to unzip and begin using. The file was also smaller than expected: Only about 1 MB even though it also included Smart GUI Creator.

Nice work!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 12:27 pm 
Hello,
Updates are available - Changelog:
    Fixed bug on installer that it generates an ahk.properties file that don't let see the AutoHotkey helpfile.
    Fixed bug on SmartGUI4SciTE at putting the code on SciTE.
For download go to the SciTE4AutoHotkey webpage or download it directly.

Goodbye!
-------------------------------------------
Sorry my poor English
Fincs


Report this post
Top
  
Reply with quote  
PostPosted: May 2nd, 2007, 12:43 am 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
SciTE's code folding makes code easier to read. The present version does not syntax highlight .INI files such as AutoHotkey.ini, only .AHK files.

The alternative syntax highlighting file below uses no italic or bold fonts, and increases the intensity of strings. Save the code below with the name:
ahk.properties
and use it to replace the file in
\AutoHotKey\SciTE4AutoHotkey

Code:
# ahk.properties file replacement
# from Futurepower®.

# Uses no italic or bold fonts.
# Increases the display intensity of strings.

#_____________________________________

# SciTE settings for AutoHotkey files

# Set default AutoHotkey path

AutoHotkeyDir=$(SciteDefaultHome)\.

# General settings

file.patterns.ahk=*.ahk
filter.ahk=AutoHotkey (ahk)|$(file.patterns.ahk)|
lexer.$(file.patterns.ahk)=ahk1

# Import keywords

import ahk.keywords

# Autocomplete and call tip settings

api.$(file.patterns.ahk)=$(SciteDefaultHome)\api\ahk.api
calltip.ahk1.word.characters=#$(chars.alpha)$(chars.numeric)$(chars.accented)
calltip.ahk1.ignorecase=1
calltip.ahk1.parameters.start= ( ,
calltip.ahk1.parameters.end= )
calltip.ahk1.parameters.separator= ,
autocomplete.ahk1.ignorecase=1
autocomplete.ahk1.start.characters=$(chars.alpha)$(chars.numeric)$_@#
word.characters.$(file.patterns.ahk)=$(chars.alpha)$(chars.numeric)$(chars.accented).$_@#

# Auto Indent - this feature uses lua script

extension.$(file.patterns.ahk)=$(SciteDefaultHome)\indent.lua

# Comments functions definition

comment.block.ahk1=;~
comment.block.at.line.start.ahk1=1
comment.stream.start.ahk1=/*
comment.stream.end.ahk1=*/
comment.box.start.ahk1=/*
comment.box.end.ahk1= */

# Some fold settings

fold.at.else=1

# AutoHotkey Style

# Base (background, base font)
style.ahk1.32=

# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#C0C0C0

# Line comment (; syntax)
style.ahk1.1=fore:#008000

# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#008040

# Escape (`x)
style.ahk1.3=fore:#FF8000

# Syntax operator
style.ahk1.4=fore:#00C800

# Expression operator
style.ahk1.5=fore:#FF0000

# String
style.ahk1.6=fore:#C0C0C0

# Number
style.ahk1.7=fore:#0000FF

# Identifier (variable & function call)
style.ahk1.8=fore:#C80000

# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#F0F0FF

# Label, Hotkeys & Hotstrings (& Function definition?)
style.ahk1.10=fore:#000000,back:#FFFFD1

# Keyword - Flow of control
style.ahk1.11=fore:#0000C8

# Keyword - Commands
style.ahk1.12=fore:#0000A0

# Keyword - Functions
style.ahk1.13=fore:#0000FF

# Keyword - Directives
style.ahk1.14=fore:#008000

# Keyword - Keys & buttons
style.ahk1.15=fore:#FF00FF

# Keyword - Built-in Variables
style.ahk1.16=fore:#FF00FF

# Keyword - special parameters ("Keywords")
style.ahk1.17=$(style.ahk1.13)

# Keyword - User defined
style.ahk1.18=fore:#800020

# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#F0F0FF

# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#FFC0C0

# Command to run script (F5)

command.go.$(file.patterns.ahk)="$(AutoHotkeyDir)\AutoHotkey.exe" /ErrorStdOut "$(FileNameExt)"

# Commands to compile script (F7 & Ctrl+F7)

command.compile.*.ahk=$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe /in "$(FilePath)"
command.build.*.ahk="$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe" /in "$(FilePath)"

# Help on keywords (F1)

command.help.*.ahk=$(CurrentWord)!$(autohotkeydir)\AutoHotkey.chm
command.help.subsystem.*.ahk=4

# Active window info tool

command.name.1.*.ahk=Active Window Info
command.1.*.ahk=$(AutoHotkeyDir)\AU3_Spy.exe
command.save.before.1.*.ahk=1
command.subsystem.1.$(file.patterns.ahk)=1

# SmartGUI 4 SciTE

command.name.2.*.ahk=SmartGUI
command.2.*.ahk=$(SciteDefaultHome)\tools\SmartGUI4SciTE.exe
command.save.before.2.*.ahk=1
command.subsystem.2.$(file.patterns.ahk)=2


Last edited by Futurepower(R) on May 2nd, 2007, 3:58 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 2nd, 2007, 3:48 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
Futurepower(R) wrote:
Then open the file and search and replace all lines with
N:\AutoHotkey
to be your AutoHotkey folder.

Seeing as you have
Code:
AutoHotkeyDir=N:\AutoHotkey
would it not be better to replace references to "N:\AutoHotkey" after that with
Code:
$(AutoHotkeyDir)
?


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 2nd, 2007, 7:17 am 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
lexikos,

I am not familiar enough with SciTE editor to know whether that works.

In fact, I am not familiar enough with that editor to know with certainty that the method I posted works. However, it seems to be correct.

I have found SciTE configuration to be quirky, and there is no GUI for configuration, even after all these years.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2007, 7:42 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
The lack of GUI for config is by design: the configuration stuff is much more flexible (using var-like references, like AutoHotkeyDir or
file.patterns.ahk), but it makes it hard to correctly update by a program.
But it makes the editor hard to use and set up for newcomers, indeed.
There is a small third party GUI, covering the basis.

About your code, I see some lines ending with a 's', like style.ahk1.1 or style.ahk1.17, it might be a typo.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 2nd, 2007, 3:35 pm 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
PhiLho wrote:
About your code, I see some lines ending with a 's', like style.ahk1.1 or style.ahk1.17, it might be a typo.

Thanks, PhiLho. It was more than a typo, it was a gremlin. *grin* I was trying to work too fast. I found other mistakes, too. Weirdly, none of them seemed to affect the operation of SciTE.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2007, 3:05 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
Lol nice ahk logo picture, I made it and used it as a siggy once, good to see someone likes it. I was kind of wondering why the program found that picture on my computer on on my photobucket account and then I looked through the SciTE4Autohotkey and found it :D.

Thanks for making the SciTE stuff for autohotkey, its great and I might switch to it from PSPad occasionally when I'm dealing with unfamiliar commands or commands in which I don't remember the parameter stuff.

Note from moderator: This topic has been superseded by the new version of SciTE4AutoHotkey at http://www.autohotkey.com/forum/viewtopic.php?t=19323


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: oldbrother and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group