← Back to team overview

sikuli-driver team mailing list archive

[Bug 1272209] [NEW] [request] App.focus() should work with fullscreen apps too

 

Public bug reported:

*** workaround ***

simulate the system's app switching keyboard and/or mouse actions
e.g. on Windows alt-tab

----------------------------------

I'm using a full screen GUI along with a simulator application. I open
the simulator successfully, then I manipulate the GUI. Later in the
script when I need to access the simulator, it's hidden behind the GUI
so .focus() does not work.

With simApp = App("BodyTom Simulator") declared at the top I've attempted:
1. simApp.focus()
2. if not simApp.window():
        openApp(simApp)
        simApp.focus()
    else:
       simApp.focus()

P.S. I am running on Windows.

Any help would be greatly appreciated!

Thanks!

** Affects: sikuli
     Importance: Low
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Low

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.2.0

** Description changed:

+ *** workaround ***
+ 
+ simulate the system's app switching keyboard and/or mouse actions
+ e.g. on Windows alt-tab
+ 
+ ----------------------------------
+ 
  I'm using a full screen GUI along with a simulator application. I open
  the simulator successfully, then I manipulate the GUI. Later in the
  script when I need to access the simulator, it's hidden behind the GUI
  so .focus() does not work.
  
  With simApp = App("BodyTom Simulator") declared at the top I've attempted:
  1. simApp.focus()
  2. if not simApp.window():
-         openApp(simApp)
-         simApp.focus()
-     else:
-        simApp.focus()
+         openApp(simApp)
+         simApp.focus()
+     else:
+        simApp.focus()
  
- 
- P.S. I am running on Windows. 
+ P.S. I am running on Windows.
  
  Any help would be greatly appreciated!
  
  Thanks!

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

Title:
  [request] App.focus() should work with fullscreen apps too

Status in Sikuli:
  In Progress

Bug description:
  *** workaround ***

  simulate the system's app switching keyboard and/or mouse actions
  e.g. on Windows alt-tab

  ----------------------------------

  I'm using a full screen GUI along with a simulator application. I open
  the simulator successfully, then I manipulate the GUI. Later in the
  script when I need to access the simulator, it's hidden behind the GUI
  so .focus() does not work.

  With simApp = App("BodyTom Simulator") declared at the top I've attempted:
  1. simApp.focus()
  2. if not simApp.window():
          openApp(simApp)
          simApp.focus()
      else:
         simApp.focus()

  P.S. I am running on Windows.

  Any help would be greatly appreciated!

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1272209/+subscriptions


Follow ups

References