AutoHotkey Community

It is currently May 27th, 2012, 8:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: January 21st, 2012, 4:11 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
0.200.110
-Fixed an issue with the individual font styles not coming up.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2012, 7:11 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
I know it has been a while since my last update, but between working on my GUI Creator and updating this program I have been going crazy. Anyway, there is a new version of the SciLexer.dll posted at Here. It speeds up everything (but you will lose folding until I get the newest version posted) but I am sure that it is just barely functional and most people do not use it anyway. I have plans for that too. Thanks for trying the script. The beta versions can be downloaded here EXE Version.
I have not included the ahk version just yet...the code is way too messy *even for me*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2012, 5:32 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
Works marvelously, there's a noticable speed increase when lexing a lot of text at once. Hope you get folding working soon.

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 9:56 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Beta version of the new code is available. Not a whole lot is working but you will be able to see the direction it is going in.

New feature:
-Code Explorer: Shows you all of your functions, Blocks, and Hotkeys (refresh button when you load new code or enter new code to get the latest information)
-Auto indent speed increase!
-Large file speed increase!

Missing features:
-far too many to list :(

I hope to have all of the features back in soon and have everything working properly but for the moment this is what I have. I had to re-code everything from pretty much scratch so that's why it has been taking me so long. I hope you like it.

As always comments and suggestions are always welcome.

Alpha Version

This is my last update for the night.

Folding is working, but it is not remembered yet. I need to figure out how to get it to remember folds. but you can click on the fold markers and have it fold. If the fold markers are not available either hit enter somewhere or goto edit/fix indent. Either will bring them up. I will have that working properly soon as well.

O.K. I guess I was wrong.

Folding is now working and remembered until you close the program. I will be updating that to save the information between runs later, but I have to write a new code for that and I have to make a new XML structure to keep it all in place. Please be patient. Thanks again :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 4:58 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
Feature suggestion: show classes and class methods in code explorer.

Looking good :).

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 7:09 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Uberi wrote:
Feature suggestion: show classes and class methods in code explorer.

Looking good :).


Thanks Uberi :) Update:

Classes and class methods? I am not exactly sure what those are...sorry. If you could give me an example I will try to include it.

Untitled files are actually working now :( sorry about that.
Latest version
same link as above :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 3:25 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
Like this, for example:

Code:
class CLASSNAME
{
    METHOD(PARAMETERS)
    {
        BODY
    }
}


Class syntax was added to AHK_L in the 1.1.x.x series.

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 4:02 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Uberi wrote:
Like this, for example:

Code:
class CLASSNAME
{
    METHOD(PARAMETERS)
    {
        BODY
    }
}


Class syntax was added to AHK_L in the 1.1.x.x series.


Oh....that looks like it'll be a fun one. Any ideas on how to parse that out? The functions, blocks, and hotkeys are simple because they are all on one line...hmm. I may have to rely on help for that one. I just got the XML system working but I have yet to get it right.
Code:
#SingleInstance,Force
msgbox This script will take an Ini file and create an XML from the data.
FileSelectFile,filename,,,Choose an Ini file,(*.ini)
SplitPath,filename,,,,name
IniRead,sections,%filename%
xmlDoc:=ComObjCreate("MSXML2.DOMDocument")
root:=xmlDoc.documentElement
if !(root){
 root:=xmldoc.createElement(name)
 Loop,Parse,sections,`n,`r`n
 {
  Section:=RegExReplace(RegExReplace(A_LoopField,"A)(.*[0-9])(.*)","$2$1")," ","_")
  xml:=xmldoc.createElement(section)
  IniRead,key,%filename%,%A_LoopField%
  Loop,Parse,key,`n
  {
   RegExMatch(A_LoopField,"(.*)=(.*)",value)
   xmlsub:=xmlDoc.createElement(section)
   xmlsub.setAttribute("Con_" value1,value2)
   ;xmlsub.setAttribute("Value",value2)
   xml.appendchild(xmlsub)
  }
  root.appendchild(xml)
 }
 xmlDoc.appendchild(root)
}
xsl:=style()
xmldoc.transformNodeToObject(xsl,xmldoc)   ;Apply the Style Sheet
xmldoc.save(name ".xml")
Run,%name%.xml
style(){
 xsl := ComObjCreate("MSXML2.DOMDocument")
 style =
 (
 <!-- Extracted from: http://www.dpawson.co.uk/xsl/sect2/pretty.html (v2) -->
 <!-- Cdata info from: http://www.altova.com/forum/default.aspx?g=posts&t=1000002342 -->
 <!-- Modified By RaptorX -->
 <!-- Further Modified by Maestrith -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
 <xsl:param name="param1"/>
 <xsl:template match="*">
 <xsl:copy>
 <xsl:copy-of select="@*" />
 <xsl:apply-templates />
 </xsl:copy>
 </xsl:template>
 <xsl:template match="*" mode="edit">
 <xsl:copy/>
 </xsl:template>
 <xsl:template match="*" mode="view">
 <xsl:copy/>
 </xsl:template>
 </xsl:stylesheet>
 )
 xsl.loadXML(style), style:=null
 return xsl
}

