Recent

Author Topic: How to compile my.lpr for --kiosk or toggle is in browser/web an unrar.Dvd.iso?  (Read 285 times)

d2010

  • Full Member
  • ***
  • Posts: 161
Hello.
My main question is C:Q1 and kiosk mode of rar.exe or
kiosk mode of 7zip.exe ..

The subject="I start two application disjunction,
   a) rar.exe=extracting a big'iso
   b) I start opera.exe + view-youtube.opera.exe?
Total.. my win10destkop is Browser-mode , because the user-of-win10, like-view youtube..
My Question/s

C:Q1=Exists on internet rar.version.kiosk of IDLE? or
        unzip.version.kiosk.exe or
        uniso.version.low.backgound.low-res or
        untar.version.low.brackgou und.exe?
C:A1= okai not exists,, Can i develop kiosk-mode for project1.lpr?

 %)Good  Thief
 Lazarus5.0-self-install.version.low-resource.exe

 %)
Thank you..


« Last Edit: April 22, 2025, 01:14:12 pm by d2010 »

Thaddy

  • Hero Member
  • *****
  • Posts: 16945
  • Ceterum censeo Trump esse delendam
Re: How to switch my win10desktop-Mode is in browser-web?
« Reply #1 on: April 22, 2025, 12:52:46 pm »
What you are looking for is not desktop mode but kiosk mode. I only know how to do do that in Chromium based browsers (like Chrome and Edge). It won't block other programs, but prevents them from showing when the kiosk has focus.
I have two simple examples:
1. using TProcess (not written by me):
Code: Pascal  [Select][+][-]
  1. {$mode objfpc}
  2. uses
  3.   SysUtils, Process;
  4.  
  5. procedure LaunchKioskBrowser;
  6. var
  7.   Proc: TProcess;
  8. begin
  9.   Proc := TProcess.Create(nil);
  10.   try
  11.     {$IFDEF UNIX}
  12.       // On Linux, the executable might be named 'chromium-browser'
  13.       Proc.Executable := 'chromium-browser';
  14.     {$ENDIF}
  15.     {$IFDEF WINDOWS}
  16.       // Update the path as needed on Windows
  17.       Proc.Executable := 'C:\Path\To\chrome.exe';
  18.     {$ENDIF}
  19.    
  20.     // Pass the necessary command-line arguments for kiosk mode:
  21.     // --kiosk : launches the browser in full-screen mode without window borders.
  22.     // --noerrdialogs : suppresses error dialogs.
  23.     // --disable-infobars : hides notifications like "Chrome is being controlled".
  24.     Proc.Parameters.Add('--kiosk');
  25.     Proc.Parameters.Add('--noerrdialogs');
  26.     Proc.Parameters.Add('--disable-infobars');
  27.     Proc.Parameters.Add('--disable-session-crashed-bubble');
  28.    
  29.     // Point to the URL you want to display. You could also add more parameters if needed.
  30.     Proc.Parameters.Add('http://yourwebsite.com');
  31.    
  32.     // Execute the process.
  33.     Proc.Execute;
  34.   finally
  35.     Proc.Free;
  36.   end;
  37. end;
2. More complex, using CEF. I will add that later because I have to find it...But that I did write.

There's a third option using node.js and pas2js. I believe there is an example for that, that comes with pas2js.
« Last Edit: April 22, 2025, 01:07:43 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

d2010

  • Full Member
  • ***
  • Posts: 161
Q
« Reply #2 on: April 22, 2025, 01:09:54 pm »
What you are looking for is not desktop mode but kiosk mode. I only know how to do do that in Chromium based browsers (like Chrome and Edge). It won't block other programs, but prevents them from showing when the kiosk has focus.
I have two simple examples:
1. using TProcess (not written by me):
Your code is Good solution for C:Q2 and C:Q3 , great code,(enough for Me). 8) Thank you.
I solved both C:Q2 and C:Q3. bellow, thanks Thaddy , (I dublicate here..)
 %)
optionally=
C:Q2=How to detect the my win10desktop is "BrowserMode"?
    Here I can calculate the sum-opera.exe activity.

C:Q3=Can you give me, other/s a list of win10dektop-Mode?
  Perhaps you need some examples from me, examples of win10kiosk-Mode.
Code: [Select]
200=IF I start SolidWork.exe then  My entire pc+desktop is win10kios-Mode=Tech Mech Top-power of -Mesh.
201=If I run RedAlert3.exe and games with very-power-of-opengl, then
win10kiosk-Mode=Opengl-Games3Dmode.
202=If I wrote one DVD-R with 4.7Gb, then  win10desktop-Mode=DvdWrote, and
all others/ application must "blocked" by the user.
« Last Edit: April 22, 2025, 08:32:46 pm by d2010 »

 

TinyPortal © 2005-2018