Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for 32 and 64 bit (dlls from AutoGUI) #5

Open
hi5 opened this issue Jan 2, 2020 · 3 comments
Open

Patch for 32 and 64 bit (dlls from AutoGUI) #5

hi5 opened this issue Jan 2, 2020 · 3 comments

Comments

@hi5
Copy link

hi5 commented Jan 2, 2020

For one reason or another I can't properly clone and update this repo to GitHub so I use this method. In the ZIP file 32 and 64 DLL versions of the scilexer DLL which I copied from AutoGUI

Everything works apart from the "Highlight Test.ahk" example but that is most likely because AutoGUI uses a different method[1] compared to the method you used here.

scr-32-64.zip

If this is updated we can link to this from the AutoHotkey document / help which currently only links to HiEdit which only works for AutoHotkey 32bit Ansi.

Or should the https://github.com/ahkscript/scintilla-wrapper be updated instead of this repo?

[1] https://www.autohotkey.com/boards/viewtopic.php?p=189917#p189917

@RaptorX
Copy link
Owner

RaptorX commented Jan 3, 2020 via email

@hi5
Copy link
Author

hi5 commented Jan 3, 2020

The current wrapper in this repo only works with 32 bit - for 64 bit you need a different DLL.
As AutoGUI has both versions I simply replaced
"\SciLexer.dll") with "\SciLexer" A_PtrSize*8 ".dll") in sci.ahk
to load the correct DLL, now it works in all current versions of AHK.

As more and more users are on 64bit (I assume) it is "tedious" to have to run a script using the 32bit version.

As I wanted to use it with 64 bit I prepared this, but apart from the above I know nothing about DLLs :)

I was reminded of this wrapper as I was reading about the HiEdit control in the documentation, but that only works with 32bit Ansi so then I looked at sci.ahk but noticed it didn't work for 64bit so I put this together quickly.

Have a look at it if you have some more time in the future (no rush, I have working code) and good luck with setting up your business.

@RaptorX
Copy link
Owner

RaptorX commented Jan 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants