Version 1.2Beta release
New release adds some experimental functions: the ability to view the source of the page (sometimes - this seems to crash on big pages), and the ability to transfer a string (which can be a stringified JSON) from Javascript to GameMaker.
Full list of new functions
chromium_request_source() [v1.2beta] EXPERIMENTAL FEATURE
Sends a request for the page source. Once this is sent, GM code should poll chromium_check_source() to see if the source is available; once that function returns true, it can be collected with chromium_get_source()
chromium_check_source() [v1.2beta] EXPERIMENTAL FEATURE
Polls to check if source has been fetched. Returns 0 if not, returns 1 if the source is available to be collected using chromium_get_source()
chromium_get_source() [v1.2beta] EXPERIMENTAL FEATURE
Once chromium_check_source() has returned 1, chromium_get_source() will return the page source as a string.
chromium_check_transfer() [v1.2beta] EXPERIMENTAL FEATURE
In Javascript, run window.transfer(<string>); to transfer a string to gamemaker. This function can be polled to determine if a transfer is available. This function will return 1 if there is a transfer waiting to be read, or 0 if there is no transfer available.
See Included Files/html/test.html for implementation details
WARNING: this feature only works with browsers created using chromium_create_test().
chromium_get_transfer() [v1.2beta] EXPERIMENTAL FEATURE
Once a transfer is made, and chromium_check_transfer() returns 1, the transfer string can be read with this function.
See Included Files/html/test.html for implementation details
WARNING: this feature only works with browsers created using chromium_create_test().
Files
Get Chromium browser in GameMaker
Chromium browser in GameMaker
Embed a full web browser in your game
Status | Released |
Category | Assets |
Author | meseta |
Tags | GameMaker, sourcecode |
More posts
- Version 1.3 releaseJun 13, 2018