Author Topic: Problems scrolling in RoboBrowser window  (Read 1845 times)

0 Members and 1 Guest are viewing this topic.

MMatty1

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 4
    • View Profile
Problems scrolling in RoboBrowser window
« on: February 28, 2017, 10:15:46 PM »
Hi im Still having issues using robob and scrolling using keyboard emulation {PGUP} or {PGDN} ive tried all 3 methods but no luck,im using newest vox? All other commands work great thnxxx for them guys.Any help Appreciated Thnxx

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Problems scrolling in RoboBrowser window
« Reply #1 on: March 01, 2017, 11:40:39 AM »
Still?

You must be doing something wrong because there is no reason why it should not work.

http://voxcommando.com/mediawiki/index.php?title=Getting_support

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Problems scrolling in RoboBrowser window
« Reply #2 on: March 02, 2017, 05:52:46 PM »
Hi im Still having issues using robob and scrolling using keyboard emulation {PGUP} or {PGDN} ive tried all 3 methods but no luck,im using newest vox? All other commands work great thnxxx for them guys.Any help Appreciated Thnxx

We don't have enough information about what you're doing to help you. We'd need to at least see the xml for the commands you're trying to issue, more information about your process for issuing these commands, what kind of error message you're getting (if any), etc.

These are all standard things that we encourage folks to post when they're seeking help on the forum.

In the case of RoboBrowser windows, there are several RoboBrowser actions for scrolling that you could try if keyboard emulation is not in the cards.

http://voxcommando.com/mediawiki/index.php?title=Plugin_RoboB
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

MMatty1

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 4
    • View Profile
Re: Problems scrolling in RoboBrowser window
« Reply #3 on: March 02, 2017, 08:25:02 PM »
OK sorry didn't give enough information, I'm not home now but when I get home I'll post commands I'm trying to use, and sorry again, I only started using forums a year or so and still learning stuff as I have social phobia and find it hard to say things I normally either figure it out myself or go without..

MMatty1

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 4
    • View Profile
Re: Problems scrolling in RoboBrowser window
« Reply #4 on: March 02, 2017, 09:54:54 PM »
Version 2.2.2.2 Vox

Command attached

in the action ive tried send keys dx input input keys

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.2-->
<command id="451" name="page up" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>InputKeys.Send</cmdType>
    <params>
      <param>{PGUP}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase> page up</phrase>
  <event>UUIRT.IR.MCE.Up</event>
</command>

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Problems scrolling in RoboBrowser window
« Reply #5 on: March 03, 2017, 08:28:00 AM »
Thanks. I'm seeing a few potential problem areas.

1. I see that this command is not first focusing the window that you want to scroll.

In general, for keyboard emulation to work on the correct window, that window needs to be focused--just as when you're actually using a mouse or keyboard. Are you first focusing the RoboB window in a different command before issuing this one? Otherwise you should be doing so in this command. (Either way, it's probably going to be more reliable to focus the window within this command.)

If this command is only used to scroll within your RoboB window, then you can add the action RoboB.Show at the top of the command to make sure it's focused before scrolling.
http://voxcommando.com/mediawiki/index.php?title=Plugin_RoboB#Show

2. {PGUP} is not the correct code when using InputKeys.Send. It's usually best to consult the parameter helper in order to find the right code for the emulation method you want to use for InputKeys or SendKeys.

http://voxcommando.com/mediawiki/index.php?title=Parameter_Helper

The different emulation methods use different codes. (These codes are not determined by James; he's simply giving users access to existing keyboard emulation methods.) For DxInput, you'd need to consult the plugin settings.

 ... Personally, I would have difficulty finding the right method for InputKeys.Send, because apparently it's {NEXT} to scroll down, and {PRIOR} to scroll up. Not self-evident.

But {PGDN}/{PGUP} should work--with the correct window focused--if you use SendKeys.

3. If this is a command that you're using with windows other than RoboB windows, you'll need to find a way to focus the correct window in each case. I could be wrong about this, but I think there's a general "focus {1}" example command in most of the default configs, so you can check your tree for that.

On the other hand, if you're only using scrolling with a RoboB window, consider playing with the specific RoboB.Scroll* actions that I mentioned in my earlier post.

Those are not relying on keyboard emulation, and should work reliably regardless of whether that window is focused. However, this could mean that your RoboB window will remain hidden behind other windows even while scrolling, so you should still add a RoboB.Show to the command to make sure that the window is brought to the front.

4. And finally, you may have realized this since you initially posted your question, but version 2.2.2.2 is not "the latest vox." Current stable Vox is 2.2.3.2, which is about 3 or 4 public releases farther along. I don't think anything has changed with RoboB since 2.2.2.2, but you can always check the change log on the wiki to be sure.

I hope the above is helpful. Good luck with your problem solving. :)


« Last Edit: March 03, 2017, 08:57:46 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

MMatty1

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 4
    • View Profile
Re: Problems scrolling in RoboBrowser window
« Reply #6 on: March 06, 2017, 03:43:50 AM »
Thnxxx for all the info