Onetastic Macro Documentation >
>
>
Window_NavigateTo Window_NavigateTo
Navigates the given window to the provided location. The location can be a , id of a hierarchy object, or a "onenote:" URL. OneNote may display UI while navigation is under way. This function returns true if the navigation is successful or false if the location is not found or navigation is cancelled by the user.
Syntax
Bool Window_NavigateTo(
Window window,
Mixed location)
Parameters
- Window window
- The window to navigate to.
- Mixed location
- The location to navigate to. Expected types are: Notebook, SectionGroup, Section, Page, or a String for id of one of those objects or a URL that starts with "onenote:". Navigating to URLs are slower than navigating with an object or object id.
Examples
$window = Window_GetCurrent()
$page = GetCurrentSection().pages[0]
Window_NavigateTo($window, $page)
Window_NavigateTo($window, $page.id)
Window_NavigateTo($window, $page.hyperlink)
|