danih Posted February 6, 2014 Share Posted February 6, 2014 Hi. I need my script to press the left and right arrow keys. I've tried using PressKeyEx(VK_RIGHT, 500); without any success. Instead it prints out the ' character. I'm using a Lenovo ThinkPad (laptop) if that matters. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 7, 2014 Share Posted February 7, 2014 Personally I've never had any luck with PressKeyEx. In any case you would want PressVKeyEx if you are using key codes. PressVKeyEx(VK_RIGHT, 500); If that doesn't work try something like this (seems to work better for me personally): VKeyDown(VK_RIGHT); Wait(500); VKeyUp(VK_RIGHT); Quote Link to comment Share on other sites More sharing options...