twapi memory fault. heeeeeeeeeeeellllllpppppp

From: Mel (mheravi_at_websense.com)
Date: 09/09/04


Date: 9 Sep 2004 08:02:50 -0700

i get memory fault when i run one of the examples from twap package

 TWAPI example
# Show all windows for the given application
# Usage example: tclsh showwindows.example APPLICATIONNAME

package require twapi

if {$argc != 1} {
    puts stderr "Usage: [info nameofexecutable] $argv0 APPNAME"
    puts stderr "Example: [info nameofexecutable] $argv0 notepad"
    exit 1
}

set appname [lindex $argv 0]
# Add an extension if none specified
if {[file extension $appname] == ""} {
    append appname .*
}

# Get all pids with that app name
set pids [twapi::get_process_ids -glob -name $appname]

# We have to be careful to only show windows that are not supposed to be
# hidden so only show windows if they have a caption
foreach hwin [twapi::find_windows -pids $pids -caption true] {
    twapi::show_window $hwin
}



Relevant Pages

  • Re: ANNOUNCE: Tcl Windows API 2.0.9 (alpha) released
    ... If you are using Tcl 8.5, you are strongly encouraged to upgrade from ... Major features since V1.1 include support for writing Windows services ... monitoring, ... If you can run the TWAPI test scripts on Vista, ...
    (comp.lang.tcl)
  • Re: transparency
    ... windows, windows with holes in them, and desktop widgets like this ... SetLayeredWindowAttributes to TWAPI. ... proc dragStart { ... # Set transparency color (red is 0x0000ff as per Windows COLORREF ...
    (comp.lang.tcl)
  • ANNOUNCE: Tcl Windows API (TWAPI) 3.1.17
    ... Version 3.1.17 of the Tcl Windows API (TWAPI) extension has been released. ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: Tcl Windows API 2.0 Beta
    ... based scripts in the twapi tests directory. ... access to over 460 functions in the Windows API ... User and group management ...
    (comp.lang.tcl)
  • ANNOUNCE: Tcl Windows API 3.0 Alpha release
    ... Development version 3.0.1 Alpha of the Tcl Windows API (TWAPI) ... New Vista and Windows 7 security functions including UAC ... Device management API's ... TWAPI is distributed in multiple formats. ...
    (comp.lang.tcl)