Jump to content

Recommended Posts

Posted (edited)

Hey peoples :) 

 

I am almost done with my copy paste tool... 

 

I got all text logued hours and index everything is loaded at the next start up. Gui have 3 positions. 

 

Well to make things easy i did 3 log at same time and i read them all to backup all data at next startup. 

-1 log with text

-1 log with hours

-1 log with index

 

I whould like to know if i can read something else than txt file.

For exemple i whould like to dodge the fact that an user open log02 in my tool becose there is only hours at each line and no userfull data inside it. 

 

Can i log everything in something else than TXT ?

Then read after of course

 

I guess there is no need code for this question but if you need some code...: 

If RegRead ( "HKEY_CURRENT_USER\SOFTWARE\CopyPaste\Configuration" , "Log" ) = "Yes" Then
      GUICtrlSetState($LogCopypast, $GUI_CHECKED)
      $LogOuiNon = 1
      ;Recupération log si activé
      $File3 = FileOpen( @ScriptDir&"\Log.txt",  $FO_READ )
      $File03 = FileOpen( @ScriptDir&"\Data\Log02.txt",  $FO_READ )
      $File003 = FileOpen( @ScriptDir&"\Data\Log002.txt",  $FO_READ )
      $LogLines = _FileCountLines ( @ScriptDir&"\Log.txt" )
      For $Ia = 0 To $LogLines
         $LineChanging = FileReadLine ($File3 , $Ia )
         $LineChanging02 = FileReadLine ($File03 , $Ia )
         $LineChanging002 = FileReadLine ($File003 , $Ia )
         _GUICtrlListView_AddItem($Console,""&$LineChanging )
         _GUICtrlListView_EnsureVisible($Console, _GUICtrlListView_GetItemCount($Console)-1)
         _GUICtrlListView_AddSubItem ( $Console,  _GUICtrlListView_GetItemCount($Console)-1 , $LineChanging002 , 1 ,1 )
         _GUICtrlListView_AddSubItem ( $Console,  _GUICtrlListView_GetItemCount($Console)-1 , $LineChanging02 , 2 ,1 )
      Next
      FileClose ($File3)
      FileClose ($File03)
      FileClose ($File003)
   ElseIf RegRead ( "HKEY_CURRENT_USER\SOFTWARE\CopyPaste\Configuration" , "Log" ) = "No" Then
      ConsoleWrite ("; Log Désactivé."&@CRLF)
      GUICtrlSetState($LogCopypast, $GUI_UNCHECKED)
      $LogOuiNon = 0
   EndIf

Inside this code i whould like to change 

$File3 = FileOpen( @ScriptDir&"\Log.txt",  $FO_READ )
      $File03 = FileOpen( @ScriptDir&"\Data\Log02.txt",  $FO_READ )
      $File003 = FileOpen( @ScriptDir&"\Data\Log002.txt",  $FO_READ )

log02 and log002 by somthing like Data1.dat or what is supportd by AutoIT ?

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted (edited)

@FrancescoDiMuroI dont know that ?

Can you explain me in shord what is it ?

 

I know "everything" about crypting. 

But SQLite

 

If i make one it would be my first DB.

I never tuched hited talked made played about DB :P

 

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

@caramen
A DB is a "place" where you can store several data in an ordered way.
Since you want to store three information (which are called attributes), which seems to be related each others, you could use a Database, where you store them together.
Your DB schema could be:

  • Index;
  • Timestamp, when the user did the Ctrl + C command I guess;
  • Text, the text that the user copied I guess.

So, you can have only one file in which you have these information.
I suggest you to take a look at this, and at this when you understood what SQLite, how does it work, and how to inegrate it with AutoIt :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Posted

Man lol... I will be better than my master soon take care !!!! :evil::evil::evil::evil::evil::evil::evil:

 

Maybe i wil learn you something one day :shifty:

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted

Ini file could work.

And yes, you could save a file with any extension with text, and later open it and read it as text. .dat .xyz .whatever

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted (edited)
3 hours ago, careca said:

Ini file could work.

And yes, you could save a file with any extension with text, and later open it and read it as text. .dat .xyz .whatever

But i tryed and it does not work.

My code is working very fine :D

I just changed the*.txt into *.dat tryed to write and read and no it does not work...

 

Maybe the flag i am using ?

$FO_READ

$FO_APPEND

 

BTW i will try to make a SQLite. 

Now my main question is secondary.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...