Extensibility and Integration
  • 🔌Extensibility and Integration
  • 📦Products
    • Active Directory
      • Microsoft Graph
        • Overview
        • Tutorials
        • How to Guides
          • Create App Registration
          • Limit Permissions to a Specific Mailbox
      • OpenID
        • UPN Transformation
    • Cognitive Services
      • Form Recognizer
        • Overview
        • Tutorials
        • How to Guides
          • Set Up Form Recognizer
      • Anomaly Detector
        • Overview
        • Tutorials
        • How to Guides
    • Database
      • MS SQL Server
        • Overview
        • Tutorial
          • Flow on MS SQL - Basics
          • Flow on MS SQL - Extended
        • How to Guides
          • Query SQL in odd ways
    • ERP
      • Infor M3 Cloud
        • Overview
        • Tutorials
        • How to Guides
      • IFS Cloud
        • Overview
        • Tutorials
        • How to Guides
          • Import Application Configuration Packages
          • Add a new projection to the connector
          • Add a new server to the connector
      • IFS App 10
        • Overview
        • Tutorials
        • How to Guides
          • Import Application Configuration Packages
    • Storage
      • Azure Storage Account
        • Overview
        • Tutorials
        • How to Guides
          • Set Up Azure Storage Account
    • Studio
      • Applications
        • Workflow
          • Overview
          • Tutorials
          • How to Guides
            • Create Global Properties
            • Import Workflows
            • Setting Menu Roles
            • Publishing Workflows
            • Bluetooth Low Energy Quick Start Guide
      • Environment
        • Import Flow Properties
      • Connectors
        • Database
          • IFS Apps 10
            • Overview
            • Tutorials
            • How To Guides
              • Configure IFS Apps 10 Connector
        • Email
          • How to Guides
            • Email Example
        • File System
          • How to Guides
            • File System Example
            • Importing data from flat files (or other sources)
              • Scheduled Flows
        • HTML to PDF
          • How to Guides
            • HTML to PDF Example
        • Table Operation
          • How To Guides
            • Table Operations Example
        • REST Connector
          • How To Guides
            • Import a REST Configuration
            • Authenticate
              • OAUTH2
              • Cookie
          • Known Issues
            • HTTP Method: Delete - with body - not supported
            • HTTP Method: POST- Header parameters are not passed if no Body is sent
          • Tutorial
            • REST Basic training using Flow and Postman
        • OPC UA Client
          • How to Guides
            • Configure OPC UA Client Connector
        • OData Connector
        • OData Connector
    • Portal 2
      • Portlet
        • Basic
          • Data Tree
            • Overview
            • Tutorial
            • How to Guides
        • Visual Planning
          • Scheduler
            • Overview
            • Tutorial
              • Configure Scheduler
            • How to Guides
      • How To Guides
        • Start browser and auto login
    • Clients
      • Mobile Clients
        • Preference file
  • 📚Resources
    • Flow Help
    • Flow Forum
Powered by GitBook
On this page

Was this helpful?

  1. Products
  2. Portal 2
  3. How To Guides

Start browser and auto login

When you need screens in kiosk mode to auto login to Flow Portal

At times you could have a need for some PCs out in the environment (e.g. shop floor) connected to big screens in kiosk mode to present data from Flow Portal. These PCs will likely reboot at times at which you would like them to automatically log on to a Flow Portal tab when they start up.

This little powershell script can help with just that.

$pathToChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
$tempFolder = '--user-data-dir=c:\temp' # pick a temp folder for user data, not always needed
$startmode = '--start-fullscreen' # '--kiosk' is another option
$startPage = 'https://url.to.the.server/client.Portal2/?page=IdOfThePage' #--incognito before the url if desired

Start-Process -FilePath $pathToChrome -ArgumentList $tempFolder, $startmode, $startPage

start-sleep -Milliseconds 5000

[Microsoft.VisualBasic.Interaction]::AppActivate("Chrome")

[System.Windows.Forms.SendKeys]::SendWait("TheUsername{ENTER}")
start-sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("Password{ENTER}")po

What it does is to first set some parameters: Path to the browser - (or other program for that matter) that you would like to start The temp folder - there have been rare cases where this was needed for it to function Start Mode - if you would like it to start in full screen. Same thing as pressing F11 in Chrome Start Page - this is where you provide the full url to the portal and page to open

Then start the program with the above arguments:

Start-Process (with the arguments) start-sleep - It then waits (sleeps) for x millisecond, this to give it time to start the browser AppActivate - activates Crome just to make sure no other programs got the focus in between SendKeys - This will pass the keys as if they were entered by a keyboard. Assuming that the logon window is active it will enter the user name you have in the script followed by Enter. Then just do a small wait again and typing the password in the same way as username followed by Enter again, which would let you in to the desired tab.

PreviousHow To GuidesNextClients

Last updated 3 years ago

Was this helpful?

📦