deleted my version 1.1.26 and got the new version 1.1.27 and moved everything to program files x86, put scite in the folder to extracted everythingstill dont work im getting this error and none of my scripts work anymore, pretty tired pretty frustrated, works fine after "saving as" .AHK but cant quick launch from within the editor, not really big deal but just confused why I'm having this problem, i really dont want to have to keep navigating thru program files i much rather have this stuff in documents folder

deleted my version 1.1.26 and got the new version 1.1.27 and moved everything to program files x86, put scite in the folder to extracted everythingstill dont work im getting this error and none of my scripts work anymore, pretty tired pretty frustrated, works fine after "saving as" .AHK but cant quick launch from within the editor, not really big deal but just confused why I'm having this problem, i really dont want to have to keep navigating thru program files i much rather have this stuff in documents folder

--***AutoClose Begin***dofile(props['SciteUserHome'].."/Class.lua")dofile(props['SciteUserHome'].."/Common.lua")dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")EventClass:BeginEvents()-- Start up the events (Calls onstartup()).--***AutoClose END

3) Restart SciTE

Hi Joe,

Thank you for this tip. I found out that:

The line dofile(props['SciteUserHome'].."/Common.lua") (and thus the Common.lua file) is not necessary.

As Ovg mentioned in the above post, this solution breaks the ability to add breakpoints.

Cheers!

[quote="Joe Glines"]I loved the idea and did some Googling. AutoIt had this implemented with SciTE. I just had to make a few very minor tweaks.The below code will close out: {, [, (, ", and '

Here's what you need to do to try this:1) Export these [url=http://the-automator.com/download/lua_files.zip]lua files[/url] into your SciTE home directory2) Open your UserLuaScript.lua script and add the following lines (in this order)[code]-- ***AutoClose Begin***dofile(props['SciteUserHome'].."/Class.lua") dofile(props['SciteUserHome'].."/Common.lua")dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")EventClass:BeginEvents() -- Start up the events (Calls onstartup()).-- ***AutoClose END[/code]3) Restart SciTE[/quote]Hi [b]Joe[/b],

Thank you for this tip. I found out that:[list=1][*]The line [c]dofile(props['SciteUserHome'].."/Common.lua")[/c] (and thus the [c]Common.lua[/c] file) is not necessary.[*]As [b]Ovg[/b] mentioned in the [url=https://autohotkey.com/boards/viewtopic.php?p=171326#p171326]above post[/url], this solution breaks the ability to add breakpoints.[/list]Cheers!

I was curious where this hotkey is set so I went looking and found more hotkeys by opening SciTE4AutoHotkey, selecting Options and selecting Open tillagoto.properties from the menu. There I found this section:

# Specify the hotkey you want to use to call up the GUItillagoto.hk.summon.gui=F12

# Specify the keyboard hotkey for going to the previous viewtillagoto.hk.go.back=!Left

# Specify the keyboard hotkey for going to the next viewtillagoto.hk.go.forward=!Right

# Specify the hotkey you want to use to go to a function/label on whose name the# caret is located. Similar to the middleclicking feature.tillagoto.hk.goto.def=+Enter

I played around with these hotkey and found them quite useful, especially when navigating large files. I hope others found this useful.

Cheers!

[quote="boiler"]It's built-in. Press F12.[/quote]I was curious where this hotkey is set so I went looking and found more hotkeys by opening [c]SciTE4AutoHotkey[/c], selecting [c]Options[/c] and selecting [c]Open tillagoto.properties[/c] from the menu. There I found this section:[code=autohotkey file=Untitled.ahk]#------------------------------------------------------------------------------# Hotkeys#------------------------------------------------------------------------------

# Specify the hotkey you want to use to call up the GUItillagoto.hk.summon.gui=F12

# Specify the keyboard hotkey for going to the previous viewtillagoto.hk.go.back=!Left

# Specify the keyboard hotkey for going to the next viewtillagoto.hk.go.forward=!Right

# Specify the hotkey you want to use to go to a function/label on whose name the# caret is located. Similar to the middleclicking feature.tillagoto.hk.goto.def=+Enter[/code]I played around with these hotkey and found them quite useful, especially when navigating large files. I hope others found this useful.

--***AutoClose Begin***dofile(props['SciteUserHome'].."/Class.lua")dofile(props['SciteUserHome'].."/Common.lua")dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")EventClass:BeginEvents()-- Start up the events (Calls onstartup()).--***AutoClose END

***AutoClose Begin*** is line 7, which is the line of error. Any tips what I'm doing wrong??

Edit: Fixed, thanks Joe!

[quote="Joe Glines"]I loved the idea and did some Googling. AutoIt had this implemented with SciTE. I just had to make a few very minor tweaks.The below code will close out: {, [, (, ", and '

Here's what you need to do to try this:[/quote]

Hi, I did that, and get this error: [code]C:\Users\ZCM\Documents\AutoHotkey\SciTE/UserLuaScript.lua:7: unexpected symbol near '*'>Lua: error occurred while loading startup script[/code]

--***AutoClose Begin***dofile(props['SciteUserHome'].."/Class.lua")dofile(props['SciteUserHome'].."/Common.lua")dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")EventClass:BeginEvents()-- Start up the events (Calls onstartup()).--***AutoClose END

3) Restart SciTE

Here's a short video walking through the process

I loved the idea and did some Googling. AutoIt had this implemented with SciTE. I just had to make a few very minor tweaks.The below code will close out: {, [, (, ", and '

Here's what you need to do to try this:1) Export these [url=http://the-automator.com/download/lua_files.zip]lua files[/url] into your SciTE home directory2) Open your UserLuaScript.lua script and add the following lines (in this order)[code]-- ***AutoClose Begin***dofile(props['SciteUserHome'].."/Class.lua") dofile(props['SciteUserHome'].."/Common.lua")dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")EventClass:BeginEvents() -- Start up the events (Calls onstartup()).-- ***AutoClose END[/code]3) Restart SciTE

Here's a short video walking through the process[youtube]https://www.youtube.com/watch?v=7diHtKE5guU[/youtube]

Ye, just was going to do smth like this, but this will only work if I have my main script running. Anyway thanks

[quote="HotKeyIt"][quote="mankvl"]is there a way to make S4A autoclose { and ( ?[/quote]Probably:[code]#IfWinActive ahk_class SciTEWindow~(::Send {)}{Left}#IfWinActive[/code][/quote]Ye, just was going to do smth like this, but this will only work if I have my main script running. Anyway thanks :)