Giter Site home page Giter Site logo

scite4autohotkey's People

Contributors

daehyeoni avatar fincs avatar ih57452 avatar lakrits avatar lexikos avatar uberi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scite4autohotkey's Issues

Crash during program start up

I don't remember doing anything to my system that might cause this. But now, whenever I try to start the SciTE4AutoHotkey I get these error messages and the program cashes.

I'm running Windows 7 Ultimate x64.

Here's the information given in the "View problem details".
"Problem signature:
Problem Event Name: APPCRASH
Application Name: SciTE.exe
Application Version: 3.0.6.1
Application Timestamp: 543adcef
Fault Module Name: SciLexer.DLL
Fault Module Version: 3.5.1.0
Fault Module Timestamp: 543a6894
Exception Code: c0000005
Exception Offset: 000c9f7e
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1053
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt"

Then there are popup messages...
The first one is "popup.error.01.jpg"
The second one is "popup.error.02.if.yes.on.error.01.jpg"

I've uninstalled and reinstalled the program but that made no difference.
Please help.

Thanks in advance,
Kind regards

popup error 01
popup error 02 if yes on error 01

Website

Hey, the website is sold or down so I don't know how to install it. Please help. Thanks!

Help Menu Invokes Current Script

Steps

  1. Run a persistent script within SciTE, and leave it open.
  2. In the SciTE window, press F1 or select Help -> Help

Expected Result

The AutoHotkey help file is opened.

Actual Result

The script is invoked, and the "Replace Instance" dialog appears if #SingleInstance is not in effect for the current script.

Notes

This only occurs for the first time Help is invoked. Subsequent presses of F1 work normally. However, rerunning the script and pressing F1 will cause the script to be run again as well.

ahk.lua acts on output pane keypresses

If the current line is 0 in the editor pane when I press Enter in the output pane, the following Lua error is logged and SciTE attempts to run it as a command:

<path>\ahk.lua:567: bad argument #1 to 'len' (string expected, got nil)

This happens because OnChar assumes the user is typing into the editor pane. I suggest checking editor.Focus.

ActiveWindowInfo.ahk - Specifies tray icon when #NoTrayIcon is enabled?

Why specify the tray icon, if #NoTrayIcon is specified?

File: "ActiveWindowInfo.ahk"

#NoTrayIcon
#SingleInstance Ignore
SetWorkingDir, %A_ScriptDir%
SetBatchLines, -1
CoordMode, Pixel, Screen
IfExist, ..\toolicon.icl ; Seems useful enough to support standalone operation.
Menu, Tray, Icon, ..\toolicon.icl, 9

Code in question : Permalink

BUILD INSTRUCTIONS ARE OUT OF DATE

I am unable to build the latest commit.

The following refers to the build instructions in SciTE4AutoHotkey/README.MD and in
SciTE4AutoHotkey/scipatches/README.MD

  1. I suspect the prerquisites to build SciTE4AutoHotkey are not complete.
    The instructions state that msys2 with clang64-toolchain plus git, and mercurial are prerequisites.
    Other packages including base-devel, make, patch, and mingw-w64-i686-toolchain may be required.

  2. The scintilla and scite cloning instructions are cloning the current version (532) instead of the reported build version 5.2.2.

  3. The patch files cannot be accessed by the current instructions. It appears that the files in the scipatch folder need to be
    copied from SciTE4AutoHotkey/scipatches to the primary folder

  4. Scintilla.dll and lexilla.dll appear to build correctly. The SciTE.exe build locks up at the make CLANG=1 command.
    HERE IS THE MSYS2 CLANG SHELL INPUT AND OUTPUT:
    =====================================================
    CLANG64 /d/_GITMSYS2/SCITE4AHK
    $ cd scite/win32 && make CLANG=1 -d && cd ../bin && strip *.exe *.dll && cd ../..
    GNU Make 4.4
    Built for x86_64-pc-msys
    Copyright (C) 1988-2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Reading makefile 'makefile'...
    ==============================================

HERE ARE THE LASTEST AND ALMOST WORKING SET OF BUILD INSTRUCTIONS:

OBTAIN MSYS2
Obtain msys2 from https://msys2.org/ and install it using all default recommendations. This will install MSYS2 in "C:\msys64".

