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

Can't convert clr.ahk #22

Open
krasnovpro opened this issue Aug 5, 2021 · 2 comments
Open

Can't convert clr.ahk #22

krasnovpro opened this issue Aug 5, 2021 · 2 comments

Comments

@krasnovpro
Copy link

https://github.com/GirkovArpa/ahk-sciter-js/blob/master/clr.ahk

@FuPeiJiang
Copy link
Owner

@krasnovpro

I've cloned the repo https://github.com/GirkovArpa/ahk-sciter-js

I've downloaded
sciter.dll 8.23MB
SciterSharpWindows.dll 161.50KB
I've copied these files into the folder ahk-sciter-js\

I run using AutoHotkeyU64.exe with WorkingDir ahk-sciter-js\
note: that was AHK_L v1 version 1.1.33.09

I'm getting this error

---------------------------
main.ahk
---------------------------
Error:  0x80004003 - Invalid pointer
Source:		SciterSharpWindows
Description:	Object reference not set to an instance of an object.
HelpFile:		(null)
HelpContext:	0

Specifically: CreateMainWindow

	Line#
	148: {
	149: VarSetCapacity(GUID, 16, 0)  
	150: Return,DllCall("ole32\CLSIDFromString", "wstr", sGUID, "ptr", &GUID) >= 0 ? &GUID : ""
	151: }
	011: FileRead,html,main.html
	013: sci := Clr_LoadLibrary("SciterSharpWindows.dll")
	014: sciwin := Clr_CreateObject(sci, "SciterSharp.SciterWindow")
--->	015: sciwin.CreateMainWindow(400, 300)  
	016: sciwin.CenterTopLevelWindow()  
	017: sciwin.Title := "Using SciterSharp in AutoHotkey"  
	018: sciwin.LoadHtml(html)  
	019: sciwin.Show()  
	020: Return
	022: Return
	024: Return

Continue running the script?
---------------------------
Yes   No   
---------------------------

if AHK_L v1 doesn't work, v2 cannot work

you said you Can't convert clr.ahk
what errors are you getting ?
can you try again? I've fixed some things

@krasnovpro
Copy link
Author

I got it here: https://misoftware.com.br/Home/Post/TheLibrary

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