AutoHotkey Community

It is currently May 27th, 2012, 4:19 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 155 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next
Author Message
PostPosted: February 15th, 2010, 6:20 pm 
Love the editor, but I'm having a problem.

I have another application that uses the shortcut Ctrl+7, but whenever SciTE is running, this shortcut fails to work. If I close SciTE, it works fine.

The problem seems to apply to Ctrl+1 through Ctrl+7.

It seems like SciTE is swallowing up those keys.

These keys seem to be bound to various tools in SciTE, but I can't find where to disable them. Not sure if that would fix my problem anyway.

The problem doesn't stop Autohotkey from receiving the shortcut, only other applications (or at least the one I'm using). For example, I have defined the following script:

Code:
$^7::
send ^7
msgbox test
return


The message box appears, but the send command still does not trigger the associated function in my app.


Report this post
Top
  
Reply with quote  
 Post subject: thanks!
PostPosted: February 19th, 2010, 9:54 pm 
Offline

Joined: August 8th, 2009, 2:25 am
Posts: 14
Guys, thank you very much for an awesome editor!
I use it a lot :)

Btw, do you plan to add some features from Notepad++? I mean, many text-editor things are a bit more convenient there (for example, working with vertical selection blocks).
One more question - maybe i'm dumb, but i couldn't make SciTE4AutoHotkey v2 to remember my settings (e.g. uncheck Warp - it always checks it back)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 21st, 2010, 4:34 am 
CrazyCake wrote:
Love the editor, but I'm having a problem.

I have another application that uses the shortcut Ctrl+7, but whenever SciTE is running, this shortcut fails to work. If I close SciTE, it works fine.

The problem seems to apply to Ctrl+1 through Ctrl+7.

It seems like SciTE is swallowing up those keys.

These keys seem to be bound to various tools in SciTE, but I can't find where to disable them. Not sure if that would fix my problem anyway.

The problem doesn't stop Autohotkey from receiving the shortcut, only other applications (or at least the one I'm using). For example, I have defined the following script:

Code:
$^7::
send ^7
msgbox test
return


The message box appears, but the send command still does not trigger the associated function in my app.

control plus one of the following: 0,1,2,3,4,5,6,7,8,9
works fine for me....


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 10:56 am 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
The Ctrl+NN issue has been fixed in the development build :)

@stansult: SciTE uses configuration files (*.properties) instead of a GUI, so you have to edit the following line of AutoHotkey\SciTE\SciTEGlobal.properties:
Code:
# Wrapping of long lines
wrap=0
wrap.style=1
cache.layout=3
output.wrap=1
output.cache.layout=3
wrap.visual.flags=3
wrap.visual.flags.location=0
wrap.visual.startindent=4

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 21st, 2010, 4:32 pm 
Dear creator of SciTEA4AutoHotKey

Thank you for the program. However, I am having trouble configuring it. What most vexes me is my inability to disable the autocomplete. (I want to be able to type without a box constarly popping up!) Please advise. Thanks.

PS: This post should appear as written by user 'nj@uk'. But I can't get the board to work properly. .


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 4:44 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
You have to edit SciTE\ahk.properties in a similar fashion:
Code:
# Autocomplete and calltip settings
api.$(file.patterns.ahk)=
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)$(chars.accented)$_@#
word.characters.$(file.patterns.ahk)=$(chars.alpha)$(chars.numeric)$(chars.accented)$_@#

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 5:23 pm 
Offline

Joined: May 14th, 2009, 12:43 pm
Posts: 57
Location: UK
Hi.

Is there anyway to get SciTE4AutoHotkey to autocomplete with user created functions?

i.e. If I create a function Multiply(), have that appear in the autocomplete box that appears for normal ahk commands?


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 22nd, 2010, 2:25 am 
Dear 'fincs'

That worked. Thank you. I would never have worked that out on my own.

Cheers

Nick


Report this post
Top
  
Reply with quote  
 Post subject: Lua & AHK
PostPosted: March 8th, 2010, 5:15 pm 
Offline

Joined: July 5th, 2007, 6:30 pm
Posts: 65
Location: www.newfreethinker.com
Lua & AHK

Anyone know how to get this working? Step by Step?

I went to the properites, added what I thought I needed and no go.

