tasksNamedLike: aString
| tList listSize location matchingList |
listSize := 100.
matchingList := OrderedCollection new.
tList := self new taskList: listSize.
1 to: listSize do: [ :i |
location := (tList at: ('processName', (i printString))) indexOfSubCollection: aString startingAt: 1.
location = 0
ifFalse: [matchingList add: (tList at: ('processID', (i printString))).].
].
^matchingList.
taskList: aSize
| tListStructure tListPointer tListFunction rc |
tListStructure := (self taskListStructureCompoundType: aSize) newRecord.
tListPointer := (tListStructure abtMoveToOSMemory data).
tListFunction := PlatformFunction
callingConvention: 'c'
function: 'GetTaskList'
library: 'SPRDLL'
parameterTypes: #(pointer int32 )
returnType: #int32.
rc := tListFunction callWith: tListPointer with: 100.
tListFunction := PlatformFunction
callingConvention: 'c'
function: 'GetWindowTitles'
library: 'SPRDLL'
parameterTypes: #(pointer int32 )
returnType: #int32.
rc := tListFunction callWith: tListPointer with: 100.
^tListStructure.
I then look through the result for nodialog.exe.
Thanks for looking.
Greetings Steve,Have you tried running nodialog.exe with the "-singleinstance" command line parameter?
https://www.instantiations.com/docs/91/wwhelp/wwhimpl/js/html/wwhelp.htm#href=sg/stug50.html
Hi Richard,I don't see that there is any feedback (unless running a debug version of the the exe).
--
You received this message because you are subscribed to a topic in the Google Groups "VA Smalltalk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/va-smalltalk/Pq5SKuLTkWQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to va-smalltalk...@googlegroups.com.
To post to this group, send email to va-sma...@googlegroups.com.
Visit this group at https://groups.google.com/group/va-smalltalk.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/6aacb3e7-5b2e-4f54-9a4d-01ca4737d56d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to va-smalltalk+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to va-sma...@googlegroups.com.