command for middle click using ButtonClick

I wanted a command to perform middle click operation. I looked up ButtonClick help and based on that, I created a command called "middle click" with the following contents. But it is not working.

Sub Main
ButtonClick 4,1
End Sub

I have commands called a left click and right-click that make use of the ButtonClick function. They all work okay. It's only the middle click command that's not working. Any help to debug this is appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

To motivate discussion, can

To motivate discussion, can you specify some uses of a middle click? I'm wondering because SFAIK the example you give looks fine to me, and I too have fully functional left- and right-clicks plus several combinations of shift keys with left/right clicks.

Bruce

admin's picture

BruceCyr wrote: To motivate

BruceCyr wrote:

To motivate discussion, can you specify some uses of a middle click? I'm wondering because SFAIK the example you give looks fine to me, and I too have fully functional left- and right-clicks plus several combinations of shift keys with left/right clicks.

Bruce

On Firefox 3.5, if you middle click a link, it will open the link in a new tab.

That's one. Laughing out loud

admin wrote: On Firefox 3.5,

admin wrote:

On Firefox 3.5, if you middle click a link, it will open the link in a new tab.

That's one. Laughing out loud

Okay, the original script posted works just fine for me. so that raises the question of why it doesn't work for you. Unfortunately, I don't have any bright ideas. Maybe something with the mouse driver (unlikely, but I'm desperate here)? Or possibly the assistance of an existing "middle click" command?

BTW, thanks for teaching me how useful the middle click can be.

BTW #2, the following script is what I used for the same effect:

New Tab

Sub Main

    ButtonClick 2, 1
    Wait 0.1
    SendKeys "t"

End Main

HTH,
Bruce

admin's picture

y'all be welcome. Have you

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

admin wrote: y'all be

admin wrote:

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

Skip,

Yah, yesterday, and I agree it seems to work faster and better for the little demand I make on a browser.

Bruce

BruceCyr wrote:

BruceCyr wrote:
admin wrote:

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

Skip,

Yah, yesterday, and I agree it seems to work faster and better for the little demand I make on a browser.

Bruce

I've tried Firefox 3.5.11 a number of times, and the big problem I have is that I keep getting a pop up asking me if I want to install the updated Adobe Flash Player 10. It keeps coming up out of the blue round whilst I'm in the middle of either reading or writing. It is a darn nuisance. Consequently I have to stick with Firefox 2.0.9 (2.0.20 has the same problem).
Quentin

admin's picture

crivon1 wrote: BruceCyr

crivon1 wrote:
BruceCyr wrote:
admin wrote:

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

Skip,

Yah, yesterday, and I agree it seems to work faster and better for the little demand I make on a browser.

Bruce

I've tried Firefox 3.5.11 a number of times, and the big problem I have is that I keep getting a pop up asking me if I want to install the updated Adobe Flash Player 10. It keeps coming up out of the blue round whilst I'm in the middle of either reading or writing. It is a darn nuisance. Consequently I have to stick with Firefox 2.0.9 (2.0.20 has the same problem).
Quentin

I just downloaded the newly released FF 3.5 a couple of days ago. Where did you get a later version than that?

You might want to read the below link as it has some tips on helping with FF and Adobe Flash Player.

http://news.cnet.com/problems-updating-the-flash-p...

admin wrote: crivon1

admin wrote:
crivon1 wrote:
BruceCyr wrote:
admin wrote:

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

Skip,

Yah, yesterday, and I agree it seems to work faster and better for the little demand I make on a browser.

Bruce

I've tried Firefox 3.5.11 a number of times, and the big problem I have is that I keep getting a pop up asking me if I want to install the updated Adobe Flash Player 10. It keeps coming up out of the blue round whilst I'm in the middle of either reading or writing. It is a darn nuisance. Consequently I have to stick with Firefox 2.0.9 (2.0.20 has the same problem).
Quentin

I just downloaded the newly released FF 3.5 a couple of days ago. Where did you get a later version than that?

You might want to read the below link as it has some tips on helping with FF and Adobe Flash Player.

http://news.cnet.com/problems-updating-the-flash-player-in-firefox-heres-help/

Sorry, that should have read "3.5"

I am going to try out the recommendations from the tips.
Quentin

crivon1 wrote: admin

crivon1 wrote:
admin wrote:
crivon1 wrote:
BruceCyr wrote:
admin wrote:

y'all be welcome. Have you upgraded to FF 3.5 yet? It's quite a bit faster for me so far. Works better on Gmail as well.

Looks like they put some effort into this version. Probably a lot I'll never know, I just use it. Laughing out loud

Skip,

Yah, yesterday, and I agree it seems to work faster and better for the little demand I make on a browser.

Bruce

I've tried Firefox 3.5.11 a number of times, and the big problem I have is that I keep getting a pop up asking me if I want to install the updated Adobe Flash Player 10. It keeps coming up out of the blue round whilst I'm in the middle of either reading or writing. It is a darn nuisance. Consequently I have to stick with Firefox 2.0.9 (2.0.20 has the same problem).
Quentin

I just downloaded the newly released FF 3.5 a couple of days ago. Where did you get a later version than that?

You might want to read the below link as it has some tips on helping with FF and Adobe Flash Player.

http://news.cnet.com/problems-updating-the-flash-player-in-firefox-heres-help/

Sorry, that should have read "3.5"

I am going to try out the recommendations from the tips.
Quentin

Having carried out all the recommendations from the tips, I re-installed 3.5. The only problem I had was that I had to get the latest Roboform and install it.

Certainly 3.5 is faster, and dictating (with VV.) into this post is far more accurate than it was with previous versions. Cheers Smiling
Quentin

vayup, the problem here is

vayup,

the problem here is that the program developers unfortunately seem to simply have forgotten to include "mouse middle click" into the mouseaction scripts, altough you will find the command listed in the commands browser...

But you can add this yourself quite easily, provided that you have the Professional version of DNS.

Open the commands browser, choose "Script", and edit a script named "mouse(mouseaction)". You will have to add new arguments to the mouseaction list, such as "middle click" and "double middle click", and enter command lines to the code accordingly, such as

if _arg1 = "middle click" then ButtonClick 4,1
if _arg1 = "double middle click" then ButtonClick 4,2

I hope this helps.

Rüdiger

KnowBrainer's picture

Argument Change Recommendation

Rüdiger, your scripting code will only work if the end-user scripts a dvc command or is writing in KnowBrainer 2008. We believe the code you're looking for in DNS Pro 6 - 10 is:

If ListVar1 = "middle click" then ButtonClick 4,1

 

However,  ButtonClick 4,1 

Should also work.

 

Lunis Orcutt - Developer of KnowBrainer  &
Host of the http://www.TheVoiceRecognitionStore.com
A Nuance Gold Certified Endorsed Dragon NaturallySpeaking Partner/Trainer
ALWAYS Ask If Your Speech Recognition Partner Is Nuance Certified

KnowBrainer

KnowBrainer wrote:

Rüdiger, your scripting code will only work if the end-user scripts a dvc command or is writing in KnowBrainer 2008. We believe the code you're looking for in DNS Pro 6 - 10 is:

If ListVar1 = "middle click" then ButtonClick 4,1

 

However,  ButtonClick 4,1 

Should also work.

 

Lunis Orcutt - Developer of KnowBrainer  &
Host of the http://www.TheVoiceRecognitionStore.com
A Nuance Gold Certified Endorsed Dragon NaturallySpeaking Partner/Trainer
ALWAYS Ask If Your Speech Recognition Partner Is Nuance Certified

Lunis,

thanks for joining in. I know the feeling about legacy DVC-scripts being involved here, and might have answered the same way hadn't I dug deeper into it before. Don't you remember that lengthy thread we've had about it earlier this year over in our - YOUR - forum? If you don't, look here:

http://www.knowbrainer.com/pubforum/index.cfm?page...

For those who may not know where the deal is, and how it's done, please look at the screenshot taken from the commands browser in 10.1 Pro:

http://img5.imageshack.us/img5/9408/mouseaction.jp...

So, anymore questions?

Rüdiger

rwilke wrote: So, anymore

rwilke wrote:

So, anymore questions?

Rüdiger

Rüdiger,

Your DVC mouse command sample will be convenient for people who want to use them. I would just note that for those of us for whom every breath exacts a penalty, we would prefer not to include the various "click" variants in a template that requires the utterance of a superfluous "mouse" syllable, but it would be a simple alteration for a script writer to break them out separately.

Your other link to a more encompassing discussion of the issue is even more useful for people who want a background on the complexity of the problem and its relationship to the history of DNS's development. I am disappointed that Chuck Runquist did not follow up further on his investigations, which are fascinating.

To add to that mix, I will add that I discovered that if you hold down the Control key and say "mouse middle click", you do indeed seem to get a true "mouse middle click" -- even though uttering "mouse middle click" without holding down the Control key seems, on this page at least, to generate something like one and one-half PageDown commands!

Bruce

Here's another thought on

Here's another thought on your middle click script seeming to not work: Try it in different applications -- maybe the problem is limited to a specific application. I tested it per Skip's suggestion to bring up a new tab in Firefox 3.5, where it worked fine.

Bruce

It does not work in any

It does not work in any application. since it works for you guys, I'm thinking it may have something to do with my mouse driver. I will check that out. Thank you all.

vayup wrote: It does not

vayup wrote:

It does not work in any application. since it works for you guys, I'm thinking it may have something to do with my mouse driver. I will check that out. Thank you all.

Ah, could be -- in Windows 7 I'm using the default Microsoft Mouse Driver for my dualing Cirque Touchpads.

Bruce

PS: "dualing" - I made an accidental dictato pun! Let if be!

With SendKeys?

How about for example "sendkeys {clickmiddle}"

Quintijn
-----------------------------------------------
See part of the help text on SendKeys:
Mouse movement and button clicks:

• {Move x,y} - move the mouse to (x,y)

• {ClickLeft x,y} - move the mouse to (x,y) and click the left button. (This is the same as {DownLeft x,y}{UpLeft}.)

• {DoubleClickLeft x,y} - move the mouse to (x,y) and click the left button. (This is NOT the same as {ClickLeft x,y}{ClickLeft}.)

• {DownLeft x,y} - move the mouse to (x,y) and push the left button down.

• {UpLeft x,y} - move the mouse to (x,y) and release the left button.

• similarly named keys for the middle and right mouse buttons.

The x,y values are screen pixel location (0,0) is in the upper-right. In all cases the x,y is optional. If omitted the previous mouse position is used.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Syndicate content