• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Using Tasker with OfficeSuite

bruce73

Android Enthusiast
Feb 14, 2012
379
45
Los Angeles
Interesting situation here. I've created a simple profile that extends the screen timeout to 3 minutes for certain apps, Office Suite being one of them. When I open OS, the profile kicks in, but was soon as I open a file to edit, I lose it. I'm guessing this is because the edit window is a sort of overlay, so Tasker doesn't see OS running in the background. Is there any way around this?
 
Turns out if I use %WIN I can get the profile to run, but if I pull up a context menu it won't be landscaped, since its title (whatever that is) takes the focus and doesn't fit the profile.

This is if I use the %WIN variable as the context for the profile. Would it make more sense to do an application (OfficeSuite) context and then set the variable within the task by using a wildcard to cover the context menus?

If I sound confused, I am. :D
 
Upvote 0
Turns out if I use %WIN I can get the profile to run, but if I pull up a context menu it won't be landscaped, since its title (whatever that is) takes the focus and doesn't fit the profile.

This is if I use the %WIN variable as the context for the profile. Would it make more sense to do an application (OfficeSuite) context and then set the variable within the task by using a wildcard to cover the context menus?

If I sound confused, I am. :D

I believe %WIN is a system variable so it probably shouldn't be set by the user. I'd probably figure out the required %WIN values using a simple alert flash on value change first, then set a global user variable when %WIN matches any of the found values or the office app is running. Then I'd use that global user variable to trigger the required profile.
 
  • Like
Reactions: bruce73
Upvote 0
I believe %WIN is a system variable so it probably shouldn't be set by the user. I'd probably figure out the required %WIN values using a simple alert flash on value change first, then set a global user variable when %WIN matches any of the found values or the office app is running. Then I'd use that global user variable to trigger the required profile.

I have no idea what that means, but thank you. ;-)
 
Upvote 0
Sorry - had my day job (software developer) head on when I typed that..

You shouldn't try and set %WIN just read the values because it's values are set by Tasker based on its integration with the phone (that's what I meant by system variable).

Under the Alert actions you can do a Flash which briefly displays a message containing the information that you set in the action.
If you setup a quick profile using a context of %WIN set to display a Flash containing the %WIN value, you should be able to enable the profile and then run Office Suite etc to see the values of %WIN that you need to check for with your finished profile. Make a note of those values (a, b, c, etc) - this gives you the information to actually make your desired profile(s).

Then you can setup a series of Profiles based on %WIN value being a, b, c, etc. and use them to set your own global user variable e.g. %OFFICE to 1, clearing the value of %OFFICE on exit. Then use a profile triggered when %OFFICE = 1 to run a task with the desired behaviour.
 
  • Like
Reactions: bruce73
Upvote 0
Got it.

So I created a profile to read the WIN values, which works great, but there's no name associated with the popup context menus. If I make a selection from the menu, like "Find & Replace," then that window does have a title. Apparently Android doesn't consider popups "windows." (??)

So I'm up against the same problem: if I create a profile to turn auto rotation on, the files will be landscaped, but not the popups. Hopefully that makes some sort of sense.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones