@Eugene:
dc_spawnurl does indeed fail (and produce error) on some machines (w10+domain+security restrictions), but there is replacement
If it is only to open certain webpage, then use sample:
//ShellOpenFile( "
https://duckduckgo.com/?q=ShellExecuteA&t=h_&ia=web", .f., "open", )
//code : it was posted long ago in some forum, can't find author , thus credited to anonymous
#define SW_HIDE 0
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
PROCEDURE ShellOpenFile( cFile, lHidden, cAction, cCommandLineParams )
IF ValType(cAction) == "U"
cAction := "open"
ENDIF
IF lHidden
DllCall( "SHELL32.DLL" , DLL_STDCALL, ;
"ShellExecuteA", AppDesktop():GetHWND(), cAction, cFile, ;
cCommandLineParams, CurDir(), SW_HIDE )
ELSE
DllCall( "SHELL32.DLL" , DLL_STDCALL, ;
"ShellExecuteA", AppDesktop():GetHWND(), cAction, cFile, ;
cCommandLineParams, CurDir(), SW_NORMAL )
ENDIF
RETURN
Eugene Lutsenko wrote: ↑Mon Mar 07, 2022 11:02 pm
Thank you, Roger! Are there any other functions (not DC_Spawn URL()) to launch a website for execution?
P.S. I also walk the dog in the morning and drink coffee, more precisely chicory:)