Jump to content

simutainoesly press both control keys?

Recommended Posts

To keep it short. I have softXpand Duo. It allows multiple workstations (separate mouse, keyboard, and monitor) with only 1 computer.

Two switch keyboard and mouse between workstations you have to do this




This is what I have

HotKeySet("{F1}", "Station1")
HotKeySet("{F2}", "Station2")
While 1

Func Station1()
Opt("MouseCoordMode", 0)
MouseClick("right",0,0, 1, 1)
MouseClick("left",0,0,1, 1)

Func Station2()
Opt("MouseCoordMode", 0)
MouseClick("right",0,0, 1, 1)
MouseClick("left",0,0,1, 1)



It doesn't work. It seems as if the control keys are not being pressed.


The reason I tried this is because there are times I only have 1 keyboard and mouse to share for both workstations.

When i manually switch workstations the right mouse click leaves the context menu up.

Which is an issue while playing a movie on one monitor and using the PC on the other.


So if we get this working can we hide mouse clicks from the active window?

Edited by dumass
Link to comment
Share on other sites

I looked over the setoptions, i added:

AutoItSetOption ( "SendKeyDelay",0 )
AutoItSetOption ( "SendKeyDownDelay", 1 )

Doesnt seem to change much.

It is sending the left and right mouse click and then correct number key. The issue is the ctrl keys.


Do no work, only {CTRLDown}, you cannot specify the left or right ctrl key.

Even with the {CTRLDown} and I verified that it is being held down, I tried sending both {RCTRL} and {LCTRL} and it still does not work.


Any other suggestions?


Edit: It seems like this is not autoit specfic I tried in other languages with the same issue.

How do you think the program is waiting for the key input the keyboard driver? Where autoit uses the windows api?


Edited by dumass
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...