MSFN Forum: Autoit Script - 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

Autoit Script Rate Topic: -----

#1 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 28 June 2008 - 03:39 PM

Hi all i have made a autoit script to run a program that has no silent switchs. problem is it is very much dependant on screen postition so when it installing if the screen is slightly different postition it fails i dnt know if there a way to remove teh depndancy on teh screen postition but if there is here is the code

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('Y:\apps\digiguide\digiguide.exe')
WinWait("DigiGuide Setup - Terms and Conditions","")
If Not WinActive("DigiGuide Setup - Terms and Conditions","") Then WinActivate("DigiGuide Setup - Terms and Conditions","")
WinWaitActive("DigiGuide Setup - Terms and Conditions","")
MouseMove(350,341)
MouseDown("left")
MouseUp("left")
WinWait("DigiGuide Setup - Destination","")
If Not WinActive("DigiGuide Setup - Destination","") Then WinActivate("DigiGuide Setup - Destination","")
WinWaitActive("DigiGuide Setup - Destination","")
MouseDown("left")
MouseUp("left")
WinWait("DigiGuide Setup Wizard","")
If Not WinActive("DigiGuide Setup Wizard","") Then WinActivate("DigiGuide Setup Wizard","")
WinWaitActive("DigiGuide Setup Wizard","")
MouseMove(367,329)
MouseDown("left")
MouseUp("left")


the program is digiguide so if anyone has got something workign for this that would do fine to


#2 User is offline   damian666 

  • creator of the vistapack
  • Group: Developers
  • Posts: 677
  • Joined: 19-July 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 June 2008 - 03:50 PM

you should use control click man

tha is a much better way to do it

check the helpfile for it

Damian666

#3 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 03:53 AM

View Postdamian666, on Jun 28 2008, 10:50 PM, said:

you should use control click man

tha is a much better way to do it

check the helpfile for it

Damian666

how would i do that? pretty new to this type of install

#4 User is offline   iuli_kyle 

  • SFXMaker Developer
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 24-March 07

Posted 29 June 2008 - 04:12 AM

You should run it with @SW_HIDE flag, which hides installers window. Also, ControlClick () is way more better. Take a look in the help file or provide me with the installer and i'll write a script :)

#5 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 04:28 AM

View Postiuli_kyle, on Jun 29 2008, 11:12 AM, said:

You should run it with @SW_HIDE flag, which hides installers window. Also, ControlClick () is way more better. Take a look in the help file or provide me with the installer and i'll write a script :)

unfortnally i cant provide the installe rbecuase it is register to me. but you can regster at the site www.digiguide.com and download a copy i ust need it to install when it ask for settings to i just want ti canceled as i copy over a setting file to make it the way i want.

#6 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 10:28 AM

View Postiuli_kyle, on Jun 29 2008, 11:12 AM, said:

You should run it with @SW_HIDE flag, which hides installers window. Also, ControlClick () is way more better. Take a look in the help file or provide me with the installer and i'll write a script :)

