Jump to content

Adobe Photoshop CS5 Extended Trial AutoInstaller


Recommended Posts

This is my code for auto installing photoshop :


#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=Icon.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

; Script for AdobePhotoshop CS5 Extended

AutoItSetOption("MouseCoordMode", 2)
AutoItSetOption("PixelCoordMode", 2)
AutoItSetOption("SendKeyDelay", 250)

Run("Set-up.exe.exe")

WinWait("Adobe Photoshop CS5")
WinActivate("Adobe Photoshop CS5")

; WELCOME
While True
$PixelGetColor = Hex(PixelGetColor(150, 175), 6)

If $PixelGetColor == "243E59" Then ExitLoop
WEnd

MouseClick("left", 735, 525)

; SERIAL NUMBER
While True
$PixelGetColor = Hex(PixelGetColor(150, 200), 6)

If $PixelGetColor == "243E58" Then ExitLoop
WEnd

Send("{TAB 7}")
Send("{DOWN}")
Send("{TAB}")
Send("{DOWN}")

MouseClick("left", 735, 525)

; OPTIONS
While True
$PixelGetColor = Hex(PixelGetColor(150, 250), 6)

If $PixelGetColor == "243C55" Then ExitLoop
WEnd

MouseClick("left", 735, 525)

; FINISH
While True
$PixelGetColor = Hex(PixelGetColor(150, 300), 6)

If $PixelGetColor == "243B52" Then ExitLoop

Sleep(10000)
WEnd

MouseClick("left", 735, 525)

FileCreateShortcut(@ProgramFilesDir & "\Adobe\Adobe Photoshop CS5\Photoshop.exe", @DesktopCommonDir & "\Adobe Photoshop CS5", @ProgramFilesDir & "\Adobe\Adobe Photoshop CS5")

Exit

Hope it's good for someone.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...