Can't type a key combination!

Hi there!

I’m trying to “Save as…” in order to save a notepad text file, but I dont know how to achieve this.

Here is my script:

$NotepadIcon.doubleClick; --> to open notepad with the desktop icon
$NotepadEdit.typeword(“Hello World!”); --> to write on the editable box of the file
//ctrl + s ???

Any ideas? Thanks in advance!!


you can use the menu methods of Win32 class.

  1. Capture the Notepad main Window
  2. $Notepad.clickmenu("\0\3");

If you want to check that the menu option is correct, use
$Notepad.titlemenu ("\ 0\3");