Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Executable Plugins?

Author
Message
Explosm69
15
Years of Service
User Offline
Joined: 22nd Jul 2010
Location:
Posted: 9th Oct 2010 06:04
I was wondering if there is any plugins that include executables, for example lets say your command says


yet you don't want to actually execute it, just locate the executable if it is running. probaly looking something like this

If anyone has a clue on if there is a plugin like that please tell me. I would say what im working on but that'll just you know...

Cyanide & Happiness 4 Ever
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 9th Oct 2010 13:57 Edited at: 9th Oct 2010 14:00


Not quite what you were looking for I guess, but maybe it'll do?

Edit: the dll call will return the window handle, which according to the help files is likely what is used with the stop executable / etc. functions.

Explosm69
15
Years of Service
User Offline
Joined: 22nd Jul 2010
Location:
Posted: 9th Oct 2010 20:29 Edited at: 9th Oct 2010 20:40
Doesn't Work at least for me


[Edit] If there is no plugin for it, then how do you make plugins?

Cyanide & Happiness 4 Ever
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Oct 2010 00:34
The problem with searching for notepad by using the window name is that the window name changes when you have a file open in notepad.

What you can do instead is check to see if the window class for notepad exists - luckily, the class itself is named 'Notepad', so it's something unique-ish to search for.

Here's some code (requires one of my plug-ins for it to compile):


Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet

Login to post a reply

Server time is: 2026-07-22 03:50:55
Your offset time is: 2026-07-22 03:50:55