kurtz Posted February 9, 2015 Share Posted February 9, 2015 (edited) I initially installed AHK and SciTE4AHK. Subsequently, after discovering AutoIt, I installed AutoIt3 and the full version of SciTE. Seems I can not run SciTE4AHK and SciTE simultaneously. What's the best way to work with both au3 and ahk scripts? I saved the ahk properties to the SciTEProperties file and included the following line in the Import section of the SciTEGlobal.properties file: import propertiesahk But I'm still not getting the 'intellisense' (where the editor presents a dropdown list of commands as you type a partial command) when editing AutoHotKey scripts. I'm also not seeing AutoHotKey listed under the Language menu in SciTE. I noticed that the SciTE4AHK directory includes ahk.api and ahk2.api. I suppose I need to incorporate these into SciTE? How would I do so? Edited February 9, 2015 by kurtz Link to comment Share on other sites More sharing options...
Michiel Posted February 9, 2015 Share Posted February 9, 2015 Don't take my word for it, because I'm not the maintainer or the expert on this, but it seems to me you won't be able to use AutoIt's custom SciTE for AHK without a lot of fiddling. I think at this point your best bet would be to find out where and how the two versions are biting each other and how you can avoid that happening. Wild suggestion: have you tried using a 32 bit version for one and a 64 bit version for the other? WOW64 might solve the problem for you then? Link to comment Share on other sites More sharing options...
Solution AdmiralAlkex Posted February 9, 2015 Solution Share Posted February 9, 2015 @OP Hi and Welcome to the forum! I don't know what would be easiest, getting one language to run in the others SciTE, or run both, but why can you not run both simultaneously? You might need to set check.if.already.open=0 in the user settings file, did you try that? (In SciTE, Options > Open User Options File). @Michiel There is a 64 bit SciTE? kurtz 1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
orbs Posted February 9, 2015 Share Posted February 9, 2015 (edited) perhaps this question is more suited to the SciTE forum. how about - not tested - installing each SciTE in a different folder? EDIT: SciTE4AutoHotkey default install folder is "C:Program FilesAutoHotkeySciTE" - quite different than AutoIt install folder. please check that you indeed have installed both versions in different folders. EDIT: i just installed SciTE4AutoHotkey at default folder. except the .ahk association (which probably requires reboot, but i did manually) i see no issues. my .ahk and .au3 scripts open and execute in their corresponding SciTE versions. Edited February 9, 2015 by orbs kurtz 1 Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Michiel Posted February 9, 2015 Share Posted February 9, 2015 @Michiel There is a 64 bit SciTE? I guess that's why one shouldn't take my word for it... Sorry 'bout that. Had hoped there was. Link to comment Share on other sites More sharing options...
TheSaint Posted February 9, 2015 Share Posted February 9, 2015 (edited) I've never used AutoHotkey, but I have heard it talked about here on a few occasions, and it is my understanding it is an off-shoot and poor man's version of AutoIt. It also has a bad reputation as a place and tool for Botters too, with it's creations often being flagged by Anti-Virus programs as viruses and the like. Gaming Sites don't like it much either. My advice, is just stick to AutoIt, and don't make your life unnecessarily complicated. If AutoIt doesn't fulfill your needs, then migrate on to higher level programming, like C++ etc, and don't waste your time with AutoHotKey. Edited February 9, 2015 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
orbs Posted February 9, 2015 Share Posted February 9, 2015 just like any other tool, AHK (and AutoIt, of course) can also be used for better or for worse. AHK does fall incredibly short when compared to AutoIt, but occasionally it does have its benefits, and i used it for example to solve >this. so to not be judgmental, there may be good reasons why AutoIt and AHK coexistence is beneficial. Mobius 1 Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
TheSaint Posted February 9, 2015 Share Posted February 9, 2015 No denying how something can be used, but there is a difference on what is acceptable behavior, and the conscious control of such. You get that here, with our Rules, etc. Not many responses to your topic, and I would be very surprised if you could not achieve your aim with AutoIt somehow. Perhaps it falls too close to key-logging to gain easy help. I'm struggling to see the beneficial co-existence angle, but each to their own. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
kurtz Posted February 9, 2015 Author Share Posted February 9, 2015 (edited) @OPHi and Welcome to the forum!Thanks! I don't know what would be easiest, getting one language to run in the others SciTE, or run both, but why can you not run both simultaneously?If one instance of SciTE is running, clicking on the other version does not launch a new instance. You might need to set check.if.already.open=0 in the user settings file, did you try that? (In SciTE, Options > Open User Options File).My user options file is empty. Just add "check.if.already.open=0" and save?Edit: Tried this, and it seems to have done the trick. Can open both SciTE and SciTE4AHK. Thanks! how about - not tested - installing each SciTE in a different folder? EDIT: SciTE4AutoHotkey default install folder is "C:Program FilesAutoHotkeySciTE" - quite different than AutoIt install folder. please check that you indeed have installed both versions in different folders. EDIT: i just installed SciTE4AutoHotkey at default folder. except the .ahk association (which probably requires reboot, but i did manually) i see no issues. my .ahk and .au3 scripts open and execute in their corresponding SciTE versions.Yes, they are installed in different folders:SciTE4AutoHotkey: C:Program FilesAutoHotkeySciTESciTE: C:Program Files (x86)AutoIt3SciTE Do you have check.if.already.open=0 in the user options file? My advice, is just stick to AutoIt, and don't make your life unnecessarily complicated.If I had known about AutoIt at the time I found AutoHotKey, I'd have never bothered with AutoHotKey, as I find (so far) AutoIt's syntax to be more intuitive. AutoHotKey syntax seems very quirky.Anyway, I have some AutoHotKey scripts that I'll transition over time to AutoIt, and I'll be writing all my new scripts in AutoIt (to the extent that AutoIt can do everything I want, there's no need for me to write new scripts in AutoHotKey). Being able to run both versions of SciTE or have one version of SciTE that has full features for both languages will be useful for this transition period. Edited February 9, 2015 by kurtz Link to comment Share on other sites More sharing options...
Developers Jos Posted February 9, 2015 Developers Share Posted February 9, 2015 I am not familiar with the AHK Scite implementation, but the only way I can see this work from a SciTE4AutoIt3 point of view is: Use the SciTE4AutoIt3 installer and copy the configs from AHK to the the appropriate directories: C:Program Files (x86)AutoIt3SciTEAPI C:Program Files (x86)AutoIt3SciTEProperties %localappdata%AutoIt v3SciTE which is the Set as the directory to put the user info in for SciTE. Use the portable version of SciTE4AutoIt3 which doesn't use any environment variable and looks for user files in the SciTE root directory. Again, You have to find out what AHK SciTE has for customising, but the SciTE version I maintain has a much more up-to-date au3lexer and several small other changes. Jos kurtz 1 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now