MSFN Forum: Photoshop CS2(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

Photoshop CS2(autoit) Rate Topic: -----

#1 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 19 December 2005 - 02:01 PM

Has anyone made a working autoit script for photoshop cs2 that will install and cancel activation so it can be done later? If you have please post it so i can use it , i have searched the forums for like 2 days now and i haven't found anything and i also tried to make the script myself but i couldn't figure it out.


Attached is what i came up with but don't work. I am new at it so you will probably find errors and that probably why it doesn't work.

Attached File(s)




#2 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 19 December 2005 - 04:50 PM

hi
try this
I personaly like photoshop cs better


; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoIt script.
;
; ----------------------------------------------------------------------------

; Script Start - Add your code below here
run ("setup.exe")
winwaitactive("Adobe Photoshop CS2 - Setup")
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - License Agreement")
send('{tab 4}')
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - Setup")
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - Setup","Change to install to a different folder")
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","Select the file types you would like")
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","The wizard is ready to begin installation")
send('{ENter}')

winwaitactive("Adobe Photoshop Installer")
send('{tab}')
send('{ENter}')

winwaitactive("Adobe Activation")
send('{tab}')
send('{ENter}')


winwaitactive("Adobe Photoshop CS2 - Setup"," want to cancel Adobe Photoshop")
send('{tab}')
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","Wizard has successfully installed"))
send('{ENter}')
EXIT

#3 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 19 December 2005 - 08:35 PM

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoIt script.
;
; ----------------------------------------------------------------------------

; Script Start - Add your code below here
run ("setup.exe")
winwaitactive("Adobe Photoshop CS2 - Setup")
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - License Agreement")
send('{tab 4}')
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - Setup")
send('{ENter}')
winwaitactive("Adobe Photoshop CS2 - Setup","Change to install to a different folder")
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","Select the file types you would like")
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","The wizard is ready to begin installation")
send('{ENter}')

winwaitactive("Adobe Photoshop Installer")
send('{tab}')
send('{ENter}')

winwaitactive("Adobe Activation")
send('{tab}')
send('{ENter}')


winwaitactive("Adobe Photoshop CS2 - Setup"," want to cancel Adobe Photoshop")
send('{tab}')
send('{ENter}')

winwaitactive("Adobe Photoshop CS2 - Setup","Wizard has successfully installed"))
send('{ENter}')
EXIT


thanks this works expect for the end it doesn't click finish, also where do you get the highlighted parts from?

#4 User is offline   MHz 

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

Posted 19 December 2005 - 09:39 PM

View Postseco, on Dec 20 2005, 12:35 PM, said:

winwaitactive("Adobe Photoshop CS2 - Setup","Wizard has successfully installed"))
send('{ENter}')
EXIT


thanks this works expect for the end it doesn't click finish, also where do you get the highlighted parts from?


The highlighted text parameter can be easily obtained from the Window Info Tool.

Example:

Quote

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title: AutoIt v3.1.1 Setup
Class: #32770
Size: X: 493 Y: 113 W: 503 H: 393

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 851 Y: 478
Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB: Hex: 0xF8FCFD Dec: 16317693

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size: X: 324 Y: 327 W: 75 H: 23
Control ID: 1
ClassNameNN: Button2
Text: &Next >
Style: 0x50010001
ExStyle: 0x00000004

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<


>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
&Next >
Cancel
Welcome to the AutoIt v3.1.1 Setup Wizard
This wizard will guide you through the installation of AutoIt v3.1.1.

It is recommended that you close all other applications before starting Setup. This will make it possible to update relevant system files without having to reboot your computer.

Click Next to continue.

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<
Nullsoft Install System v2.02
Nullsoft Install System v2.02
License Agreement
Please review the license terms before installing AutoIt v3.1.1.


Quote

ControlClick('AutoIt v3.1.1 Setup', 'Welcome to the AutoIt v3.1.1 Setup Wizard', 'Button2')

Quote

WinWaitActive('AutoIt v3.1.1 Setup', 'Welcome to the AutoIt v3.1.1 Setup Wizard')


#5 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 21 December 2005 - 11:33 AM

For some reason i cant get it to uncheck the read-me file and click finish can someone help me here's what i've tried


Quote

winwaitactive("Adobe Photoshop CS2 - Setup","The InstallShield Wizard has successfully installed Adobe Photoshop CS2.")
controlclick("Adobe Photoshop CS2 - Setup","The InstallShield Wizard has successfully installed Adobe Photoshop CS2.","Button3")
controlclick("Adobe Photoshop CS2 - Setup","The InstallShield Wizard has successfully installed Adobe Photoshop CS2.","Button4")
and i also tried this

Quote

winwaitactive("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed")
controlclick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed,"Button3")
controlclick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed,"Button4")


none of the two work, what am i doing wrong?

This post has been edited by seco: 21 December 2005 - 11:34 AM


#6 User is offline   bobthenob 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 25-November 05

