Jump to content

Recommended Posts

Posted (edited)

help me please. i need to make a simple script which starts notepad and open a new file.

I trying it:

Run("notepad.exe")
Send("^o")
Send("{ENTER}")

but it just prints letter "o" in notepad.

is it problem in my system? how can i do this?

P.S. autoit v.3.3.8.0

Edited by odexed
Posted

Try this:

Run("notepad.exe")
Send("{CTRLDOWN}")
Send("o")
Send("{CTRLUP}")
Send("{ENTER}")

it also doesn't work.

window is active and focus sets after run

it seems there is some problem with my windows 7

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
×
×
  • Create New...