Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Skinz 0.1

From: greggirwin:mindspring at: 23-Feb-2002 10:54

Hi Terry, << Question: How do we get the Winamp handle using this excerpt below as a guide... What I don't get is how do we search a window title to find a name with a particular string in it, in this case "Winamp v1.x" >> Here are working calls for FindWindow. The -by-name and -by-class versions should really have wrappers so you don't have to pass the 0 parameter, but I have to run off to a wedding here... win-user: load/library %user32.dll find-window: make routine! [ ClassName [string! integer!] WindowName [string! integer!] return: [integer!] ] win-user "FindWindowA" find-window-by-class: make routine! [ ClassName [string!] WindowName [integer!] return: [integer!] ] win-user "FindWindowA" find-window-by-name: make routine! [ ClassName [integer!] WindowName [string!] return: [integer!] ] win-user "FindWindowA" print find-window "REBOL" "REBOL/View" print find-window-by-name 0 "REBOL/View" print find-window-by-class "Winamp v1.x" 0 I couldn't find any suitable MP3 stuff myself when I looked. A few things that might be a starting point, but I haven't taken the time to dig into them. --Gregg