[GGH4.X-5.X] Ver4.8およびVer5.0の logon.html でパラメタを事前に埋め込む方法は?
技術ノート
2016/06/22
[番号]
技術ノート KGTN 2016061506
[現象]
[GGH4.X-5.X] Ver4.8およびVer5.0の logon.html でパラメタを事前に埋め込む方法は?
[説明]
Ver4.8では,26行目~55行目でパラメタの変数が定義されておりますので,代入の右辺に埋め込む値 (文字列) を指定して下さい.
var user = GetVarDecoded("user"); var password = GetVarDecoded("password"); var host = GetVarDecoded("host"); var bInBrowser = GetVar("bInBrowser"); var app = GetVarDecoded("app"); var appArgs = GetVar("args"); var authorityKey = GetVar("authority"); var credentialsKey = GetVar("credentials"); var sessionID = GetVar("sessionid"); var windowMode = GetVar("mode"); var embed = GetVar("embed"); var width = GetVar("width"); var height = GetVar("height"); var directConnect = GetVar("direct"); var newWindow = GetVar("newWindow"); var bCompression = GetVar("compression"); var hostPort = GetVar("port"); var bAutoCloseBrowser = GetVar("autoclose"); var autoConfigPrinters = GetVar("printerconfig"); var clientFrame = GetVar("clientframe"); var multiMonitor = GetVar("multimonitor"); var installOnly = GetVar("installOnly"); var noscale = GetVar("noscale"); var windowless = GetVar("windowless"); var autoreconnect = GetVar("autoreconnect"); var record = GetVar("record"); var play = GetVar("play"); var repeat = GetVar("repeat"); var maxbpp = GetVar("maxbpp"); var keyboard = GetVar("keyboard");
Ver5.0では,20行目~43行目でパラメタを定義する関数が定義されておりますので,行頭にある ”//” (コメント行の指定) を削除し,第2引数に埋め込む値 (文字列) を指定して下さい.
// controlArgs.set([ "user", "testuser1" ]); // controlArgs.set([ "password", "testpassword1" ]); // controlArgs.set([ "embed", "false" ]); // controlArgs.set([ "width", "640" ]); // controlArgs.set([ "height", "480" ]); // controlArgs.set([ "desktop", "false" ]); // controlArgs.set([ "app", "testapp1" ]); // controlArgs.set([ "port", "491" ]); // controlArgs.set([ "autoclose", "false" ]); // controlArgs.set([ "printerconfig", "default" ]); // controlArgs.set([ "bInBrowser", "false" ]); // controlArgs.set([ "host", "testhost1" ]); // controlArgs.set([ "compression", "true" ]); // controlArgs.set([ "clientframe", "false" ]); // controlArgs.set([ "multimonitor", "true" ]); // controlArgs.set([ "noscale", "false" ]); // controlArgs.set([ "authority", "not_specified" ]); // controlArgs.set([ "credentials", "not_specified" ]); // controlArgs.set([ "sessionid", "1234" ]); // controlArgs.set([ "autoreconnect", "0" ]); // controlArgs.set([ "windowless", "false" ]); // controlArgs.set([ "maxbpp", "16" ]); // controlArgs.set([ "keyboard", "00000409" ]); // controlArgs.set([ "args", "testargs1" ]);