Closed Exploiterigoer closed 4 years ago
https://github.com/sciter-sdk/go-sciter/commit/ce0e920fd2fb79974c2cc202242fba2f774559c0 has been fixed already
@pravic When pulling the latest commited code,it fails.Is there something missing for me?
It's strange because it's tested on different Go versions with Travis. Though you're on Windows. I'll check.
It works when using this commits 89a4dd09b0f8f79e35169e476df73347d21f9797
Still got this error with latest code on master:
@dzcpy Obviously,you use an old version.
@Exploiterigoer Thanks for your kind reply. I'm new to Go, could you please elaborate a bit on how did you update the module? I tried to clone it into go/kg/mod, but it still uses v0.5.0
@dzcpy
In the go.mod,following this,and then, run go build .
or go get .
in the terminal
module com.gui/07
go 1.14
require (
github.com/lxn/win v0.0.0-20191128105842-2da648fda5b4 // indirect
github.com/sciter-sdk/go-sciter 89a4dd09b0f8f79e35169e476df73347d21f9797
)
perfect, the problem is solved. thx
Here is my code:
It works when doing comment in sciter.go:
katro@DESKTOP-U6Q7AN4 MINGW32 /d/workspace/gopro/gui $ ./mixure.exe function def of btn2--->test2 "1" "2" "3" 2020/06/21 23:33:28 Unhandled sciter event case: 32768 panic: Unhandled sciter event case: 32768
goroutine 1 [running]: log.Panic(0xc000087bc8, 0x2, 0x2) D:/devenv/go/src/log/log.go:351 +0xb3 github.com/sciter-sdk/go-sciter.goElementEventProc(0x0, 0x0, 0x8000, 0xb9ec50, 0x38) D:/devenv/golib/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.0/sciter.go:1468 +0x300 github.com/sciter-sdk/go-sciter._cgoexpwrap_a267971ed125_goElementEventProc(0x0, 0x0, 0x8000, 0xb9ec50, 0xb9ed90) _cgo_gotypes.go:2030 +0x50 syscall.Syscall(0x7ff8488943a0, 0x2, 0x5c0818, 0x5, 0x0, 0x0, 0x0, 0x0) D:/devenv/go/src/runtime/syscall_windows.go:188 +0xe9 github.com/lxn/win.ShowWindow(0x5c0818, 0xc000000005, 0xc00000a640) D:/devenv/golib/pkg/mod/github.com/lxn/win@v0.0.0-20191128105842-2da648fda5b4/user32.go:3273 +0x6a github.com/sciter-sdk/go-sciter/window.(*Window).Show(0xc00003ed70) D:/devenv/golib/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.0/window/window_windows.go:42 +0x45 main.main() D:/workspace/gopro/gui/main.go:100 +0x3d2