Jump to content

Recommended Posts

Posted (edited)

I'm no dev but I wanted to throw out a suggestion for the SciTe package.

I changed the caret line background in my user options file to this:

caret.line.back=#FFFE00

I'm able to see more syntax highlighting, such as if I have my cursor over

a ( or ) the corresponding one is highlighted. I couldn't see that with the other color.

Thanks,

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

  • Replies 155
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

I'm no dev but I wanted to throw out a suggestion for the SciTe package.

I changed the caret line background in my user options file to this:

caret.line.back=#FFFEXX

I'm able to see more syntax highlighting, such as if I have my cursor over

a ( or ) the corresponding one is highlighted. I couldn't see that with the other color.

Thanks,

Kenny

Do you means these "XX" for alpha? :)

The values must be Hexadecimals. "X" char isn't valid.

If you need highlight setting the alpha background, you can set like this:

caret.line.back.alpha=50
Posted (edited)

I didn't even pay attention lol - Blame the website and it worked so I left it at that :)

Should have been #FFFE00

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

  • Developers
Posted

Think I found the issue with the Lexer. Could you give this version a spin and let me know if that also solves it for you: http://www.autoitscript.com/autoit3/scite/...t3/SciLexer.dll

Jos

Just uploaded a new Beta for Scilexer.dll which fixes another minor lexing issue with comments folding.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

I think there is an issue with reading resources binary to coresponding structures in Wrapper.

You are reading it for examlpe to "short;short;dword" ... etc, but I think you should read them to "byte[2];byte[2];byte[4]"

This is my wild guess, but I think that you tried to add $RT_BITMAP and some other resources too, but couldn't and I believe that is the main cause. I'm having no problem including them when reading to bytes.

This is curently not obvious because you are copying from one structure to another and problem cannot be spoted.

And resource enumeration is obviously needed in order to avoid some undesired current behaviour

Sorry if I wrote something that makes no sense. :)

edit; apparently it has something to do with structure alignment :)

Edited by trancexx

♡♡♡

.

eMyvnE

Posted

Hello Jos.

I noticed that wen I have these code :

#cs ----------------------------------------------------------------------------
    
;   - AutoIt Version : 3.2.12.0
;   - Autor:         MyName
    
;   - Script Function :
;   - This is the function of the script.
    
#ce ----------------------------------------------------------------------------
and when I make a CTRL + T, the lines are modified to add tab on begin.

Is there a way that Tidy not touch the code between #cs / #ce.

Best Regards.Thierry

  • Developers
Posted (edited)

I think there is an issue with reading resources binary to coresponding structures in Wrapper.

You are reading it for examlpe to "short;short;dword" ... etc, but I think you should read them to "byte[2];byte[2];byte[4]"

This is my wild guess, but I think that you tried to add $RT_BITMAP and some other resources too, but couldn't and I believe that is the main cause. I'm having no problem including them when reading to bytes.

This is curently not obvious because you are copying from one structure to another and problem cannot be spoted.

And resource enumeration is obviously needed in order to avoid some undesired current behaviour

Sorry if I wrote something that makes no sense. :)

edit; apparently it has something to do with structure alignment :)

I know I have included some resource update Funcs in AutoIt3Wrapper, but have no idea what you are trying to tell me.

All structures definitions in there are build from definitions I found on the MSDEV site, but it could contain errors I guess.

Did you find a problem or is something not working ??????

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

Hello Jos.

I noticed that wen I have these code :

#cs ----------------------------------------------------------------------------
    
;   - AutoIt Version : 3.2.12.0
;   - Autor:         MyName
    
;   - Script Function :
;   - This is the function of the script.
    
#ce ----------------------------------------------------------------------------
and when I make a CTRL + T, the lines are modified to add tab on begin.

Is there a way that Tidy not touch the code between #cs / #ce.

There is actually already a switch for that, but when trying it again I found an issue with it.

Download the latest Beta version of Tidy and add this at the top of you script:

#Tidy_Parameters=/scb

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

Thank you for the subject

Not sure what you are up to but starting on a forum with 3 of these posts in 3 different threads isn't the greatest way to introduce yourself.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I know I have included some resource update Funcs in AutoIt3Wrapper, but have no idea what you are trying to tell me.

All structures definitions in there are build from definitions I found on the MSDEV site, but it could contain errors I guess.

Did you find a problem or is something not working ??????

Jos

No. Your structures are just fine. I'v tested them all. You're great man!

I was having problem with some other structures and wrongly thought that some parallels can be made that would indicate that your structures are maybe wrong. Thing is that structure alignment is needed to be done for some other structures that other resources require. I'm having trouble understanding why (look here).

