# Why? 用shell()呼叫应用程式后, SendKeys 给他却不反应?

Posted by 阿千 on August 23, 1999 at 00:23:22:

retVal = Shell("C:\Program Files\Adobe\Photoshop 5.0CT\Photoshp.exe", vbNormalFocus)
AppActivate "Adobe Photoshop", True
SendKeys "^O", True
SendKeys "c:\image\op\p7190027.jpg{ENTER}", True
只会run photoshop, 却不能open file, VB 程式的 form 仍会得回focus?

Follow Ups:

- 试过了....可用 dino 23:55:29 8/23/99 (1)
  - 万分感谢! It worked. 但我的photoshop 却硬是不反应 阿千 17:41:01 8/25/99 (0)
- Re: Why? 用shell()呼叫应用程式后, SendKeys 给他却不反应? dino 01:40:48 8/23/99 (2)
  - 我发现sendkeys 给小算盘却可以耶, Why? 真奇怪 阿千 22:17:46 8/23/99 (0)
  - Thanks, but 还是不行耶 阿千 22:06:48 8/23/99 (0)