You can use a shellexec function to open any website.
But can you use a similar function to close the website again if, for example, you only want to look at the website for a moment. (e.g. wait window 5) ???
Of course you can manually click on the cross in the top right of the website with the mouse, but if you want to quickly look at several websites one after the other, it would be desirable to be able to do this automatically in an individual time sequence.
The function I use to open a web-page is this one:
There is another effect - when you open too many internet-windows (means you let every site open) it would be better not to stretch the tabs across the windows, there could be too many then, or the memory will be overloaded.
This can be avoided you can do this in the browser settings - but then you have to change it back later because it is normally a sensible setting.
Thanks for help
Klaus
Peace worldwide - it starts here...
But can you use a similar function to close the website again if, for example, you only want to look at the website for a moment. (e.g. wait window 5) ???
Of course you can manually click on the cross in the top right of the website with the mouse, but if you want to quickly look at several websites one after the other, it would be desirable to be able to do this automatically in an individual time sequence.
The function I use to open a web-page is this one:
Code:
*Example:
*Source: Book with function by Rick Strahl "Internet Applications with VFp 6,0 - Page 194 edited 1999"
shellExec("[URL unfurl="true"]https://www.google.com/search?client=firefox-b-d&q=aktienkurs+rheinmetall/")[/URL]
FUNCTION ShellExec
LPARAMETERS lcLink,lcAction,lcParms
lcAction = IIF(EMPTY(lcAction), "Open",lcAction)
lcParms = IIF(EMPTY(lcParms),"",lcParms)
DECLARE INTEGER ShellExecute IN shell32.DLL ;
INTEGER hWinHandle, ;
STRING cOperation, ;
STRING cFileName, ;
STRING cParameters, ;
STRING cDirectory, ;
INTEGER nShowWindow
DECLARE INTEGER FindWindow ;
IN WIN32API ;
STRING cNull,STRING cWinname
RETURN ShellExecute(FindWindow(0,_Screen.Caption),;
lcAction,lcLink, ;
lcParms,SYS(2023),1)
There is another effect - when you open too many internet-windows (means you let every site open) it would be better not to stretch the tabs across the windows, there could be too many then, or the memory will be overloaded.
This can be avoided you can do this in the browser settings - but then you have to change it back later because it is normally a sensible setting.
Thanks for help
Klaus
Peace worldwide - it starts here...