Jump to content

spoon

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by spoon

  1. Hi guys, Here is my code that I have been using in most of my batch scripts to obtain default gateway and do simple if a equals b do c etc. for /f "tokens=2 delims=:" %%i in ('"ipconfig | findstr Gateway | findstr 10."') do set GW=%%i if "%GW%"==" 10.58.56.1" set SITECODE=BHR Does anyone have any idea on how to push these two lines into AutoIT? I have seen few topics talking about default gateway and how to get it but most scripts are 15+ lines which doesn't seem right. I would really appreciate some help. cheers, Adrian
  2. Here is my modified code: Run('MSIEXEC.EXE /I secureclientinstaller.msi') WinWaitActive("SecureAssess Central - SecureClient AAT") Send("!N") Send("C:\Program Files\SecureAssess Central - SecureClient AAT") Send("!N") Do $Finish = ControlGetHandle("SecureAssess Central - SecureClient AAT", "TAeroButton3", 1) Sleep(100) Until $Finish <> "" ControlClick("SecureAssess Central - SecureClient AAT", "TAeroButton3", 1) and the output of Window Info pointing at the 'Finish' button: >>>> Window <<<< Title: SecureAssess Central - SecureClient AAT Class: TPoolTemplate Position: 99, 615 Size: 503, 385 Style: 0x16CA0000 ExStyle: 0x00050100 Handle: 0x002D05A6 >>>> Control <<<< Class: TAeroButton Instance: 3 ClassnameNN: TAeroButton3 Name: Advanced (Class): [CLASS:TAeroButton; INSTANCE:3] ID: 2229076 Text: &Finish Position: 325, 325 Size: 75, 23 ControlClick Coords: 41, 8 Style: 0x5401000B ExStyle: 0x00000000 Handle: 0x00220354 >>>> Mouse <<<< Position: 468, 970 Cursor ID: 0 Color: 0xD4D0C8 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Cancel < &Back &Finish >>>> Hidden Text <<<< What am I doing wrong?
  3. Tried that but it goes to the wrong place i.e. not to Program Files hence why I send that text in the first place. secureclientinstaller.msi is terribly put together to be honest...
  4. Here is my code, most simple code in the world! Run('MSIEXEC.EXE /I secureclientinstaller.msi') WinWaitActive("SecureAssess Central - SecureClient AAT") Send("!N") Send("C:\Program Files\SecureAssess Central - SecureClient AAT") Send("!N") After the last line where I press 'Next' actual install starts but it depends on speed of the machine so don't really want to use Sleep. On Dell OptiPlex 990 install finishes in 45 seconds where else on OptiPlex GX620 it takes 80 seconds - you get the idea. How do I wait until finish button appears to actually press it and finish the installation? Sorry if this has already been covered but I cannot find a simple enough solution! cheers, Adrian
×
×
  • Create New...