Vegar Posted June 28, 2009 Share Posted June 28, 2009 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 :/ Link to comment Share on other sites More sharing options...
Thornhunt Posted June 28, 2009 Share Posted June 28, 2009 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 Link to comment Share on other sites More sharing options...
Yashied Posted June 28, 2009 Share Posted June 28, 2009 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. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Vegar Posted June 28, 2009 Author Share Posted June 28, 2009 #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 Link to comment Share on other sites More sharing options...
Vegar Posted June 28, 2009 Author Share Posted June 28, 2009 #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)) hmm, did not get this to work.... it would not set the date!? Link to comment Share on other sites More sharing options...
Yashied Posted June 28, 2009 Share Posted June 28, 2009 (edited) Replace this line.$tNew = _Date_Time_EncodeSystemTime(6, 27, 2009, @HOUR, @MIN, @SEC) Edited June 28, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Vegar Posted June 28, 2009 Author Share Posted June 28, 2009 Nice.. now it worked thanx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now