MSFN Forum: REQ: Help activating a window with autoit - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

REQ: Help activating a window with autoit Mathematica 5.1 Rate Topic: -----

#1 User is offline   Swimming_Bird 

  • I want the NHL Back
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 12-October 04

Posted 07 May 2005 - 11:26 PM

here is my code to currently install Mathematica
Run ( "setup.exe" )
WinWaitActive ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","B&rowse...","Button6")
WinwaitActive ("Choose Folder","Please choose the installation folder.")
ControlSend ("Choose Folder" , "" ,"Edit1" , @ProgramFilesDir & "\Mathematica 5.1")
ControlClick ("Choose Folder","OK","Button1")
WinWaitActive ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","I&nstall","Button1")
======================================================
WinActivate ("Mathematica 5.1 Setup" , "&Enter license information now" )
WinWaitActive ("Mathematica 5.1 Setup" , "&Enter license information now" )
ControlClick ("Mathematica 5.1 Setup","&Finish","Button2")
WinActivate ("Personalize Mathematica" , "Net&work License" )
WinWaitActive ("Personalize Mathematica" , "Net&work License" )
ControlSend ("Personalize Mathematica" , "" , "Edit3" , "xxxxx-xxxx" )
ControlClick ("Personalize Mathematica" , "OK" , "Button4")
Winwaitactive ("Personalize Mathematica" , "&MathID" )
ControlSend ("Personalize Mathematica" , "" , "Edit1" ,"xxxx-xxxxx-xxxxx" )
ControlSend ("Personalize Mathematica" , "" , "Edit2" ,"xxxx-xxx-xxx" )
ControlClick ("Personalize Mathematica", "OK" , "Button2")
ProcessClose ( "Mathematica.exe" )
the equals singns are durring the actual installation at the end of which the finalization window gets loaded however the finalization window is not laoded active and i cant figure out how to activate it. once i manually activate it the rest of the script runs fine.


Thanks all


#2 User is offline   Swimming_Bird 

  • I want the NHL Back
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 12-October 04

Posted 08 May 2005 - 08:39 PM

bump

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 08 May 2005 - 09:19 PM

Run ( "setup.exe" )
WinWait ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","B&rowse...","Button6")
Winwait ("Choose Folder","Please choose the installation folder.")
ControlSend ("Choose Folder" , "" ,"Edit1" , @ProgramFilesDir & "\Mathematica 5.1")
ControlClick ("Choose Folder","OK","Button1")
WinWait ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","I&nstall","Button1")
;=================================================
WinWait ("Mathematica 5.1 Setup" , "&Enter license information now" )
ControlClick ("Mathematica 5.1 Setup","&Finish","Button2")
WinWait ("Personalize Mathematica" , "Net&work License" )
ControlSend ("Personalize Mathematica" , "" , "Edit3" , "xxxxx-xxxx" )
ControlClick ("Personalize Mathematica" , "OK" , "Button4")
Winwait ("Personalize Mathematica" , "&MathID" )
ControlSend ("Personalize Mathematica" , "" , "Edit1" ,"xxxx-xxxxx-xxxxx" )
ControlSend ("Personalize Mathematica" , "" , "Edit2" ,"xxxx-xxx-xxx" )
ControlClick ("Personalize Mathematica", "OK" , "Button2")
ProcessClose ( "Mathematica.exe" ); <-- Seems very abrupt ending ?

Activating windows should not be needed. All the Control* functions will operate on inactive windows. Windows needed only to be active for functions like Send().
;)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy