Lorenzopier Posted May 31 Share Posted May 31 i used autoit to program macro on windows exe ( like notepad.exe for example) with no problem. Now i tried to execute the script on the same notebook or on others and NO WAY to get what i had before. So i tried out a simple example code for notepad : Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Save") WinWaitActive("Notepad", "Do you want to save") ; When running under Windows XP Send("!n") - notepad windows opens but nothing else happens! - I did not make any changes to the code Please can you help me? Lorenzo Link to comment Share on other sites More sharing options...
Lorenzopier Posted May 31 Author Share Posted May 31 I also tried to stop the antivirus with no luck. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 31 Moderators Share Posted May 31 Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Lorenzopier Posted May 31 Author Share Posted May 31 I found the problem with notepad.exe , it was a matter of Language and the notepad.exe will run but the titke was different in Italian so Winactivate was not congruent with italian title. Sorry argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now