Guest Posted April 15, 2012 Share Posted April 15, 2012 (edited) ds Edited July 12, 2016 by Guest Link to comment Share on other sites More sharing options...
Rogue5099 Posted April 15, 2012 Share Posted April 15, 2012 If you are only getting text from the clipboard then try using this: expandcollapse popup#include <File.au3> #include <Date.au3> $dir = "E:autoitclip_logs" Global $cdate = _NowDate(); Global $logdir = $dir & $cdate & "" Global $clip = "" DirCreate($logdir) Save_Clip($clip) While 1 If Not $clip = ClipGet() Then $clip = ClipGet() Save_Clip($clip) EndIf Sleep(50) WEnd Func Save_Clip($txt) Local $date = _NowDate() Local $time = _NowTime() If Not $cdate = $date Then $logdir = $dir & $date & "" DirCreate($logdir) EndIf $time = StringReplace($time, ":", "_") $file = $logdir & $time & ".txt" If Not FileExists($file) Then _FileCreate($file) $file = FileOpen($file, 1) FileWrite($file, $txt & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF) FileClose($file) EndFunc ;==>Save_Clip If you are getting other info from clipboard like files then use the optional $iFormat of _ClipBoard_GetData(). My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
Guest Posted April 15, 2012 Share Posted April 15, 2012 (edited) ds Edited July 12, 2016 by Guest Link to comment Share on other sites More sharing options...
Zedna Posted April 15, 2012 Share Posted April 15, 2012 Look here at example for using API functions for clipboard monitoring Resources UDF ResourcesEx UDF AutoIt Forum Search 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