In case of "byte[]" that is not needed, but otherwise it is :) . So "byte[]" is safe for any structure (only raises little endian problem) and other ones needs to be tested (or there is some logic that I'm failing to see - that is actually very possibe)

About enumeration.

Your wrapper is adding RT_ICON starting from name 1 (to the number of icons in icon resource). That means that original RT_ICON icons with that names are deleted and replaced with new ones. This is ok if someone want to do that but I wanted to keep the old ones and just add the new ones. Apparently that is currently not possible. Also if new icon resource has less than 12 icons, only that number of icons will be replaced, the rest will stay.

I'm aware of ResHacker but cooler is cooler.

♡♡♡

.

eMyvnE

  • Developers
Posted

Hi Jos,

I took a deeper look and now can say it's not because of the #include <SQLite.dll.au3>... the error more likley seems to result from some very bad coding practices on my side *doooh*...

I got the obfuscator to obfuscate my script to the end, though it still crashes >> after finishing obfuscating (?). If i compile the obfuscated script it runs as inteded with the exception of one ceratin function. Where the unobfuscated script runs smoothly the obfuscated script exists with an "can not redeclare a const at line -1".

As I said i fear it happens because of my bad coding practice... would you still take a look at the script?

Regards

KaFu

Took me a while to tacle this one but I have found the reason for the crash of Obfuscator with your script. You have func names longer than 40 characters which it couldn't cope with.

Uploaded a new Beta Obfuscator that will be able to handle funcname up to a lenght of 100 chars which better be enough :)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

There is actually already a switch for that, but when trying it again I found an issue with it.

Download the latest Beta version of Tidy and add this at the top of you script:

#Tidy_Parameters=/scb
Uploaded a new Beta of Tidy in which i have changed the procedure for loading the tables used in Tidy.

When it finds au3.api, it will process it and generate macros.tbl, functions.tbl and keywords.tbl after which au3.api is removed.

This means that tidy's load time is speeded up approx 2.5 secs. Only when there is a new au3.api it will take a bit longer again whioch is after loading a new AutoIt3 version.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Looks a lot like the old "Lets raise my post count" syndrome.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Posted

Took me a while to tacle this one but I have found the reason for the crash of Obfuscator with your script. You have func names longer than 40 characters which it couldn't cope with.

Uploaded a new Beta Obfuscator that will be able to handle funcname up to a lenght of 100 chars which better be enough o:)

Jos

Doh, I knew it was because of my bad coding practice :). Meanwhile I released the code with source

http://www.autoitscript.com/forum/index.php?showtopic=80747

but this will definitly help me with my other project (which I'm not planning to release as OS :)).

Thanks a lot for your time and effort...

With Best Regards

  • 3 weeks later...
  • Developers
Posted (edited)

12/20/2008: Uploaded a new SciTe4AutoIt3.exe installer with several bugfixes.

==> ScitillaHistory page containing all SciTE/Scintilla updates.

==> Visit the SciTe4AutoIt3 Download page for the latest versions

==> Check the online documentation for an overview of all extra's you get with this installer.

Enjoy,

Jos

12/20/2008
*** Updated Tidy.exe v2.0.24.4 (Jos)
    - Changed the way the Keywords and Functions tables are loaded which speeds up Tidy by a few seconds.
    - Fixed Crash when Variable definition was initialised with a long string.
    - Fixed: some reported issues with comment block indentation.
*** Updated Obfuscator.exe v1.0.25.0 (Jos)
    - internal changes and fixes.
    - Fixed reported crash when a Func name is longer than 40 characters.
*** SciLexer v1.7.7.4
    - Fixed: several reported issues with folding and Syntax Highlighting.
*** UpdateDefs v1.4.4.0
    - Fixed: Fixed the security setting when updating au3.properties causing limited Users being unable to read au3.properties.
            This would result in no syntax highlighting and tools not being available.
*** Some Helpfile updates.
Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I am having problems with the latest tidy.exe . I have v3.3.0.0 of AutoIt and the latest version of SciTE4AutoIt3. When I run tidy on the script from within SciTE4AutoIt3 the process finished in .4 secs and nothing had changed. I found a small section of code that the exe didn't seem to like so I removed it and ran tidy again and this time got 188 errors that were all related to func\endfunc (No they were not caused by the code removal)

The last tidy version I used that successfully ran on my script was 2.0.23.10 this ran with no errors or the need for code removal. I don't want to post my source on the board but I will send it to Jos or whomever is responsible for the tidy program.

Thanks

  • Developers
Posted

I am having problems with the latest tidy.exe . I have v3.3.0.0 of AutoIt and the latest version of SciTE4AutoIt3. When I run tidy on the script from within SciTE4AutoIt3 the process finished in .4 secs and nothing had changed. I found a small section of code that the exe didn't seem to like so I removed it and ran tidy again and this time got 188 errors that were all related to func\endfunc (No they were not caused by the code removal)

The last tidy version I used that successfully ran on my script was 2.0.23.10 this ran with no errors or the need for code removal. I don't want to post my source on the board but I will send it to Jos or whomever is responsible for the tidy program.

Thanks

I will have a look when you PM me the source...

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • 3 weeks later...
Posted

Hi Jos

A minor tidy issue.

Every time tidy is used, the last(eof)-trailing line break in the target file is removed. (CRLF in my case)

If I'm correct this behavior is relative new, about one or two scite4autoit versions ago.

MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...