Scintilla controls: SciLexer.dll x64/x32

Get help with using AutoHotkey and its commands and hotkeys
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Scintilla controls: SciLexer.dll x64/x32

21 Dec 2017, 08:01

[SciLexer.dll download links:]
Scintilla controls: SciLexer.dll x64/x32 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 87#p189887

==================================================

[original title: are Scintilla controls x32 only?]
- I have a script where I create multiple controls (a 'control zoo'). It works fine with AHK x32 but when I run it with AHK x64, I get an error when trying to create a Scintilla control.
- I believe that the version of SciLexer.dll available to download from scintilla.org, is x32 only. Is there an x64 version? Is it possible to create x64 Scintilla controls? I noticed that Notepad++, that uses Scintilla controls, has an x64 version.
- Thanks for reading.

Links:
control zoo (AHK v1.1) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=30652
Download Scintilla and SciTE
http://www.scintilla.org/SciTEDownload.html
GUI Control Types
https://autohotkey.com/docs/commands/Gu ... htm#Custom
Last edited by jeeswg on 21 Dec 2017, 13:47, edited 1 time in total.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: are Scintilla controls x32 only?

21 Dec 2017, 08:12

- OK, I copied the version of SciLexer.dll from Notepad++ x64 and it worked with AHK x64. So the question is, where is the official place to download the x64 version of SciLexer.dll.
- [EDIT:] This Notepad++ link mentions Scintilla and x64:
Release a pure 64bit binary for windows · Issue #162 · notepad-plus-plus/notepad-plus-plus · GitHub
https://github.com/notepad-plus-plus/no ... issues/162
- [EDIT:] Perhaps you're supposed to create a SciLexer.dll x64 version direct from the source code?
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
Delta Pythagorean
Posts: 573
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: are Scintilla controls x32 only?

21 Dec 2017, 10:38

My best guess is that Scintilla was meant for 32 based off of its functions/part size, but I'm not fully sure. I'm sure someone has a copy that's 64 bit but I wouldn't know and I would like a copy myself.

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.19041
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Tophat Cat // Delta#8888

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: are Scintilla controls x32 only?

21 Dec 2017, 11:03

Download links for the x32 and x64 versions of SciLexer.dll.

[SciLexer.dll (x32): A full download (1550K)]
Download Scintilla and SciTE
http://www.scintilla.org/SciTEDownload.html

[SciLexer.dll (x64): Notepad++ zip package 64-bit x64]
Notepad++ v7.5.3 - Current Version
https://notepad-plus-plus.org/download/v7.5.3.html
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
Alguimist
Posts: 373
Joined: 05 Oct 2015, 16:41
Contact:

Re: Scintilla controls: SciLexer.dll x64/x32

21 Dec 2017, 14:07

AutoGUI has a x64 DLL of Scintilla with lexer for AHK only. It was built with a x64 GCC compiler. Two DLLs are created in the process: Scintilla.dll (without lexers) and SciLexer.dll (with all lexers). If you want to remove a lexer from a DLL, delete files from the lexers folder and run LexGen.py from the scripts folder, which modifies the files src\Catalogue.cxx and win32\scintilla.mak. If you want to add a lexer, you may also need to modify the files SciLexer.h and Scintilla.iface.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Scintilla controls: SciLexer.dll x64/x32

21 Dec 2017, 14:30

- @Alguimist: Thanks very much for the information. Currently, I haven't used any lexers with Scintilla, but I know that I probably will do at some point relatively soon.
- My original concern here, was simply to be able to create a Scintilla control, and add it to an AutoHotkey GUI, in both the x64 and x32 versions of AHK.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
Alguimist
Posts: 373
Joined: 05 Oct 2015, 16:41
Contact:

Re: Scintilla controls: SciLexer.dll x64/x32

21 Dec 2017, 14:38

scintilla.org wrote:If the target system is 64-bit, you may also need to build SciTE from source.
To build a 64-bit Scintilla, run the following batch file from the win32 folder (change the path accordingly):

Code: Select all

@ECHO OFF
PATH = C:\TDM-GCC-64\bin\
mingw32-make.exe
jeeswg wrote:My original concern here, was simply to be able to create a Scintilla control, and add it to an AutoHotkey GUI, in both the x64 and x32 versions of AHK.

Code: Select all

SciLexer := A_ScriptDir . (A_PtrSize == 8 ? "\SciLexer-x64.dll" : "\SciLexer-x86.dll")

Return to “Ask For Help”

Who is online

Users browsing this forum: Albireo, Google [Bot], Hackerxd, HeroOfKvatch, JoeWinograd, mad3d, mfs37, spaceman, ToJaRedi and 59 guests