PDA

View Full Version : [Help]


Loki
03-15-2002, 09:40 PM
how can i get a task id for a program with out using the "shell" function?

mrbojangle
03-15-2002, 10:40 PM
O.o this is a new one on me,
can you explain further more? pleez?

Loki
03-16-2002, 04:27 PM
well, am making a program that will talk to AOL instant messenger windows. trouble is, it's not possible to shell a message window to find out it's task id. so, i would love to know some alternate way in visual basic or some windows tool to show me process IDs.

a task id is a random (7 digit?) number assigned to every program open, and is a way to communicate with the appactivate program.

mrbojangle
03-17-2002, 02:34 PM
ok, fist off you have to detirmine if AIM is compatiable for inputing variables into it from another program, see if you can find out if you can work with it, if there is open spots in the programming for that kind of stuff, u know wat im saying if soo, then you should be able to get the id,
MATT

Loki
03-17-2002, 11:33 PM
----------->
0_0
my way of saying that went right past me without me even noticing.

mrbojangle
03-17-2002, 11:45 PM
You need to find out if you can call into AIM,
which i looked it up, and you can,
ill get you more info in the morning

JimCamel
03-18-2002, 02:47 AM
Loki, have you tried pscode.com/vb ?
There's sh*t loads of AOL proggs there.
try this (http://www.pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?lngWId=1&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&txtCriteria=aol&optSort=Alphabetical)

mrbojangle
03-18-2002, 06:13 PM
O_O hehe, a site i didnt know about O.o
thanx JIm Camel!

JimCamel
03-19-2002, 06:46 AM
I find it surprising that you didn't, since it apparently is the largest code depository on the net.
Jim

mrbojangle
03-19-2002, 07:11 PM
Ya,
the only thing i really have used ALOT, is MSDN library, the online hookup(only accessable by southercompany, intergraph) but thanx for the link, new SOURCE ^.~

Cheers,
Matt

Loki
03-19-2002, 07:46 PM
my msdn library is broken..

comrade
06-18-2002, 12:44 PM
Here:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, ByVal pid As Long) As Long

Dim wnd As Long, pid As Long
wnd = FindWindow("ThunderRT6Main", Me.Caption)
GetWindowThreadProcessId wnd, VarPtr(pid)
MsgBox "The task ID is " & CStr(pid)