Posted 21 December 2005 - 12:14 PM

Hi sorry thats my fault ill have another go at it later I just get fed up installing it a reinstalling it on my virtual machine its such a lonfg winded install unistall prosess
as soon as i can ill fix it
I thinkits somthing like
send('{ALT}')Send('{space}')Send('{Enter}')


#7 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 21 December 2005 - 02:19 PM

i tried that too for some reason it doesn't detect when the window is active.

#8 User is offline   MHz 

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

Posted 21 December 2005 - 08:10 PM

View Postseco, on Dec 22 2005, 03:33 AM, said:

none of the two work, what am i doing wrong?

From the missing quotes in your 2nd example, I hope your not using notepad ? A free useful editor is here if needed, that will help you avoid making such mistakes.
See if AutoIt Info Tool shows you if the control is hidden. The editor above has AutoItMacroGenerator in it. Start AutoItMacroGenerator in recording mode and click the checkbox and see the line it records. Sometimes 2 controls occupy the same space and 1 maybe hidden. You could then be trying to uncheck the wrong control which is hidden.
ControlCommand() can also be used to un/check checkboxes as example below.
WinWait("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.")
ControlCommand("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.", "Button3", "UnCheck", "")
ControlClick("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.", "Button4")


#9 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 22 December 2005 - 12:16 PM

i tried fixing my quotes and it didn't work. I tried the way mhz said and it doesn't work i also tried a script generated by script writer and it doesn't work either, im goin nuts trying to figure it out.

any other ideas?

#10 User is offline   MHz 

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

Posted 22 December 2005 - 08:39 PM

You have not mentioned it yet, but I am guessing that the checkbox maybe hidden. If so then you may need to send in the mouse to do it for you.
; Use AutoIt Info Tool and set it to window coord mode.
; Get the x & y coords of the checkbox and replace the 5's below.

Opt('MouseCoordMode', 0)
MouseClick('left', 5, 5)

; You could also add a processclose at the end of install, as a backup ?

If ProcessExists('notepad.exe') Then ProcessClose('notepad.exe')


#11 User is offline   seco 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 07-November 05

Posted 23 December 2005 - 10:01 PM

i forgot to say but no the control is not hidden, but i finally figured it out here it is for whoever might need it

Opt("WinTitleMatchMode", 4)
Run("setup.exe")

WinWait("Adobe Photoshop CS2 - Setup","The InstallShield(R) Wizard wi")
ControlClick("Adobe Photoshop CS2 - Setup","The InstallShield(R) Wizard wi","Button1")
WinWait("Adobe Photoshop CS2 - License Agreement","&Decline")
ControlClick("Adobe Photoshop CS2 - License Agreement","&Decline","Button5")
WinWait("Adobe Photoshop CS2 - Setup","&Next >")
ControlClick("Adobe Photoshop CS2 - Setup","&Next >","Button1")
WinWait("Adobe Photoshop CS2 - Setup","NewBinary12")
ControlClick("Adobe Photoshop CS2 - Setup","NewBinary12","Button1")
WinWait("Adobe Photoshop CS2 - Setup","All to PS")
ControlClick("Adobe Photoshop CS2 - Setup","All to PS","Button1")
WinWait("Adobe Photoshop CS2 - Setup","Click Install to begin the ins")
ControlClick("Adobe Photoshop CS2 - Setup","Click Install to begin the ins","Button1")
WinWait("Adobe Photoshop Installer","To activate by telephone via a")
ControlClick("Adobe Photoshop Installer","To activate by telephone via a","Button6")
WinWait("Adobe Activation","The 30-day grace period during")
ControlClick("Adobe Activation","The 30-day grace period during","Button1")
WinWait("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed")
ControlClick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Static2")
ControlCommand("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Button4","UnCheck","")
ControlClick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Button3")


i used the autoitmacro generator as mhz said and it finally worked. Thanks to MHZ and bobthenob for helping me on this.

This post has been edited by seco: 23 December 2005 - 10:01 PM


#12 User is offline   MHz 

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

Posted 23 December 2005 - 10:21 PM

View Postseco, on Dec 24 2005, 02:01 PM, said:

i forgot to say but no the control is not hidden, but i finally figured it out here it is for whoever might need it

WinWait("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed")
ControlClick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Static2")
ControlCommand("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Button4","UnCheck","")
ControlClick("Adobe Photoshop CS2 - Setup","InstallShield Wizard Completed","Button3")


i used the autoitmacro generator as mhz said and it finally worked. Thanks to MHZ and bobthenob for helping me on this.

Thanks for the reply on whether it was hidden.
I can see on the last window that the last 2 Button numbers have reversed. That may explain why the readme checkbox was not unchecked as the script was clicking on the finish button instead. The ControlClick() with the "Static2" looks like a possible unneeded click while recording ?
AutoItMacroGenerator can record a nice install script, quick and easy sometimes. :thumbup

Glad you have a working solution, seco. ;)

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