Space is not a great separator, Jitendra. The reason is that if u have a string "click me", it's 2 words, & u don't wanna click the word me. Try to find another separator, e.g, newline, tab, etc. When I can, I try to use a list of object names rather than strings. However, here is some code that might do similarly to what u want. Note that separator has been defined in the header file as "\007" Basically it walks the window, collecting the list of the desired items, & then displaying them in a list. Void Function FindButtons (string track) var handle wh, handle HTrack, string windowname, string list, string SelectedItem, int item let windowname = track + " Track" if (StringContains(GetWindowName(GetRealWindow(GetCurrentwindow())), "DirectX Plugins")) then ;in synth settings dialog, 1st combo is to select synth let wh = FindWindow(GetTopLevelWindow(GetCurrentWindow()), "", windowname) if (wh) then ;wh let HTrack = wh MoveToWindow(wh) LeftMouseButton() let wh = GetFirstChild(wh) let wh = GetLastWindow(wh) while (wh && !IsKeyWaiting ()) let wh = GetPriorWindow(wh) pause() if (GetWindowSubtypeCode(wh) == wt_button) then ;button let list = list + GetWindowName(wh)+separator endif ;button endWhile PcCursor() let item = DlgSelectItemInList (list, "Synth Settings Dialog", 0, 1) let selectedItem = StringSegment(list, separator, item) let wh = FindWindow(HTrack, wcButton, selectedItem) if (wh) then ;handle of the button was found? MoveToWindow(wh) LeftMouseButton() endif ;handle of the button was found? endif ;window was found, we're in synth settings else ;not in synth dialog, whole thing is invalid say(msgErr4, ot_message) endif;synth dialog PcCursor() return EndFunction On 8/5/09, Jitendra <jeet.invincible@xxxxxxxxx> wrote: > Hello friends, is it possible to get a window of interest, store the > text and create a list of string segments using space as seperater, and > when user presses enter on one of those strings, that string is clicked? > For example: > Globals > Int ICid, > String Str1 > then cid is used to find the window we want, and str1 stores the text, > and if id's are same, can window class be used in place of it? > Thank you, Jitendra. > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Change the world--1 deed at a time Jackie McBride Check out my homepage at: www.abletec.serverheaven.net & please join my fight against breast cancer <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489> __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts