I want click “ShiftKey & d” on windows machine from Mac through Eggplant.
BTW, I have connected to Windows machine using VNC
I read the reference guide and found that TypeText ShiftKey, “d” shoiuld do the trick…but it not clicking ShiftKey and d. However, the test result window shows [ShiftKey] d successful which does not make any sense…
When I click Shift d , I will see a another image on the window…I want to test that and hence I would like to know the exact command…
You have the correct command for sending keystrokes to the SUT. If what you want is to click the mouse while holding down certain keys, it’s a bit more work. To hold down the shift key and the D key while clicking, you would do this:
If what you want is to press the letter D with the shift key down, and you need to hold both of those keys down for the expected image to appear, then it would be similar:
The fact that it works intermittently is odd, and suggests that there might be a timing issue of some sort involved. Check that you haven’t changed any of the timing parameters (the keyDownDelay and the remoteWorkInterval in particular).
Also, you mentioned you tried the sendShiftForCaps, but did you remember to use a capital D in your script? You might try this again to be sure:
set the sendShiftForCaps to true
TypeText "D" -- use a capital D here
If those suggestions don’t help, tell us a bit more about your environment: What version of Windows are you running? What VNC server and version? What is your network like? What keyboard layout do you use? Perhaps that will help us resolve this. What you’re trying to do is very basic and generally just works.
[quote=“SenseTalkDoug”]The fact that it works intermittently is odd, and suggests that there might be a timing issue of some sort involved. Check that you haven’t changed any of the timing parameters (the keyDownDelay and the remoteWorkInterval in particular).
Also, you mentioned you tried the sendShiftForCaps, but did you remember to use a capital D in your script? You might try this again to be sure:
set the sendShiftForCaps to true
TypeText "D" -- use a capital D here
If those suggestions don’t help, tell us a bit more about your environment: What version of Windows are you running? What VNC server and version? What is your network like? What keyboard layout do you use? Perhaps that will help us resolve this. What you’re trying to do is very basic and generally just works.[/quote]
Thanks SenseTalkDoug for your prompt responses. Infact I am trying to evaluate to automate my gaming application (developed using Macromedia). Your responses are really helpful.
Yes, I did use Capital D.
I have windows XP, Free version of VNC 4.1.2
I connected Mac and Windows using office LAN
Keyboard - same standard as it comes with Windows XP. No special…
I wonder if it an issue with MAcromedia? BTW, Shift d works just normal if I do on windows machine manually…
Thanks you guys…You are so prompt in giving responses…
This time I have used keyDown command as suggested above.
Click “Some_Button”
keyDown shiftKey, “d”
WaitFor 5.0, “Some_Image_on_QA_Cheat_Code” – Previously I was not
waiting for this image image
keyUp “d”, shiftKey