Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does WPI support parameters to the .hta file?

Featured Replies

Ok, i'll admit i'm not very good with javascript stuff, but here's another go at it. The secs parameter is now limited to 3 digits (however, when triggering "wpi.hta School 120" the timer does not list 2:00 instead it says 0:120 do not know why, maybe should limit it to 2 digits you decide). Anyway, the code:

<script

language="javascript">

var params = oApp.commandLine.split(" ");

var wpiparam=params[params.length - 2];

var timeparams = oApp.commandLine.split(" ");

var wpitimeparam=timeparams[timeparams.length - 1];

if (wpiparam!='' && (wpitimeparam!='' && wpitimeparam.length < 4))

{

load_checks = params[params.length - 2];

timer = 'on';

secs = timeparams[params.length - 1];

}

</script>

I checked out the new manual, and noticed you say it is supported to write "wpi.hta School" and also "wpi.hta School 20" for the timer, that is not true. However, i revised the code a third time and now that all seems to work (could you please verify that for me):

<script

language="javascript">

var params = oApp.commandLine.split(" ");

var wpiparam=params[params.length - 2];

var timeparams = oApp.commandLine.split(" ");

var wpitimeparam=timeparams[timeparams.length - 1];

if (wpitimeparam!='')

{

load_checks = params[params.length -1];

}

if (wpiparam!='' && (wpitimeparam!='' && wpitimeparam.length < 4))

{

load_checks = params[params.length - 2];

timer = 'on';

secs = timeparams[params.length - 1];

}

</script>

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.