NOTES:
- FOR SUBSEQUENT LINES BEGINNING WITH "○", THE TEXT AFTER THE "○" SHOULD BE ENTERED ON THE SHELL COMMAND LINE.
- Use cut and pasted to avoid typos

*Open the "MSYS2 MSYS" shell from the Start menu:

UPDATE MSYS2:
○ pacman -Syuu
NOTE: The above line will update msys2. Repeat this step until there are no more packages to update.
(ref: https://www.msys2.org/wiki/MSYS2-installation/)
○ pacman -S --needed bash pacman pacman-mirrors msys2-runtime
- Answer "y" to all requests.
*Exit and restart MSYS2
○ pacman -Su
* Repeat the above step until there is nothing to update and nothing to do.
* Restart the MSYS2 MSYS shell and repeat the above command until there is nothing to update and nothing to do.

PREPARE MSYS2 development environment (NOTE THERE IS SOMETHING MISSING HERE)
○ pacman -S base-devel git make mercurial patch
○ pacman -S mingw-w64-i686-toolchain mingw-w64-clang-x86_64-toolchain
- Consider pacman -S cvs wget p7zip (ref: https://wiki.qt.io/MSYS2)

*Close "MSYS2 MSYS" shell.

NOTE: The "MSYS2 CLANG64" shell will be used for all of the remaining command lines.

*Open the MSYS2 CLANG64 shell

GETTING THE SOURCE AND PATCHING IT:
Make a repository directory to work in
- Make the repository directory. FORMAT: mkdir //
_--- (I used "○ mkdir /d/GITMSYS2/SCITE4AHK")
- Change to the repository directory. FORMAT: cd //
_--- (I used "○ cd /d/GITMSYS2/SCITE4AHK")
Clone data to the repository directory
○ git clone --recursive https://github.com/fincs/SciTE4AutoHotkey
○ hg clone http://hg.code.sf.net/p/scintilla/code -u rel-5-2-2 scintilla (MODIFIED)
○ git clone https://github.com/ScintillaOrg/lexilla -b rel-5-1-6 lexilla
○ hg clone http://hg.code.sf.net/p/scintilla/scite -u rel-5-2-2 scite (MODIFIED)
Copy patch data to base directory (THIS STEP WAS NOT IN THE README.MD BUT SEEMED THE MOST LOGICAL)
○ cp SciTE4AutoHotkey/scipatches/. ./
Patch the code
○ cd scintilla && hg update rel-5-2-2 && cd ..
○ cd lexilla && git apply ../lexilla.diff && cd ..
○ cd scite && hg update rel-5-2-2 && hg import --no-commit ../scite.diff && cd ..
Copy the icon
○ cp SciTE4AutoHotkey.ico scite/win32/

**BUILDING THE COMPONENTS:**
	○ cd scintilla/win32 && make CLANG=1 && cd ../..
	○ cd lexilla/src && make CLANG=1 && cd ../..
	○ cd scite/win32 && make CLANG=1 -d && cd ../bin && strip *.exe *.dll && cd ../..   

(THE ABOVE LINE IS WHERE THE BUILD CURRENTLY FAILS)

**MOVING THE COMPONENTS:**  _(THIS IS ALL NEW)_
	**Rename old files to be replaced in working directory:**
	○ cd "/c/Program Files/AutoHotkey/SciTE"
	○ rename Scintilla.dll Scintilla.dll.old
	○ rename lexilla.dll lexilla.dll.old
	○ rename SciTE.exe SciTE.exe.old

	**Copy new files to working directory**
	**NOTE:** "/d/_GITMSYS2/SCITE4AHK" below is my repository.  Yours might be different.  
                       _(See: Make a repository ... above)_
	○ cp /d/_GITMSYS2/SCITE4AHK/scintilla/bin/Scintilla.dll ./
	○ cp /d/_GITMSYS2/SCITE4AHK/lexilla/bin/lexilla.dll ./
	○ cp /d/_GITMSYS2/SCITE4AHK/scite/bin/SciTE.exe ./

	**Finally copy the latest AutoHotkey Unicode 32-bit binary into the same folder as InternalAHK.exe.**
	○ rename InternalAHK.exe InternalAHK.exe.old
	○ cp "/c/Program Files/AutoHotkey/AutoHotkeyU32.exe" ./

*Close "MSYS2 CLANG64" shell and run the updated SciTE4AutoHotkey. You can revert to the old version by deleting the transferred files and renaming the .old files.

S4AHK.patch

S4AHK.patch shows changes to closefile.bmp and a new file, closefile_big.bmp, but cannot possibly be used to apply these changes. Consequently, applying the patch as per the instructions leaves me with code that will not compile.

For now I've just copied closefile.bmp, as I couldn't care less about high DPI images.

Strange crash/recovery issue

So I hit save in Scite4autohotkey and my mouse/keyboard totally freeze up. Only solution is to unplug pc and plug back in. Get back in and load back up my (60k line) script and 30,000 lines are missing. It seems to have also changed encoding somehow and spanish characters like í and ó are replaced with a <?> looking character. Not only that, when I try to type and make changes weird spaces and characters are now appearing. I've tried uninstalling and re-installing Scite4autohotkey but it's still happening. Restarted pc multiple times... Thankfully everything was saved to github and my laptop has backups but what the heck is happening?

Now normally I'd be fine to just pull my code back from github and fix the encoding issues, but here's what happens now in Scite when I try to fix the encoding problems that appeared (watch second half of gif carefully)
https://gyazo.com/eddc9f0dbdd21f256181a5b81e8fbea5

Uninstall/reinstall Scite4autohotkey and it's still happening, tried restarting pc etc...

Version 3.0.06.01 - Based on SciTE 3.5.1
Built on Oct 12 2014 13:40:05

Thanks for any help!

SciTE4AutoHotkey 3.1.0 is not compatible with AutoHotKey's current folder structure

When trying to run or debug a script Scite throws the error:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.

It can be fixed by changing line 14 in ahk.properties from this:

AutoHotkey=$(AutoHotkeyDir)\AutoHotkey.exe

to this:

AutoHotkey=$(AutoHotkeyDir)\v2\AutoHotkey.exe

However, the ability to choose AHK V1 as a platform seems to be broken and running a V2 script does not run even with
#Requires AutoHotkey v1.0

Debugging

I press the button Debug Script and nothing happens. Previously, too, tormented, but somehow I decided. Now again it does not work.

I put different versions autohotkey and Sci

Support a silent installation

So we can build a package for http://chocolatey.org/

I see that the "installer" is itself an AutoHotkey script, but I don't see any obvious way to make it "silent" (short of writing another ahk script to run this one, whoaaa!)

is keyword parameter tooltip removed?

Hi,

when v3.0.06, I can use the 'parameter tooltip' like below

image

I think that feature served by this ahk.api file ▼
https://github.com/fincs/SciTE4AutoHotkey/blob/76b27763c160e05f3ae32121af88544b12dff4be/source/ahk.api

but in v3.1.0, the file removed, and new [ahk1.standard.api] file created. This file doesn't contain parameter description ▼
https://github.com/fincs/SciTE4AutoHotkey/blob/master/source/ahk1.standard.api

I can't use that feature anymore. did you intend?
if not, (I mean, If it's just a bug,) how can I solve this issue?

It's just tiny issue, but I just submit it.

Sorry for broken English.

syntax highlight error

here is test code

字符串=   ; this is string
(
abc
def
)

字符串2=  ; this is string
(%
abc
def
)

标签:    ; this is label
return

abcd:="afeeeeee

返回值1:=abc.Value1
返回值2:=WinHttp.URLDownloadToFile(网址, ID ".txt", 设置, 请求头)

Gui Add, Edit, x464 y528 w55 h21 v纸费_ g计算段, 3.5
MsgBox, 4148, 提示, 本工具将关闭Flash的P2P功能,以便释放上传通道,最终加速视频网站播放速度!`r`n`r`n适用于优酷、爱奇艺、搜狐、乐视、土豆等几乎所有视频网站。
FileCreateDir, %A_AppData%\SogouExplorer\Webkit\Default\Pepper Data\Shockwave Flash\system

^+Up::
#x::
GuiClose:
return

parsed_out := Format("      ; this is string
(Join`r`n
String: {}
Number: {}
Float:  {}
true:   {}
false:  {}
null:   {}
array:  [{}, {}, {}]
object: {{}A:""{}"", H:""{}"", K:""{}""{}}
)"

1
2

Updated!

I just arrived here to reinstall SciTE4AHK after a machine reformat, expecting to find the near decade old latest version -- and perfectly okay with that -- ...only to do a literal double-take when I saw the most recent release was just four days ago. I had to check what repo I was on, thinking maybe I was at the wrong place. But nope. It's like waking up on Christmas morning!

I've been playing around with the update, and it's awesome: so much snappier now, the feature/function additions are great, and it looks fantastic. Thanks a ton for the update!

It's good to see you back.

Hi fincs , thank you for creating this great tool, I've been using it for over 10 years and it's great to see you back.

For the past 8 years, I've thought you were no longer updating, so I created a branch with many, many, many fixes and improvements.

I thought we could discuss how to merge these updates in order to eliminate a lot of needless duplication of effort.

Here is my version(Sorry, I didn't expect you to come back, so some of the code isn't written in English, but it should still work fine.)

https://github.com/telppa/SciTE4AutoHotkey-Plus

Saving a file does not add ".ahk" automatically anymore

When saving, it says it will save as autohotkey script (.ahk) but creates the file without a file extension.
After which the program does not recognize it as such and so running and compiling are greyed out.

Just wanted to mention it, have been, and will keep using this as its by far the simplest yet well made autohotkey editor :D
Great to see a new update after uhhh, years haha

Make current line marker transparent

Currently the current line marker while debugging is bright blue and opaque, which makes it very difficult to read the text when a dark theme (with light text) is in use. Please make the marker partially transparent.

unreadable

For example, adding this to SciTE_SetCurrentLine() would fix the issue.

DllCall("SendMessage", "ptr", scintillahwnd, "uint", SCI_MARKERSETALPHA, "int", 12, "int", 32)

RevokeIDs() called even when !IsPortable

In ComInterface.ahk, if ComRemote() fails, RevokeIDs() is called to remove SciTE4AHK from the registry. I believe this should only be done if the script just created those registry keys; i.e. if IsPortable.

Some Chinese Characters are recognized as numbers due to custom SciLexer.dll

I found that some Chinese Characters are recognized as numbers, because the highlighted chars have the same style with numbers in ahk source.

Not all styles in sciTE4AutoHotKey can reveal the issue, because numbers setting in some style are the same common chars(untyped parameters). In the other words, different styles setting can't result in this issue.

You can try the Monokai.style.properties in "Styles" folder, and with the ahk code below:
===============code start=======================
Gui, Add, Button, xp yp+60 wp hp , 读取记录
Gui, Add, Button, xp yp+60 wp hp , 导出记录
Gui, Add, Button, xp yp+60 wp hp , 断开连接
Gui, Add, ListView, x120 y130 w500 h315 , ListView
Gui, Add, Progress, xp y445 w500 h10 , 25

Gui, Tab, 2
gui, add, text, x10 y135 w30 h20, 日期
Gui, Add, DateTime, xp+35 yp-5 w90 h20 vdate, yyyy-MM-dd
gui, add, text, xp+100 yp+5 w30 h20, 槽号
===============code end=======================

Later, I try another custom sciTE with simple autohotkey support(although its package name is sciTE4AutoHotkey.rar). And I found it have no issue for this. Then I replace its SciLexer.dll with the sciTE4AutoHotkey's, the issue recur. So I think maybe there is some bug in SciLexer.dll for sciTE4AutoHotKey(fincs).
You can get it here:https://app.box.com/shared/xn4apnatc9

Some pictures attached below:
pic 1(OK, custom sciTE with simple autohotkey support using VimEvening style )
1

pic2(not OK, fincs' sciTE4AutoHotKey with VimEvening.style.properties by me )
2

You can get VimEvening.style.properties here: https://www.dropbox.com/s/li6e2j2guuzjzux/VimEvening.style.properties

Cannot Run and debug

run error: c:\Program Files is not recognized as an internal or external command, operable command or batch file.
debug error: the autohotkey exe is not exist!
How to solve?

Update (from 3.0.06.01 to 3.1.00) broke § key, in sc4.

After updating to 3.1.00, I am having problems with all hotstring & hotkeys that include § (SC029). It seems that sc4 is not always registrering key presses of the § key, since I am also having trouble typing both § and ½ (same key on keyboard) in sc4. The problem have not occured in any other app.

Is this work?

How can I install it? When I run "\SciTE4AutoHotkey-master\installer\setup.ahk" I see this MsgBox "Oops `;p" -- whats that means?
I try downloading from other link and it works now.
I just want to know what is the problem here?

[v3.1.0 & AHK v2.0.2] Always Crash with AHK chm

The following sequence always results in a crash:

  1. Open SciTE4AHK alone
  2. Drag any .ahk file into SciTE4AHK window to open it
  3. Press F1 to open AHK help chm
  4. Close Editor window, not AHK help chm
  5. After a while, AHK help chm window closes automatically
  6. There is a crash dump file in C:\Users{USERNAME}\AppData\Local\CrashDumps

Corrupted AHK script

EDIT: solved, I believe that the ahk-exe conversion broke it - changing the .exe to .txt results the same file

Hello,

I right clicked "Edit Script" to edit it in Scite4AutoHotkey and nothing happened. I clicked again and it opened as 13,328 lines of broken text. I didn't save and tried with VSCode for the same result. Luckily, I was able to restore it from a backup

The script was 20 lines and the same size as the broken file, and I had recently just edited it and converted to .exe before deciding to edit again - the .exe works correctly

My feature requests

  1. Add ability to press F1 for help on things when the file has not yet been saved the first time. Add ability to run script when the file has not yet been saved the first time. (Perhaps saving behind the scenes to temp directory?
  2. (Minor) Add ability to delete scriptlet from toolbar by right clicking. I eventually figured out you can do it by deleting lines in the config but it's not as cool.
  3. Add ability to load an entire folder of AHK files in one go (this is different than saved sessions)

How can I view the lexer logic?

Hi @fincs, first off, this is an amazing project. Kudos to you for maintaining it so well for so long.

I'm hoping to incorporate a syntax highlighter and formatter into VS Code. I'm still in the research phase, but I saw your changelog mentioned a "completely rewritten new lexer". Where can I find this lexer? A quick search hasn't been so helpful. I'd really appreciate your help here!

If you're curious, you can track my progress at ahk++ - fix the syntax highlighter.

NewUser.ahk overwrites user settings

When the user runs a version of SciTE which does not match the $VER in their settings folder, NewUser.ahk runs. On my system, FileMoveDir in NewUser.ahk fails with ERROR_ALREADY_EXISTS. The destination folder does not exist either before or after the command, and nothing is moved. This has the following consequences:

  • The user's customizations are overwritten, possibly lost forever.
  • $VER is not moved/deleted, so the new version number is appended to it. This causes NewUser.ahk to re-run the next time SciTE starts.

I don't expect you to debug the FileMoveDir failure, but I ask that you put some error-checking in place to avoid loss of user customizations. Alternatively, remove the "overwrite" flag from FileCopyDir (since the files aren't supposed to exist anyway) and explicitly delete $VER before appending to it.

Better yet, just leave the settings as they are. Clearly a "new user" would not already have a SciTE settings folder.

"Internal error"

I am trying to get Autohotkey_h v2 to work because I wanted to use multithreading
https://hotkeyit.github.io/v2/

Scite4AutoHotkey gives me an "internal error. do you want to continue running without debug?" and immediately closes my debug output window so I can't even see what the problem might be.

clipboard threaded.ahk

#SingleInstance, FORCE

Gui, Add, Text,, Downloading From Youtube
Gui, +LabelMainGUI

global workers := []
Percent1 := 0
Percent2 := 0
Percent3 := 0
Percent4 := 0
Percent5 := 0
Percent6 := 0
Percent7 := 0
Percent8 := 0
Percent9 := 0
Percent10 := 0
Loop, 10
{
    Gui, Add, Progress, w300 h20 cBlue vPercent%A_Index%
    GuiControl,, Percent%A_Index%, 0
    GuiControl, Hide, Percent%A_Index%
}
Gui, Show

OnClipboardChange("ClipChanged")
Loop
{
    Sleep, 1000
    toremove := []

    for i,w in workers
    {       
        percent := w.percent
        OutputDebug %percent%       
        if w.done
        {
            toremove.Push(i)            
            if i < 11
            {
                GuiControl,, Percent%i%, 0
                GuiControl, Hide, Percent%i%                
            }
        }
        else if i < 11 && percent > 0
        {           
            if Percent%i% = 0
            {
                GuiControl, Show, Percent%i%
            }
            GuiControl,, Percent%i%, %percent%
        }
    }

    Sort toremove, N R U
    for i,v in toremove
    {       
        OutputDebug removing
        OutputDebug toremove[i]
        workers.RemoveAt(toremove[i])
    }

}
return

ClipChanged(Type){  
    FoundPos := InStr(clipboard, "https://www.youtube.com/watch" , CaseSensitive = true)
    url := clipboard    
    OutputDebug %url%
    if FoundPos
    {       
        ;Create worker thread
        Thread := ThreadObj("#include" " ytdownload.ahk", url)  
        workers.Push(Thread)        
    }
}
return

GuiClose:
ExitApp 
return
ytdownload.ahk

#SingleInstance, off
OutputDebug ytdownload
shell := ComObjCreate("WScript.Shell")
SetWorkingDir "d:\utils\youtube"
exec := Shell.Exec("d:\utils\youtube\youtube-dl.exe -a -")
url := A_Args[1]
hash := RegExReplace(url, "[^a-zA-Z0-9]", "")
readcount := 60
percent := 0
done := false
close := false

OutputDebug %url%
exec.StdIn.Write(url)
exec.StdIn.Close()

while, !exec.StdOut.AtEndOfStream
{       
    line := exec.StdOut.Read(readcount)
    RegExMatch(line, " (\d+)\.\d+`%", p)
    OutputDebug %line%
    OutputDebug percent 
    OutputDebug %p1%    
    If p1 > percent
    {
        percent := p1           
    }      
}   
done := true
while !close
{
    sleep 100
}
return

pressing "F1" on selected text causes program to crash

; Issue in AHK syntax for fun
; Steps to reproduce this issue
Run SciTE.exe
WinMenuSelectItem,A,,File,New
WinMenuSelectItem,A,,File,Save ; this step is required!
send, global ; type the word global in the editor
^a ; press Ctrl+A to select the word global
send, {F1} ; try to open "help" for the word global by pressing the F1 hotkey
; The resulting issue is a help window popup which is blank and infinitely tries to load. Upon trying to close this window SciTE.exe crashes.

image

Linker errors

Full disclosure: I am not using the "prerequisite" setup described in the readme.

  • I already had the SciTE source code downloaded.
  • Official SciTE uses Visual Studio 2019 and nmake on Windows, so I chose to use VS 2022 and nmake.
  • My msys2/clang64 command prompt can't find git (but git is installed). I don't have/want/need Mercurial.

I was unable to apply the diffs using git apply as instructed; Git apply patch fails silently (no errors but nothing happens). I used patch -p1 < whatever.diff instead. This appears to have applied the patch without errors.

The linker failed to resolve some symbols:

  • PathRemoveFileSpecW and some others, because SHLWAPI.LIB is missing from the import libs.
  • MessagePumpLibInit (decorated), because MessagePump.obj is missing from the dependencies (SHAREDOBJS) in scite.mak.

After fixing those issues, I was able to build using the following batch script, invoked from a VS Code Task:

call "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat"

pushd main\scintilla\win32
nmake -f scintilla.mak
popd

pushd main\lexilla\src
nmake -f lexilla.mak
popd

pushd main\scite\win32
nmake -f scite.mak
popd

SciTE4AutoHotkey does not work properly when the executable is on a UNC path

Version 3.0.06.01 - Based on SciTE 3.5.1
How to reproduce:

I tested a non-installation version locally first, then copied it to my network drive.

  • Put the entire folder on a UNC path.
  • Run SciTE4AHK.
  • Open a local script
  • Click "run" or "debug"

If I click "Run," I get the following error message in the box below:

>"\\xxxxxx.xxx\Files\ISG\1n5aN1aC\Documents\Applications\SciTE\..\AutoHotkey.exe" /ErrorStdOut     "C:\Users\1n5aN1aC\Desktop\script name.ahk"    
The specified path is invalid.
>Exit code: 1    Time: 0.2135

If I click "Debug," then I get a popup that says "The AutoHotkey Executable doesn't exist!"
I found that bit here:

IfNotExist, %AhkExecutable%

Is there a possibility that IfNotExist doesn't work on UNC paths, so it's doing that in error?
Am I supposed to put AutoHotkey.exe anywhere manually? I tried putting it 2 different places where I might expect it to be put, but that made no difference.

Wingget

Could this IDE be added to winget,
I can install ahk by winget install ahk but I cannot install scite4ahk by winget install scite4ahk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.