What is it you're trying to do? If you're trying to get a window that may be minimized (iconified) or in the background into the front, then you'll have to use external key combinations like alt+shift+tab. There's some information on that in this blog entry.
If you're trying to activate a window that is already in the foreground, then using click in active window will help.