Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting current date and time
#4
Code:
Copy      Help
int w=win("" "Notepad")
act id(15 w)
key Ca
_s.getsel
str ss s.from(ss.timeformat("{D} {TT}") "[]" _s)
s.setfile("$Documents$\Backup.txt" -1 -1 1)
key D
 don't need setclip getclip functions at all here actually don't even need getsel either

Function SaveNotepadtextTofile
Code:
Copy      Help
int w=win("" "Notepad")
int c=id(15 w) ;;editable text 'Text Editor'
_s.getwintext(c)
str ss s.from(ss.timeformat("{D} {TT}") "[]" _s)
s.setfile("$Documents$\Backup.txt" -1 -1 1)


Messages In This Thread
RE: Inserting current date and time - by Kevin - 03-07-2019, 04:07 AM
RE: Inserting current date and time - by Kevin - 03-07-2019, 06:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)