Jump to content

Cannot get simple au3 file to execute - "The system cannot find the file specified"


Recommended Posts

  • 2 weeks later...

My internal IT was able to work with Webroot to get them to set Webroot to stop picking up AutoIt as an infected file and designate it as a safe file. I got everything uninstalled then installed the full version (not Lite) without an issue. I still cannot get a simple script to run. Attached screenshot. I have an untitled Notepad window open, and I want AutoIt (for now) to just find the thing and type a 1 into it. I can't get AutoIt to even detect the window. Suggestions? 

 

Simple script.png

Untitled Notepad Window.png

Link to comment
Share on other sites

$ret = WinActivate ("Untitled - Notepad")
ConsoleWrite($ret & "/" & @error & "/" & @extended & @CRLF)
$ret = Send ("1 1")
ConsoleWrite($ret & "/" & @error & "/" & @extended & @CRLF)

Like this? I am not a programmer and had only used AutoIt to help with some basic automation with simple, repetitive data entry, so this is all getting way beyond my skillset real fast. 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...