Is there a doc out there? Ty


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 3:33 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Well, if you already have a working copy of AutoHotkey, why do you need Lua?
Maybe you are referring to the bundled AutoHotkey SciTE Lua script. If so, what exactly is your problem?

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 5:29 pm 
Offline

Joined: February 14th, 2008, 10:07 pm
Posts: 72
Location: Santa Clara, CA
fincs,

You are probably getting tired of hearing how awesome of an editor this is... but here it is again... this editor is awesome. BEST ONE I HAVE EVER USED!!!

Couple of questions:

1)Do you have some other documentation besides what is provided in SciTE.chm? It would be really nice not to have to read through 9 forum pages to see if my question has already been posted. It would also prevent you from having to answer the same questions multiple times.

2)Notepad++ has a couple of features that I would love in SciTEAutoHotkey:
a)In Notepad++, when you double click on a word it highlights all of the same words in the entire file (they call it Smart Highlighting). Can SciTEAutoHotkey do this?
b)In Notepad++, they have a way of specifying a custom fold parameter. Can SciTEAutoHotkey do this?

3)I read through all 9 pages and I didn't see if it was possible to add syntax for other languages.

4)Sometimes I want to be able to look at 2 different scripts side-by-side. Is this possible? If not, then, is it possible to make a second installation of SciTEAHK and have both run simultaneously (so that I can put them side-by-side)?

Thanks again!
aobrien


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2010, 11:56 am 
Offline

Joined: March 20th, 2010, 9:49 am
Posts: 224
nice `n neat

just wanted to say this:
in the save as dialog for a new script, plz add "AutoHotKey Script (*.ahk)"

because each time i save a script i get the extension wrong and the syntax is not highlighted because of the wrong filetype

:lol: anyway, its a great contribution to AUTOHOTKEY :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2010, 4:50 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
aobrien wrote:
1)Do you have some other documentation besides what is provided in SciTE.chm? It would be really nice not to have to read through 9 forum pages to see if my question has already been posted. It would also prevent you from having to answer the same questions multiple times.

Yes, there is: http://www.scintilla.org/SciTEDoc.html

aobrien wrote:
2)Notepad++ has a couple of features that I would love in SciTEAutoHotkey:
a)In Notepad++, when you double click on a word it highlights all of the same words in the entire file (they call it Smart Highlighting). Can SciTEAutoHotkey do this?

I think SciTE doesn't have that feature.

aobrien wrote:
b)In Notepad++, they have a way of specifying a custom fold parameter. Can SciTEAutoHotkey do this?

You mean the folding symbols at the left? Sure, just edit this portion of the SciTEGlobal.properties:
Code:
# Folding
# enable folding, and show lines below when collapsed.
fold=1
fold.compact=0
fold.flags=16
fold.symbols=put a number here, refer to the docs above
fold.on.open=0
fold.comment=1


aobrien wrote:
3)I read through all 9 pages and I didn't see if it was possible to add syntax for other languages.

The custom SciLexer.dll only has the AutoHotkey lexer. Due to the demand, SciTE4AHK v2.1 will readd the missing lexers.

aobrien wrote:
4)Sometimes I want to be able to look at 2 different scripts side-by-side. Is this possible? If not, then, is it possible to make a second installation of SciTEAHK and have both run simultaneously (so that I can put them side-by-side)?

This is not what you might have asked, but you can open both scripts and use the tabs at the top.

aobrien wrote:
Thanks again!
aobrien

No, thanks to you :)

UMAR wrote:
in the save as dialog for a new script, plz add "AutoHotKey Script (*.ahk)"

SciTE doesn't seem to allow this. Anyway I'll add another hack to SciTE because this seems like a sensible feature.

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 4th, 2010, 7:01 pm 
The installer sets the path to %ahkInstallationDirectory%\compiler
But compile_ahk is installed to the root of the ahk installation directory this causes the compile button in scite and the compile with compile_ahk II context menu item to fail.


Report this post
Top
  
Reply with quote  
PostPosted: April 4th, 2010, 8:35 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Anonymous wrote:
The installer sets the path to %ahkInstallationDirectory%\compiler
But compile_ahk is installed to the root of the ahk installation directory this causes the compile button in scite and the compile with compile_ahk II context menu item to fail.


Whoops, thanks for reporting the bug.

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


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.  [ 155 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], Stigg 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