← Back to team overview

sikuli-driver team mailing list archive

[Bug 670227] Re: switchApp is not correct in Linux

 

This seems to work for me in 0.10.1... Try this:

setAutoWaitTimeout(600)
type(Key.F2,KEY_ALT)
sleep(1)
type("zenity --info --text ""IWasHEREz""\n")
sleep(1)
switchApp("gimp")
sleep(1)
switchApp("gedit")

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/670227

Title:
  switchApp is not correct in Linux

Status in Sikuli:
  Won't Fix

Bug description:
  sikuli version: 0.10.2
  OS:  ubuntu 10.04

  once I ran switchApp("appName"), it can only work when the appName is the app related windows title, otherwise like real application binary name provided, this command won't work.
  it seems working like in Windows environment.

  I opened an vnc session by command "vncviewer IP:port", and the
  application was launched, its title is "TightVNC ....".  if I ran
  switchApp("vncviewer"), the window couldn't be brought to foreground.
  however it did if I used the command switchApp("TightVNC").