ProcessIt Library Released 1.0 beta

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

ProcessIt Library Released 1.0 beta

Post by NoahPhense »

ProcessIt Library 1.0 beta

*UPDATED*

This Library has 3 functions.

FindProcess()
KillProcess()
GetProcessID()

Comes complete with the library, integrated help file for F1
usage inside the IDE, a resident file, and an example PB file.

Download 1 - ZIP FILE

Download 2 - RAR FILE

Enjoy!

For those of you that have websites an such, feel free to host this file.

** EDIT SEPT 19 2004 **

Per request, added:
GetProcessFilename()

Just install one of the above packages.. then copy this lib over the installed
one. I have not had time to update the chm, or the installer..

ProcessIt_Lib - Library Download Only

Code: Select all

;Usage:
Debug GetProcessFilename("Full or Partial Process Name")

;Or

st.s = GetProcessFilename("Full or Partial Process Name")

If Trim(st) = ""
  Debug "process not found"
EndIf

; returns empty string if process not found
; otherwise return filename ..
- np
Last edited by NoahPhense on Sun Sep 19, 2004 7:52 pm, edited 3 times in total.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

very nice lib.

u just need to mention that it works text based, so you dont have to find
the procid manually, but you specify the process title!

One thing i would like is id=FindProcessId(name.s)
to find the process id by name!
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

thefool wrote:very nice lib.

u just need to mention that it works text based, so you dont have to find
the procid manually, but you specify the process title!

One thing i would like is id=FindProcessId(name.s)
to find the process id by name!
Actually, no need for me to mention it, as there is a nice help file with
how-to's inside. As well, there is an included example PB file included,
as mentioned above.

As for the returning the processID.. I will work that one in, for the
next release.

- np
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: ProcessIt Library Released 1.0 beta

Post by J. Baker »

NoahPhense wrote:ProcessIt Library 1.0 beta
For those of you that have websites an such., feel free to host this file.
http://www.flashpulse.com/download/Proc ... taller.exe

Nice Lib :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: ProcessIt Library Released 1.0 beta

Post by NoahPhense »

J. Baker wrote:
NoahPhense wrote:ProcessIt Library 1.0 beta
For those of you that have websites an such., feel free to host this file.
http://www.flashpulse.com/download/Proc ... taller.exe

Nice Lib :D
Excellent, thanks.. could you do me a huge favor.. ;)

The library has been updated.. could you re-upload the file?

*NEW COMMAND*
GetProcessID() - get id from name .. etc.. read the help file and example

Same download location as first post.

- np
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

No problem but your link is bad at the moment. I'll keep trying.

EDIT It's updated. :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

J. Baker wrote:No problem but your link is bad at the moment. I'll keep trying.

EDIT It's updated. :D
Ok, I've updated my above links. It appears that my site doesn't like
exe's (sometimes), which is understandable. But anyhow, I've packaged
up the exe in a RAR and ZIP file.

- np
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

:D
http://www.flashpulse.com/download/Proc ... taller.exe
http://www.flashpulse.com/download/Proc ... taller.zip
http://www.flashpulse.com/download/Proc ... taller.rar

Hey NoahPhense, if you want you can post these links to your top post. So there easy to find, once this post gets longer. Also just drop me an email when you need them updated. jbaker at flashpulse dot com
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

@noaphence:

well there is. People would like to know what this lib can do.
Because if it wasnt that this lib used text to find procedures, i could
just use api's. like killprocess_() , but that only works with process id.

so thats why your lib is good.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

thefool wrote:so thats why your lib is good.
@thefool
FindProcess()
KillProcess()
GetProcessID()

If people can't get an idea of what's in the library from these... then there
is a good chance that they should not be using a lib like this one anyways.

PS - inside the lib is already a procedure
Procedure.l KillProcessBy_ID(pid)

All I have to do is make it public:
ProcedureDLL.l KillProcessBy_ID(pid)

And it can be used on the outside.. I MIGHT do that in the future.. but
I would be reversing the animal. It's easy to get a processID, and it's
easy to kill a process.. as you have noted.. ;)

But not so easy to find it and kill it by name..

- np
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

thx 8)
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

J. Baker wrote::D
http://www.flashpulse.com/download/Proc ... taller.exe
http://www.flashpulse.com/download/Proc ... taller.zip
http://www.flashpulse.com/download/Proc ... taller.rar

Hey NoahPhense, if you want you can post these links to your top post. So there easy to find, once this post gets longer. Also just drop me an email when you need them updated. jbaker at flashpulse dot com
Excellent. Email noted. I will drop those links to the original post.

- np
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

thefool wrote:thx 8)
Go ahead.. spit out your next request.. ;)

- np
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

lol. :D

You two really get on well together.
@}--`--,-- A rose by any other name ..
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

@dare2: hehe u should see our msn logs :D

well another request?
ok since u ask me so nicely to find a request, let me think...

well since the lib now spits out the process id from name (wich is the hardest part), everything can be done more easly.
But since pb compiler includes needed procedures only, many procedures wont hurt, and will just be easier to use. So another request is :

GetProcessFileName(processname.s)

hehe


but anyway its a nice lib.
Post Reply