does this seem about right?
@SW_HIDE
Run('Y:\apps\digiguide\digiguide.exe')
WinWait("DigiGuide Setup - Terms and Conditions","")
If Not WinActive("DigiGuide Setup - Terms and Conditions","") Then WinActivate("DigiGuide Setup - Terms and Conditions","")
WinWaitActive("DigiGuide Setup - Terms and Conditions","")
ControlClick("DigiGuide Setup - Terms and Conditions", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup - Destination","")
If Not WinActive("DigiGuide Setup - Destination","") Then WinActivate("DigiGuide Setup - Destination","")
WinWaitActive("DigiGuide Setup - Destination","")
ControlClick("DigiGuide Setup - Destination", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup Wizard","")
If Not WinActive("DigiGuide Setup Wizard","") Then WinActivate("DigiGuide Setup Wizard","")
WinWaitActive("DigiGuide Setup Wizard","")
ControlClick("DigiGuide Setup Wizard", "", "controlID [, right [, 367 [, 329 ]]]")


it is givign me a edit at line one so iu am guessing i have doen the hide windwo wrong

This post has been edited by andrewcrawford: 29 June 2008 - 10:32 AM


#7 User is offline   iuli_kyle 

  • SFXMaker Developer
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 24-March 07

Posted 29 June 2008 - 11:01 AM

Here is the fixed code :) >

Run('Y:\apps\digiguide\digiguide.exe','',@SW_HIDE)
WinWait("DigiGuide Setup - Terms and Conditions","")
$process=WinGetProcess("DigiGuide Setup - Terms and Conditions")
If Not WinActive("DigiGuide Setup - Terms and Conditions","") Then WinActivate("DigiGuide Setup - Terms and Conditions","")
WinWaitActive("DigiGuide Setup - Terms and Conditions","")
ControlClick("DigiGuide Setup - Terms and Conditions", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup - Destination","")
If Not WinActive("DigiGuide Setup - Destination","") Then WinActivate("DigiGuide Setup - Destination","")
WinWaitActive("DigiGuide Setup - Destination","")
ControlClick("DigiGuide Setup - Destination", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup Wizard","")
If Not WinActive("DigiGuide Setup Wizard","") Then WinActivate("DigiGuide Setup Wizard","")
WinWaitActive("DigiGuide Setup Wizard","")
ControlClick("DigiGuide Setup Wizard", "", "controlID [, right [, 367 [, 329 ]]]")
While ProcessExists($process)
Sleep(100)
WEnd
Exit


Hope will work now. Also, "next" or "install" buttons are identified by a class and a instance. You can get this info by using AutoIT Window Info tool. For example, a button identified by class "Button" and instance "3" you'll run this, in order for that button to be clicked :

ControlClick("DigiGuide Setup - Terms and Conditions","","Button3")


Hope it helps !

This post has been edited by iuli_kyle: 29 June 2008 - 11:05 AM


#8 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 12:43 PM

View Postiuli_kyle, on Jun 29 2008, 06:01 PM, said:

Here is the fixed code :) >

Run('Y:\apps\digiguide\digiguide.exe','',@SW_HIDE)
WinWait("DigiGuide Setup - Terms and Conditions","")
$process=WinGetProcess("DigiGuide Setup - Terms and Conditions")
If Not WinActive("DigiGuide Setup - Terms and Conditions","") Then WinActivate("DigiGuide Setup - Terms and Conditions","")
WinWaitActive("DigiGuide Setup - Terms and Conditions","")
ControlClick("DigiGuide Setup - Terms and Conditions", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup - Destination","")
If Not WinActive("DigiGuide Setup - Destination","") Then WinActivate("DigiGuide Setup - Destination","")
WinWaitActive("DigiGuide Setup - Destination","")
ControlClick("DigiGuide Setup - Destination", "", "controlID [, middle [, 350 [, 341 ]]]")
WinWait("DigiGuide Setup Wizard","")
If Not WinActive("DigiGuide Setup Wizard","") Then WinActivate("DigiGuide Setup Wizard","")
WinWaitActive("DigiGuide Setup Wizard","")
ControlClick("DigiGuide Setup Wizard", "", "controlID [, right [, 367 [, 329 ]]]")
While ProcessExists($process)
Sleep(100)
WEnd
Exit


Hope will work now. Also, "next" or "install" buttons are identified by a class and a instance. You can get this info by using AutoIT Window Info tool. For example, a button identified by class "Button" and instance "3" you'll run this, in order for that button to be clicked :

ControlClick("DigiGuide Setup - Terms and Conditions","","Button3")


Hope it helps !

it is still failing :( the install program jsut doesnt seem to start up at all, (i mean i am checking task manager for it starting) i have used that program and now idenitifd as class #32770 first screen, and second. the final bit is sectionwindow061popup

btw thank you for all your help so far at the very least i am learning more about the control clicks

#9 User is offline   iuli_kyle 

  • SFXMaker Developer
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 24-March 07

Posted 29 June 2008 - 12:48 PM

It's impossible. Nothing is modified, but the parameter so it'll run with no window. Check that again :)

#10 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 01:10 PM

View Postiuli_kyle, on Jun 29 2008, 07:48 PM, said:

It's impossible. Nothing is modified, but the parameter so it'll run with no window. Check that again :)

i found the error

'Y:\apps\digiguide\digiguide.exe' that was my bad because i was making the scritp from network share on virtual pc but that share doesnt exist in my network so i modified it to just the program name and it seems to be working fine

#11 User is offline   andrewcrawford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-December 07

Posted 29 June 2008 - 01:28 PM

View Postiuli_kyle, on Jun 29 2008, 07:48 PM, said:

It's impossible. Nothing is modified, but the parameter so it'll run with no window. Check that again :)

Finall got it working

thanks for oyur help

#12 User is offline   iuli_kyle 

  • SFXMaker Developer
  • PipPip
  • Group: Members
  • Posts: 121
  • Joined: 24-March 07

Posted 29 June 2008 - 02:59 PM

View Postandrewcrawford, on Jun 29 2008, 10:28 PM, said:

View Postiuli_kyle, on Jun 29 2008, 07:48 PM, said:

It's impossible. Nothing is modified, but the parameter so it'll run with no window. Check that again :)

Finall got it working

thanks for oyur help


Nah, np :). Anytime . Glad i could be helpful :hello:

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