Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: System interactor
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 5, 2017 10:46 PM    Post subject: System interactor

Jarek

This seems to be a silly question as I know I have made this work before.

I am attempting to toggle between runtime one and runtime 2. I have the design settings to unhide runtime 2.

I use a system interactor connected to a button. The button is set to enabled at start and to send true when clicked, nothing on release.

I start the design click the button to switch to runtime 2 but nothing happens.

I can use the Hide runtime and show runtime function but I would rather just switch between windows if possible


Thanks
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jan 5, 2017 10:51 PM    Post subject:

Did you try to use the "Request focus" input on WindowInteractor?

I think that should do what you need.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 5, 2017 11:17 PM    Post subject:

Thanks,

That works, the hide runtime is visually a little better because runtime 2 will be smaller that runtime 1. Using the window interactor leaves one window open behind the other.

Does the "switch to" command in the sytem interactor not work, or has it function been shifted to other elements?

I could swear I used it with LENS
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jan 5, 2017 11:44 PM    Post subject:

No, the SwitchRuntime has never done anything on Windows (only Android).

There is a very good chance there is such option, but I can't remember now what it could be.

I could improve SwitchRuntime and implement it on Windows. That would be a relatively easy to do.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 6, 2017 12:01 AM    Post subject:

Jarek,

Thanks,

I know I used that command at one point in time. Must have been when I was trying to put stuff together for Pocket neurobics.

If it is an easy matter to implement the function on Windows that wouod be great, but the solution with hide/show runtime works very well

Would that minimize one window while showing the other?

George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jan 6, 2017 1:01 AM    Post subject:

It could be that way (minimize). Or hide one while showing the other.

Let me know which one you prefer.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 6, 2017 1:48 AM    Post subject:

Minimize would be the more flexible option.

Thanks

George
Reply to topic