Go Back   Android Forums > Android Discussion > Android Applications > Tasker

New Forums: Nexus 6 | Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old December 2nd, 2012, 07:10 PM   #1 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default Using Tasker with OfficeSuite

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?

Advertisements
bruce73 is offline  
Last edited by bruce73; December 3rd, 2012 at 06:36 PM.
Reply With Quote
sponsored links
Old December 6th, 2012, 02:56 PM   #2 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

You may be able to switch on the accessibility service for Tasker and monitor %WIN values to handle the edit window.
__________________
Monkey see, monkey do.

CodeMonkey is online now  
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
bruce73 (December 6th, 2012)
Old December 6th, 2012, 03:27 PM   #3 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Thanks. Can you go into a little more detail or do you have a link that could help me understand this?
bruce73 is offline  
Reply With Quote
Old December 6th, 2012, 04:06 PM   #4 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

Quote:
Originally Posted by bruce73 View Post
Thanks. Can you go into a little more detail or do you have a link that could help me understand this?
Try the Tasker Google group for some really detailed discussions - here's one on %WIN to get you started https://groups.google.com/forum/m/?fromgroups#!topic/tasker/sEALznHa3CI
CodeMonkey is online now  
Reply With Quote
Old December 6th, 2012, 04:11 PM   #5 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Perfect. Thanks a lot.
bruce73 is offline  
Reply With Quote
Old December 6th, 2012, 04:15 PM   #6 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

Quote:
Originally Posted by bruce73 View Post
Perfect. Thanks a lot.
Np. Happy tasking
CodeMonkey is online now  
Reply With Quote
Old December 10th, 2012, 08:06 PM   #7 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

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.
bruce73 is offline  
Last edited by bruce73; December 10th, 2012 at 08:15 PM.
Reply With Quote
Old December 11th, 2012, 03:19 PM   #8 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

Quote:
Originally Posted by bruce73 View Post
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.
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.
CodeMonkey is online now  
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
bruce73 (December 11th, 2012)
Old December 12th, 2012, 07:56 AM   #9 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Quote:
Originally Posted by CodeMonkey View Post
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. ;-)
bruce73 is offline  
Reply With Quote
Old December 12th, 2012, 03:15 PM   #10 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

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.
CodeMonkey is online now  
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
bruce73 (December 12th, 2012)
sponsored links
Old December 12th, 2012, 04:05 PM   #11 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Brilliant, that totally makes sense. I kinda knew the theory behind what you said, but was lost in how to implement it. Thanks for taking the time to walk me through it.

So is it pretty much a rule of thumb not to mess with the value of a system variable?
bruce73 is offline  
Reply With Quote
Old December 12th, 2012, 04:20 PM   #12 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

Quote:
Originally Posted by bruce73 View Post
Brilliant, that totally makes sense. I kinda knew the theory behind what you said, but was lost in how to implement it. Thanks for taking the time to walk me through it.

So is it pretty much a rule of thumb not to mess with the value of a system variable?
Np.

I'd avoid messing with them yes - probably an easy way to do bad things
CodeMonkey is online now  
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
bruce73 (December 12th, 2012)
Old December 12th, 2012, 05:47 PM   #13 (permalink)
Member
Thread Author (OP)
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 383
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

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.
bruce73 is offline  
Reply With Quote
Old December 13th, 2012, 12:32 AM   #14 (permalink)
Senior Member
 
CodeMonkey's Avatar
 
Join Date: Dec 2008
Location: On the sofa
Posts: 567
 
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 14
Thanked 102 Times in 86 Posts
Default

I'm at a loss then I'm afraid. The only thing I can suggest is that you generate a notification when the profile starts and use it to manually exit the profile.
CodeMonkey is online now  
Reply With Quote
The Following User Says Thank You to CodeMonkey For This Useful Post:
bruce73 (December 13th, 2012)
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.