Jump to content
Sign in to follow this  
Vegar

Photoshop CS4 Script.. what is wrong?

Recommended Posts

Vegar

Hello..

i'm making a script witch makes the date adjust itself to a specified date, then start Photoshop, and when i close photoshop the date adjust itself back to its original state....

(i'm doing this so i can use Photoshop CS4 on the Trial verson for ever... its realy only 30 days i could use it, but if i adjust the date to the 27.06.2009 i will always have 30 days to go :) )

here is what i got:

#include <Date.au3>

Local $tCur, $tNew


    $tNew = _Date_Time_EncodeFileTime (6,27,2009, @HOUR, @MIN, @SEC)
    _Date_Time_SetLocalTime(DllStructGetPtr($tNew))



sleep (1000)

ShellExecute ("Photoshop.exe")

sleep (3000)

while 1
if not ProcessExists ("Photoshop.exe") then set_time ()
    sleep (1000)
WEnd


func set_time ()
    _Date_Time_SetLocalTime(DllStructGetPtr($tCur))
EndFunc

but when i run it i just get a error message from windows :/

Share this post


Link to post
Share on other sites
Thornhunt

and a console debug.. and follow the script line bye line. to check for were the errorr occures


Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites
Yashied

Hello..

i'm making a script witch makes the date adjust itself to a specified date, then start Photoshop, and when i close photoshop the date adjust itself back to its original state....

(i'm doing this so i can use Photoshop CS4 on the Trial verson for ever... its realy only 30 days i could use it, but if i adjust the date to the 27.06.2009 i will always have 30 days to go :) )

here is what i got:

#include <Date.au3>

Local $tCur, $tNew


    $tNew = _Date_Time_EncodeFileTime (6,27,2009, @HOUR, @MIN, @SEC)
    _Date_Time_SetLocalTime(DllStructGetPtr($tNew))



sleep (1000)

ShellExecute ("Photoshop.exe")

sleep (3000)

while 1
if not ProcessExists ("Photoshop.exe") then set_time ()
    sleep (1000)
WEnd


func set_time ()
    _Date_Time_SetLocalTime(DllStructGetPtr($tCur))
EndFunc

but when i run it i just get a error message from windows :/

#Include <Date.au3>

Local $tCur = _Date_Time_GetLocalTime()
Local $tNew = _Date_Time_EncodeFileTime(6,27,2009, @HOUR, @MIN, @SEC)

_Date_Time_SetLocalTime(DllStructGetPtr($tNew))
ShellExecuteWait("Photoshop.exe")
_Date_Time_SetLocalTime(DllStructGetPtr($tCur))

But I am not sure that you can in a way to cheat the guys from Adobe. Therein are not fools sit.

Share this post


Link to post
Share on other sites
Vegar

#Include <Date.au3>

Local $tCur = _Date_Time_GetLocalTime()
Local $tNew = _Date_Time_EncodeFileTime(6,27,2009, @HOUR, @MIN, @SEC)

_Date_Time_SetLocalTime(DllStructGetPtr($tNew))
ShellExecuteWait("Photoshop.exe")
_Date_Time_SetLocalTime(DllStructGetPtr($tCur))

But I am not sure that you can in a way to cheat the guys from Adobe. Therein are not fools sit.

ok. thnx... i'l try..

Yeah i thought about that ... but i'l try :)

Share this post


Link to post
Share on other sites
Yashied
Vegar

Nice.. now it worked :)

thanx :)

Share this post


Link to post
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
Sign in to follow this  

×