Jump to content

shankhs

Members
  • Posts

    6
  • Joined

  • Last visited

shankhs's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi guys I was finally successful to write a script to install npp in its default directory,its a very simple script: ;Installation of npp Run("npp.5.6.4.Installer.exe") WinWaitActive("Installer Language") Sleep(400) Send("{ENTER}") WinWaitActive("Notepad++ v5.6.4 Setup") Sleep(400) Send("{ENTER}") WinWaitActive("Notepad++ v5.6.4 Setup") Sleep(400) Send("{ENTER}") WinWaitActive("Notepad++ v5.6.4 Setup") Sleep(400) Send("{ENTER}") WinWaitActive("Notepad++ v5.6.4 Setup") Sleep(400) Send("{ENTER}") Sleep(5000) WinWaitActive("Notepad++ v5.6.4 Setup") Send("{SPACE}{ENTER}") The main thing here is that no security check is met , so the script runs smoothly. Do you have any ways to check whether the window is for security check or not?mostly in Vistas where some prog give pop ups to "continue" or "cancel"... Please do suggest me ways other than that I wrote. Thank You shankhs
  2. AU3 Record is giving me this: _WinWaitActivate("Open File - Security Warning","The publisher could ") Send("{ALTDOWN}r{ALTUP}") _WinWaitActivate("Installer Language","Please select a lang") Send("{ENTER}") _WinWaitActivate("Notepad++ v5.6.4 Setup","Welcome to the Notep") Send("{ENTER}") _WinWaitActivate("Notepad++ v5.6.4 Setup ","Please review the li") Send("{ENTER}") _WinWaitActivate("Notepad++ v5.6.4 Setup ","Choose Install Locat") Send("{ENTER}") _WinWaitActivate("Notepad++ v5.6.4 Setup ","Choose which feature") Send("{ENTER}") _WinWaitActivate("Notepad++ v5.6.4 Setup ","Completing the Notep") Send("{SPACE}{ENTER}") which when I am trying to run gives me error: Unknown function name.: _WinWaitActivate("Open File - Security Warning","The publisher could ") ^ ERROR >Exit code: 1 Time: 0.991 Thnx PartyPooper for a useful advice I will keep it in mind from now on. Adding #RequireAdmin is forcing the installer to stuck in the security check only!!! I am trying a few more things here,in the meantime if you have any useful advice plz do tell me.
  3. Hi This is my second post in a day...I apologize if I am beaking any rules but I really wanna learn. I am following the tutorial given in the help file regarding installation of winZip.I am trying to automate the installation of notepad++. Here is my code ;Installation of npp Run("npp.5.6.4.Installer.exe") WinWaitActive("Open File - Security Warning","&Run") WinWaitActive("Installer Language","select a language") Send("{ENTER}") As you can see I am stuck at the language input stage , I cannot understand why its stuck...Moreover if I am pressing "enter" manually its running smoothly. One more problem , when the code is stuck at Language input stage I press "Cancel",the setup is exited but the program continues to run.How to safely abort the program using code written inside to handle such situations?
  4. Thanx man I got the thread http://www.autoitscript.com/forum/index.php?showtopic=57576&st=0&p=435995&hl=automate%20uninstall&fromsearch=1&#entry435995 but i am unable to automate the suggestion Any help will be highly appreciated , thanx.
  5. Hi, This is my first day with AutoIt scripting.I am trying to write a script that automatically uninstalls a program , here is what I have done : Send("#r") Send("Control Panel{ENTER}") ControlClick("Control Panel","","Edit1") Send("Add or Remove Programs{ENTER}") As its clear from the script I am trying to open "Add or Remove Programs" and its not opening Whats wrong Please help me?
×
×
  • Create New...