dumass Posted June 4, 2016 Share Posted June 4, 2016 (edited) 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 Sleep(100) WEnd Func Station1() Opt("MouseCoordMode", 0) Send("{CTRLdown}") Send("{LCTRL}") Send("{CTRLup}") Send("{1}") MouseClick("right",0,0, 1, 1) MouseClick("left",0,0,1, 1) EndFunc Func Station2() Opt("MouseCoordMode", 0) Send("{LCTRLdown}") Send("{RCTRL}") Send("{LCTRLLup}") Send("{2}") MouseClick("right",0,0, 1, 1) MouseClick("left",0,0,1, 1) EndFunc 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 June 4, 2016 by dumass Link to comment Share on other sites More sharing options...
EmilyLove Posted June 5, 2016 Share Posted June 5, 2016 See options for send key https://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm Link to comment Share on other sites More sharing options...
dumass Posted June 7, 2016 Author Share Posted June 7, 2016 (edited) 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. {LCTRLDown} {LCTRLUp} 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 June 7, 2016 by dumass Link to comment Share on other sites More sharing options...
EmilyLove Posted June 7, 2016 Share Posted June 7, 2016 Your delays are probably too low. Try 15 on both. Link to comment Share on other sites More sharing options...
dumass Posted June 9, 2016 Author Share Posted June 9, 2016 Thank you for your help BetaLeaf. I have tried many different numbers for the time, still no avail. I am quite certain SoftXpand relies on input from the driver, as other the workstations are virtual machines. EmilyLove 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now