
chakka
Members-
Posts
18 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by chakka
-
Thanks kylomas. You solved it for me.
- 16 replies
-
- date time
- date difference
-
(and 1 more)
Tagged with:
-
Yes exactly, and I'm looking the same. If it's Monday then then nearest Sunday is previous Sunday(date?) and If it's Friday then nearest Sunday is coming Sunday(date?) All I want to get is the date of that day. Thanks kylomas, can you please provide rough example.
- 16 replies
-
- date time
- date difference
-
(and 1 more)
Tagged with:
-
Hello all, How to calculate the nearest Sunday? 2012/12/30 (Previous Sunday)2013/01/03(Today)2013/01/06(Coming Sunday)Here considering today's date(2013/01/03) the nearest Sunday is coming Sunday(2013/01/06) How to achieve this using AutoIt? any function close to this? Thanks
- 16 replies
-
- date time
- date difference
-
(and 1 more)
Tagged with:
-
RunWait() how to suppress child window.
chakka replied to chakka's topic in AutoIt General Help and Support
thanks a bunch water. I'm testing... most probably I'll conclude with -ilog. see you again -
RunWait() how to suppress child window.
chakka replied to chakka's topic in AutoIt General Help and Support
thanks all @water. -INUL is ok but i need to catch the error is it possible something like RunWait($rarPath& ' x -o+ "'&$archFile&'" "' & $extractPath&'"',"",@SW_HIDE) If $error Then ; write to log file -
hello AutoIt friends, I'm executing WinRar.exe via Autoit RunWait() function using the falg @SW_HIDE. but sometimes I may get corrupted rar/zip archive. so when I try to extract these files, "winrar diagnostic messages" window will appear and someone need to close the "error" dialogue box to continue executing remain portion of the script How can I overcome these error notification dialogue? (but I need to catch the error for logging purpose) RunWait($rarPath& ' x -o+ "'&$archFile&'" "' & $extractPath&'"',"",@SW_HIDE) Can you please guide me. Thanks
-
cURL UDF - a UDF for transferring data with URL syntax
chakka replied to seangriffin's topic in AutoIt Example Scripts
Error! cURL.au3(411,79) : ERROR: $hCurlHandle: undeclared global variable. DllCall($hDll_LibCurl, "uint:cdecl", "curl_easy_setopt", "ptr", $hCurlHandle, -
Object creation and calling was a problem form me. (As a starter) But it was done using ghostscript instead. thanks for your link. Searching & PDF compression, merging(certain files) with metadata, and to FTP them to a remote server... I'm almost finished. thank you all.
-
thanks for the info. but mozart90 already coded well to merge pdf's using accrobat. Can u you please help me to expand this cript to COMPRESS pdf files.
-
6 years old thread. but I found this very helpful. thanks mozart90 Can you someone please expand this to compress pdf too Edit: Typo
-
Thanks a bunch Tripredacus, I accept. that's a good Idea to start with auditing. As that doesn't cause to decrease system performance. Any AutoIt suggestions? Here in our case, We've a stable share path for those files serverfilestomonitor (And if drive letter varies no problem there too. coz, we have only single network drive and that can be easily detected via DriveGetDrive ( "NETWORK" ))
-
Hi all, I found AutoIt scripting is very useful and I've just started learning it. Using AutoIt, is it possible to track user activity like file copy/cut, paste, modification, deletion etc for a particular folder or drive Here in my office there are folders shared among all users with complete permission. Users are not allowed to cut & paste or delete certain files (especially quark express files and pdf). Here We cannot create user roles(to restrict) .Because of resource shortage their roles may vary. in some days they may delete and in some other days they may not. So here I think best way is to track user activities on that particular folder(path/drive) where we keep those files. If somebody accidentally/purposefully delete something, that must be logged. Can you somebody please help me to achieve this? examples? Thanks
-
Simple System Activity Log. Guide me plz... standardize
chakka replied to chakka's topic in AutoIt General Help and Support
kylomas thanks for ur helping hand . It was my first AutoIt script. -
Hi all, I'm very new here I'm trying to make a simple user activity logger. To log User Logon, Logoff & Lock Somehow I've reached up to here. but I'm not able to log logOff/Shutdown time with this. I could see OnAutoItExitRegister would do this job. but I failed to implement. Somebody please help me to implement (and to standardize this code also) #cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.4.9 Author: Chakka #ce ---------------------------------------------------------------------------- #Include <Timers.au3> Global Const $DESKTOP_SWITCHDESKTOP = 0x100 Global $log = @ScriptDir&"log.txt", $newData , $userDay = @MON & "/" & @MDAY & "/" & @YEAR & " " & @UserName & "2" _WriteLogOn() Func _WriteLogOn() $newData = "LogOn at " & @HOUR & ":" & @MIN & ":" & @SEC _WriteLog() EndFunc Func _WriteLog() $logData = IniRead($log, $userDay, "", "") IniWrite($log, $userDay,"",$logData & @CRLF & $newData) EndFunc While 1 ; If Locked the system If _CheckLocked() Then $newData = "Locked " & @HOUR & ":" & @MIN & ":" & @SEC _WriteLog() ; Now idle the script until the user login back While _CheckLocked() Sleep (10) WEnd ; Assume active $newData = "Active at " & @HOUR & ":" & @MIN & ":" & @SEC _WriteLog() EndIf Sleep(10) WEnd Func _CheckLocked() $hLockedDLL = DllOpen("user32.dll") $hDesktop = DllCall($hLockedDLL, "int", "OpenDesktop", "str", "Default", "int", 0, "int", 0, "int", $DESKTOP_SWITCHDESKTOP) $ret = DllCall($hLockedDLL, "int", "SwitchDesktop", "int", $hDesktop[0]) DllCall($hLockedDLL, "int", "CloseDesktop", "int", $hDesktop[0]) If $ret[0] = 0 Then $iLocked = 1 ElseIf $ret[0] = 1 Then $iLocked = 0 EndIf DllClose($hLockedDLL) If $iLocked Then Return 1 Else Return 0 EndIf EndFunc