|
RunFile
Sept 4, 2006 19:53:15 GMT -5
Post by davy on Sept 4, 2006 19:53:15 GMT -5
DLL Download: p13.wikispaces.com/space/showimage/RunFile.dllHere's a small dll in case anyone needs it, it only has two functions... (these are just examples) RunFile("Notepad.exe") OpenWebSite("http:\\p13.wikispaces.com")
And thats it! I'm sure you'll figure it out... I just figured someone might be interested in being able to open sites and call programs. This really only works in a windowed mode (otherwise you cant see anything).
|
|
|
RunFile
Sept 5, 2006 4:22:28 GMT -5
Post by James :) (aka Madcow) on Sept 5, 2006 4:22:28 GMT -5
don't run in fullscreen mode it will make it super hard to get out of
|
|
|
RunFile
Sept 5, 2006 4:28:57 GMT -5
Post by James :) (aka Madcow) on Sept 5, 2006 4:28:57 GMT -5
open website dose not work it only opens cmd
|
|
|
RunFile
Sept 5, 2006 7:02:27 GMT -5
Post by davy on Sept 5, 2006 7:02:27 GMT -5
What browser do you use? It should work on most, but maybe not...
And yes, these are for windowed mode, it doent make sense to open something in fullscreen mode... Unless it were just for running something in the background.
|
|
|
RunFile
Sept 5, 2006 8:20:38 GMT -5
Post by dw817 on Sept 5, 2006 8:20:38 GMT -5
Hi Davy: * To open a webpage, in DOS you can use: START website.com/page.htmIt doesn't matter what browser you have, it will work every time. And DON'T use quotes " between the website, or it won't work. Hope This Helps ! /)avid
|
|
|
RunFile
Sept 5, 2006 8:32:03 GMT -5
Post by James :) (aka Madcow) on Sept 5, 2006 8:32:03 GMT -5
u'm well i have 2 browsers but firefox is my custom defult in win xp
also davy thank you for this dilli am gonna release another b4messenger with support for this dill. then my gui (nearly finshed)
also it only displays the webpage after i close cmd
|
|
|
RunFile
Sept 5, 2006 13:44:41 GMT -5
Post by James :) (aka Madcow) on Sept 5, 2006 13:44:41 GMT -5
ok if you find openwebsite opens cmd and you have to close it before it works then do this
run your browsers exe file then open a website
also some thing intrestiing when editing shortcuts in windows
in the target box of it if you add -url after the speach marks then type this "<url>" then if it links to a browser it will open viewing that website
|
|
|
RunFile
Sept 5, 2006 14:44:43 GMT -5
Post by davy on Sept 5, 2006 14:44:43 GMT -5
Hmm... They both work fine for me, but here is the source for them if you're interested... /// Start /// void DLLFUNC Func_RunFile(IDLL_Basic4GL_Runtime &basic4gl) { const char *file = basic4gl.GetStringParam(1); system(file); }
void DLLFUNC Func_OpenWebSite(IDLL_Basic4GL_Runtime &basic4gl) { const char *URL = basic4gl.GetStringParam(1); ShellExecute( NULL, "open", URL, NULL, "C:\\", SW_SHOW ); } /// End ///
And then they get registered with this... /// Start /// registry.RegisterVoidFunction("RunFile", Func_RunFile); registry.AddParam(DLL_BASIC4GL_STRING);
registry.RegisterVoidFunction("OpenWebSite", Func_OpenWebSite); registry.AddParam(DLL_BASIC4GL_STRING); /// End ///
And thats it.
|
|
stu
Posts a bit
 
Posts: 150
|
RunFile
Sept 5, 2006 17:13:09 GMT -5
Post by stu on Sept 5, 2006 17:13:09 GMT -5
For me, running Firefox as default browser with Windows XP, OpenWebSite works fine. However, Runfile isn't working for me. I tried using the full path ("C:\Program Files\...") to multiple programs, but it only flashes a console for a split second then does nothing. Is the full path not what I'm supposed to use?
|
|
|
RunFile
Sept 5, 2006 17:16:30 GMT -5
Post by James :) (aka Madcow) on Sept 5, 2006 17:16:30 GMT -5
it looks though program files by deafult i guess
|
|
|
RunFile
Sept 6, 2006 11:26:34 GMT -5
Post by Nicky Peter Hollyoake on Sept 6, 2006 11:26:34 GMT -5
how do you make dll's? is it a different kinf of kinding? sorry don't know much about dll files
|
|
|
RunFile
Sept 6, 2006 13:42:21 GMT -5
Post by James :) (aka Madcow) on Sept 6, 2006 13:42:21 GMT -5
you need the latest basic4gl , some knolege of c++ , a c++ editor and dill maker and the dill skd + how to make the dill and how to make it compatible with basic4gl
|
|
stu
Posts a bit
 
Posts: 150
|
RunFile
Sept 10, 2006 16:28:42 GMT -5
Post by stu on Sept 10, 2006 16:28:42 GMT -5
you need the latest basic4gl , some knolege of c++ , a c++ editor and dill maker and the dill skd + how to make the dill and how to make it compatible with basic4gl I'm interested in messing around with this a bit. Where do you get the DLL maker and SDK? I missed the whole beginning of this DLL support, so I didn't see anything in terms of requirements and what was needed.
|
|
|
RunFile
Sept 10, 2006 17:04:40 GMT -5
Post by davy on Sept 10, 2006 17:04:40 GMT -5
Ok, I posted on this a little while ago. This should help... Ok, you need the new basic4gl, the dll sdk, and codeblocks... basic4gl.net/Setup%20Basic4GL%20v2.4.3.exebasic4gl.net/DLL%20SDK.zipwww.codeblocks.orgOnce you have all of those installed and ready... You open up the dll sdk (DLL software development kit) and click on one of the projects such as "PluginDLL.cbp" (the one with the red/green/yellow/blue symbol)... This should open up codeblocks with the dll project. If you hit "Build" or ctrl+F9 then it will compile the dll... Then you open up the "Bin" folder in the dll sdk and your PluginDLL.dll file should be there. Thats it, you just compiled a dll. Now... To write your own functions is a little more difficult, it requires you learn some c++. But you should get used to the compiler and where everything goes first.
|
|
|
RunFile
Nov 7, 2007 18:08:37 GMT -5
Post by James :) (aka Madcow) on Nov 7, 2007 18:08:37 GMT -5
i'm trying to rebuild the dll but is there a file i'm not including cause codeblocks is complaning
|
|