-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Contribution] How to use Crystal / WebView bindings without console : #23
Comments
Thanks @serge-hulne , but I don't think adding monkey patching to any shard is good option. Above cited issue is Crystal specific and i'm sure, future versions of Crystal will have that fixed. |
You could perhaps just mention it in your doc, if you want.
…On Sat, Feb 18, 2023 at 3:16 PM Ali Naqvi ***@***.***> wrote:
Thanks @serge-hulne <https://github.com/serge-hulne> , but I don't think
adding monkey patching to any shard is good option. Above cited issue is
Crystal specific and i'm sure, future versions of Crystal will have that
fixed.
—
Reply to this email directly, view it on GitHub
<#23 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKDDQ3RVHQDVXE6PPKVN3WYDKTRANCNFSM6AAAAAAU7HMYEE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@serge-hulne Import it by: @[Link("user32")]
lib WinApi
fun GetConsoleWindow() : Int32*
fun ShowWindow(handle : Int32*, ncmdshow : Int32)
end Then invoke it like this: handle = WinApi.GetConsoleWindow()
WinApi.ShowWindow(handle, 0) The logic is following: get the handle via GetConsoleWindow, then pass the handle to the ShowWindow(handle, 0). Zero means, SW_HIDE. Hope this helps! |
Thank you! |
#hide_console.cr
hide_console.cr
Source :
https://forum.crystal-lang.org/t/compilation-switch-to-avoid-the-debug-console-under-windows/5356/6
#Usage:
#Code :
The text was updated successfully, but these errors were encountered: