Jump to content

masky

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by masky

  1. Very nice guide.. and everything went good the first time... when i tried to install ifranviewr. but... when i moved on the next stage to make a script for CorelDrawX4 i went into a trouble.. so this is what i am doing first starting the scriptwriter then rechecking the boxes as shown in the guide in the scriptwriter. locating the setup.exe trough "browse" and now i start the scriptwriter by pressing the A the installation process begins.. and i am using alt+n alt+t etc. etc. after everything is done. i am stoping the scriptwriter by pressing the A again.. so the script should be complete now as i know.. (if i put this code $SF_1 = "app.exe" If WinExists ( $SF_1 ) Then Exit AutoItWinSetTitle ( $SF_1) below the script should work right? and allso dose the "app.exe" should be named as i name the script when i am saving it or like the setup which i am installint the program.. in my case setup.exe ok lets move on... as i know this code is not a big problem.. but a pice of code to keep you out of problems ok so i right click the scrip and than click compile.. the script is now compiled... time to rock en roll but the string of the guitar here broked \ when i start the compiled .exe file the installation begins the loadings are good and when it comes when it should accept alt+a (the first command )for the accepting the licence agreement actualy it stops.. here dose not do anything. but here is what i noticed.. if i run the script again while the other is in progres (actualy where it stops before should make alt+a command) the script works. :S why is that.. please help.. and i have another question which is not realeted to the question above.. why when i save my script from the scripwriter it doesn't have the proper name as i name it.. instead of ex. scrip1.au3 it saves like some strange codes.. please for fast answer.. i need this btw here is the script Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Users\XP Computing\Desktop\TESTS\setup.exe') WinWait("CorelDRAW Graphics Suite X4","") If Not WinActive("CorelDRAW Graphics Suite X4","") Then WinActivate("CorelDRAW Graphics Suite X4","") WinWaitActive("CorelDRAW Graphics Suite X4","") Send("{ALTDOWN}a{ALTUP}{ALTDOWN}n{ALTUP}{ALTDOWN}n{ALTUP}{ALTDOWN}nn{ALTUP}{TAB}{ALTDOWN}n{ALTUP}{ALTDOWN}i{ALTUP}") WinWait("Dialog","Cancel") If Not WinActive("Dialog","Cancel") Then WinActivate("Dialog","Cancel") WinWaitActive("Dialog","Cancel") Send("{ALTDOWN}c{ALTUP}{TAB}{TAB}{TAB}") WinWait("CorelDRAW Graphics Suite X4","") If Not WinActive("CorelDRAW Graphics Suite X4","") Then WinActivate("CorelDRAW Graphics Suite X4","") WinWaitActive("CorelDRAW Graphics Suite X4","") Send("{ALTDOWN}c{ALTUP}")
×
×
  • Create New...