Page 1 of 1
Poor-man Electron
Posted: Sun Jul 21, 2019 3:14 pm
by Antonio Linares
Electron concept is to use web apps as desktop apps.
With these small batch files we launch our remote web apps developed with mod_harbour:
Once
Edge shows press
F11 to hide the navigation bar (any idea to do this programmatically?)
myapp.vbs
Code: Select all
Set objIE = CreateObject( "Shell.Application" )
objIE.Open( "microsoft-edge:https://harbour.fourtech.es/modharbour_samples/genesis/index.prg" )
myapp.bat //this option is worse as a cmd window is shown
Code: Select all
start microsoft-edge:https://harbour.fourtech.es/modharbour_samples/genesis/index.prg
Re: Poor-man Electron
Posted: Sun Jul 21, 2019 4:14 pm
by Antonio Linares
This seems as a very good candidate also, but I am unable to make it run. Help!
Code: Select all
start microsoft-edge:http://google.com
>> $wshell = New-Object -ComObject wscript.shell;
>> $wshell.AppActivate('Google - Microsoft Edge')
>> Sleep 2
>> $wshell.SendKeys('{F11}')
Re: Poor-man Electron
Posted: Sun Jul 21, 2019 5:25 pm
by Antonio Linares
This seems to be a good one but SendKeys is not working yet:
myapp.vbs
Code: Select all
set ws = CreateObject( "WScript.Shell" )
ws.Run( "microsoft-edge:https://harbour.fourtech.es/modharbour_samples/genesis/index.prg" )
ws.AppActivate( "Edge" )
ws.SendKeys( "{F11}" )
Re: Poor-man Electron
Posted: Sun Jul 21, 2019 5:52 pm
by cnavarro
Code: Select all
start chrome --start-fullscreen -app=https://harbour.fourtech.es/modharbour_samples/genesis/index.prg
Re: Poor-man Electron
Posted: Sun Jul 21, 2019 5:58 pm
by Antonio Linares
Cristobal,
great!
This one maximizes it:
myapp.bat
Code: Select all
start chrome --kiosk -app=https://harbour.fourtech.es/modharbour_samples/genesis/index.prg
Re: Poor-man Electron
Posted: Sun Jul 21, 2019 6:18 pm
by cnavarro
Yes, but it is better to keep the preferences of the last session of the user.
Si, pero es mejor mantener las preferencias de la ultima sesion del usuario.
Re: Poor-man Electron
Posted: Mon Jul 22, 2019 4:24 pm
by Rick Lipkin
Antonio
Be Carefull using the Chrome Kiosk option ...
Code: Select all
start chrome --kiosk -app=https://harbour.fourtech.es/modharbour_samples/genesis/index.prg
alt+F4 closes the Kiosk app ..
Rick Lipkin