Page 1 of 1

Runprogram

Posted: Wed Jan 22, 2025 8:08 am
by loulou2522
Hi all
what is the Spiderbasic equivalent of the Purebasic runprogramn function?
Thanks in advance

Re: Runprogram

Posted: Wed Jan 22, 2025 8:38 am
by Caronte3D
I think no RunProgram exists for SB (Web Browser limitations).
Maybe you should take a look at @IDLE excellent renewed: Atomic Server 3, so you could launch some code on the server side calling from your SB code.

Re: Runprogram

Posted: Wed Jan 22, 2025 8:45 am
by loulou2522
In fact, what I want to do is launching an external executable programm. Is it possible to use Httpget? My version of sb is windows and my pc on winodws 11

Re: Runprogram

Posted: Wed Jan 22, 2025 8:50 am
by Dirk Geppert
I can't remember where I got it. I suspect that Master Kiffi once posted it.

Code: Select all

Procedure RunProgram(Filename.s, Parameter.s = "")
  !  if (v_parameter != "") {
  !    var win = window.open(v_filename, v_parameter);
  !    win.focus();
  !  } else {
  !    window.open(v_filename);
  !  }
EndProcedure

Re: Runprogram

Posted: Wed Jan 22, 2025 8:50 am
by plouf
practically you cant spiderbasic is web app, aka a website

its prohibited to security reasons, i..e too many virus use that :)

Re: Runprogram

Posted: Wed Jan 22, 2025 8:55 am
by Dirk Geppert
Yes indeed. I only use RunProgram() to open an external web page in the browser...

Re: Runprogram

Posted: Wed Jan 22, 2025 12:05 pm
by Caronte3D
Dirk Geppert wrote: Wed Jan 22, 2025 8:50 am I can't remember where I got it. I suspect that Master Kiffi once posted it.
Doesn't work for me.

Re: Runprogram

Posted: Wed Jan 22, 2025 12:06 pm
by Caronte3D
Dirk Geppert wrote: Wed Jan 22, 2025 8:55 am Yes indeed. I only use RunProgram() to open an external web page in the browser...
Maybe you could open the web page inside you SB app.

Re: Runprogram

Posted: Wed Jan 22, 2025 1:55 pm
by morosh