Sign ups are back :3 -Sukaira
WindowExternal
This guide will go over most of the external functions and properties that can be accessed via Javascript in the 2008 Roblox IDE space.
When using some of these functions, it should have a prefix of window.external in order to have the proper calling syntax.
Workspace
To access any of the Workspace class for functional use you must get it through the App.CreateGame() function or already have the workspace open and call a function with it
Close()
Usage: Workspace.Close()
Stdcall/void function which closes the workspace
ExecScript()
Usage: Workspace.ExecScript(string);
Stdcall/void function which executes a Lua script in the game workspace.
Example: Workspace.ExecScript("print(1)"); (will output 1 to the console)
ExecUrlScript()
Usage: Workspace.ExecUrlScript(url);
Stdcall/void function which executes the content from the given URL.
Example: Workspace.ExecUrlScript("http://www.roblox.com/Data/Test.ashx");<syntaxhighlight lang="lua">-- Test.ashx
print("hello")</syntaxhighlight>(will output hello to the console)
Insert()
Usage: window.external.Insert(url)
Stdcall/void function which inserts XML content that the url parameter contains
Write()
Usage: window.external.Write()
Returns IContent, aka XML data of whatever is in the workspace
WriteSelection()
Usage: window.external.WriteSelection()
Returns IContent, aka XML data of whatever is selected in the workspace
Content
To access any of the Content class for functional use you must get it through the Workspace.Write() or Workspace.WriteSelection() functions
Upload()
Usage: Content.Upload(url)
Stdcall/void function which uploads the XML content selected by Write() or WriteSelection() to the url provided
App
To access any the App class for functional use you must get it through the window.external.GetApp() function
CreateGame()
Usage: App.CreateGame(p)
Returns IWorkspace, which allows you to use functions such as
RobloxAuthenticate()
Usage: App.RobloxAuthenticate(authUrl, authTicket)
Stdcall/void function which sends a GET request to your authUrl with the GET parameter ?suggest= being your authTicket
Note: It also sends a RBXAuthenticationNegotiation header which should be your base url (roblox.com on regular clients)
Quit()
Usage: App.Quit()
Stdcall/void function which just closes the currently opened window/tab
Version
Usage: App.Version
A string value that contains the version of the client, ex: 0.7.6.0
ID
Usage: App.ID
A string value that contains an MD5 hash
BrowserViewExternal (window.external)
GetApp()
Usage: window.external.GetApp()
Returns IDispatch, aka an access point of the app window which can be used for:
IsRobloxAppIDE
Usage: window.external.IsRobloxAppIDE
Returns a boolean (true/false) of whether the user in an IDE workspace (RobloxApp.exe), will return true, otherwise will return false.