Open AlbertShown opened 1 month ago
Also, I guess this will be good to have:
if (e.eventType == webui.WindowConnection) { ... }
webui.WindowDisconnection // 0: Window disconnection event
webui.WindowConnection // 1: Window connection event
webui.MouseClick // 2: Mouse click event
webui.WindowNavigation // 3: Window navigation event
webui.FunctionCall // 4: Function call event
Thank you for your suggestion.
I know what you mean. I also considered the solution you suggested,when I was writing this part of the code.
If I provide such a const type or enum type to the user(TypeScript Developer). The user must import the definition files of these types, when they using these types. This will complicate my distribution package.
Maybe you have a better way to solve this problem. PR is welcome.
I wonder if it will be better to use
const
instead of numbers.Change
win.showBrowser("index.html", 2)
towin.showBrowser("index.html", webui.Chrome)
.