this is the example I have so far for converting an INI file to an xml. It works pretty well but I have to write in a bunch of parsing for fonts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 5:00 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
The hard thing here would probably be nested classes - you might want to try a TreeView control for that - as well as extended classes:

Code:
class x extends y
{
    ;class stuff here...
}


Edit: I remember you mentioned something about an AHK lexer? If that becomes possible I can have a try at parsing classes with it.

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 12:22 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Uberi wrote:
The hard thing here would probably be nested classes - you might want to try a TreeView control for that - as well as extended classes:

Code:
class x extends y
{
    ;class stuff here...
}


Edit: I remember you mentioned something about an AHK lexer? If that becomes possible I can have a try at parsing classes with it.

Here is the lexer if you want to take a look at it.

I do have a lexer, but i do not know how I would go about setting it up to handle that.

I have added a couple new features and cleaned up the code a bit. I started using XML internally to organize the files and I have also figured out a quick way to load all of the file information.

Latest:
-Speed improvement, and slightly better memory management.
-Faster searches.
-More reliable file saving and updating.
-Removed exe and dll files from the backups to help save space.
-Matched bracket creation
-Creation of Segments
-Removal of Segments-Still has a bug if it is the last segment...will get that sorted at some point.
-New file creation is working properly (untitled file still has bugs)
-Closing files still has a bug.

Major bugs:
-Tab bar is gone for the moment. I will get it back in there as soon as I can. With the new file system I have yet to figure out a good way to implement it.
Latest build


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 9:07 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Finally got this working.

Code:
Function(variables){
 { <-----Placing a brace here
  msgbox do something here
  if (something){
   msgbox something else
  }
 } <-----Will automatically put a brace here.
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 10:03 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
Wow, impressive!

I like the intelligent brace matching feature, but with my coding style it is not always the most efficient way. Is there a way to have it put the closing brace immediately after the opening one?

And something else to consider would be debugging support, it wouldn't be too simple, I think, but enormously worth it.

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 10:15 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Uberi wrote:
Wow, impressive!

I like the intelligent brace matching feature, but with my coding style it is not always the most efficient way. Is there a way to have it put the closing brace immediately after the opening one?

And something else to consider would be debugging support, it wouldn't be too simple, I think, but enormously worth it.


What, and make all that sophistication out of it? ;) sure. I can give that a go. What about the ()'s? do those work properly?

Update:
-Added:Option, Simple Brace. Just make sure you turn off Create Matching Brace (Uberi)
-Re-Added Replacement text. Edit/Edit Replacements

Update: 2/7/2011 11:56 EST
-Change the background, Line numbers background, and Wrap indicator colors.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 7:59 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Latest

Latest:

-Updated so that the main GUI should be formatted properly without having to resize it.

-Misc bug fixes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 8:42 pm 
Offline
User avatar

Joined: August 23rd, 2010, 6:22 pm
Posts: 781
Location: Ontario, Canada
It doesn't seem like the first post has been updated. I can't seem to find the script version.

_________________
AutoHotkey.net | GitHub

My default license.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: AndyJenk, Bing [Bot], Google Feedfetcher, Stigg, Yahoo [Bot] and 9 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