
Borje
Active Members-
Posts
359 -
Joined
-
Last visited
Everything posted by Borje
-
Thanks musashi and water for all help i go on with base64 instead..
-
I have done more testes now and i have it to workswith txt files but exe encode exe file not works is there a solution to have that to works?
-
It not helps if I want to have file1.txt converted I use bobben -e "abcdef" file1.txt not working it save nothing
-
I have miss understood I am not so good in english but syntax for encode ?
-
bobben -e -d filname1.txt filname2.txt that creates a emty filname2.txt creates a empty filname2.txt
-
First to all I want to big thanks to all so far but i have some problem with the syntax to encode and decode from file to to file when I test bobben -e / -d filname1.txt filname2.txt that creates a emty filname2.txt I think that I done something wrong please help with the correct syntax..
-
I can't understand what problem is, it still not working.
-
Hi argumentum I can not have it to works i downloaded your pack and i try to compile I use the -h and no help windows appear nothings happen, have you tested this? and what version of autoit you compile with?
-
I am sorry Thats not works..
-
Thanks I would test that.
-
Hi argumentum I have already read and read but i cant have that to works. I hope some can help me with this problem.
-
Hi everybody ! I can not have this to works I try to use the command line settings but all time i have error, please can anybody help me to have this to work and what is wrong. base32.au3 bobben.au3
-
Solved Problem with filecreateshortcut
Borje replied to Borje's topic in AutoIt General Help and Support
Thank you rudi That's works perfect. -
Want to create shortcut to be able to run A3X file on a computer that not have the Autoit installed. What could it be wrong with this shortcut the shortcut is created but when double click on the shortcut, autoit3.exe and the A3X file are not run. and what must be changed to have it to work. FileCreateShortcut(@ScriptDir & "\AutoIt3.exe test.a3x",@DeskTopDir & "\Test.lnk", @ScriptDir & "","", "","" & "","","",@SW_SHOWMINNOACTIVE)
-
[solved] Open this folder with only txt or only exe files
Borje replied to Borje's topic in AutoIt General Help and Support
Thanks all here and I use KaFu exampleand that works as exspected. -
[solved] Open this folder with only txt or only exe files
Borje replied to Borje's topic in AutoIt General Help and Support
I was just wondering if there was any way to filter without using fileopen, but one possibility is to make a own explorer window with a filter function, but I'm not sure how to do that. -
[solved] Open this folder with only txt or only exe files
Borje replied to Borje's topic in AutoIt General Help and Support
Ok but I want display in explorer I have also test shellexecute it open folder in explorer and all files there is listed can nat filter to .txt or exe. -
I wonder if it is possible to open this folder and only show txt or exe files, thanks for help. Perhaps any one have some example. $sfolderpath = @DesktopDir & "\konverterad\" Local $oShell = ObjCreate('shell.application') If @error Then Return SetError(1, 0, 0) EndIf $oShell.Open($sFolderPath) Return 1
-
(solved) Need some help with dates
Borje replied to Borje's topic in AutoIt General Help and Support
Thank all of you helping me all works now with danp2 script many many thanks!! -
(solved) Need some help with dates
Borje replied to Borje's topic in AutoIt General Help and Support
I want to select a older backup and then run the regiedit with the selected date and not todays date perhaps the syntax is wrong in the run regedit? -
(solved) Need some help with dates
Borje replied to Borje's topic in AutoIt General Help and Support
I can not have that to works the result should be this Run("Regedit.exe /s @ScriptDir" & "\RegBackup" & "-" &@YEAR & "-" & @MON & "-" & @MDAY & "\RegBackup.reg") The stringreplace should only replace the @YEAR @MON @DAY all other should be there from the select dialog So I can run this with Regedit.exe -
(solved) Need some help with dates
Borje replied to Borje's topic in AutoIt General Help and Support
No I not want to create the folder is already made but what i want when I open the folder dialog and pick a already made i want this date to be inserted in line below Run("Regedit.exe /s @ScriptDir" & "\RegBackup" & "-" &@YEAR & "-" & @MON & "-" & @MDAY & "\RegBackup.reg") -
Hi I need som help with the selcted date #include "Folder.au3" Local Const $sMessage = "Select Register-Backup folder to restore" Local $Folder = FileSelectFolder2($sMessage, @scriptdir) MsgBox(32+4," Result ", $Folder) ;4096 ; The selection works ; What I want is how to do to have the selected date replaced to @YEAR & "-" & @MON & "-" & @MDAY in the line below !! Run("Regedit.exe /s @ScriptDir" & "\RegBackup" & "-" &@YEAR & "-" & @MON & "-" & @MDAY & "\RegBackup.reg") MsgBox(32+4," Result after selecting a folder ", @YEAR & "-" & @MON & "-" & @MDAY) ; This must display the selected date and not today date Folder.zip
-
Thanks Subz want to read the edit control to display the test.txt by default $EditControl = GUICtrlCreateEdit(FileRead("test.txt"), 0, 0, 600, 600) ;Creates Edit Control and it works ok.
-
Hello When I start this very simple editor I want it to read the file test.txt as default. But how to do it in a simple way? ;includes #include <GUIConstants.au3> #include <File.au3> ;declaring variables $OpenedFilePath = "no file" $OpenedFile = "no file" $TextEditor = GUICreate("Much Simple Text Editor", 300, 250) ;Creates (Hidden) GUI which will be 600 by 600 $FileMenu = GUICtrlCreateMenu("File") ;Creates the File menu $OpenFile = GUICtrlCreateMenuItem("Open...", $FileMenu) ;Creates Open File menu item $SaveFile = GUICtrlCreateMenuItem("Save", $FileMenu) ;Creates Save File menu item $PrintFile = GUICtrlCreateMenuItem("Print", $FileMenu) ;Creates Print File menu item $EditControl = GUICtrlCreateEdit("", 0, 0, 600, 600) ;Creates Edit Control GUISetState(@SW_SHOW) ;Shows the GUI While 1 ;Initiates While loop $msg = GUIGetMsg() ;Checks if any GUI events have occured Switch $msg ;Initiates the Switch Case $GUI_EVENT_CLOSE ;Checks if $msg = $GUI_EVENT CLOSE: Checks if the user pressed the Close button If $OpenedFilePath <> "no file" Then ;Checks if $OpenedFilePath doesn't equal the string "no file" If GUICtrlRead($EditControl) <> FileRead($OpenedFile) Then ;Checks if the text in the Edit Control doesn't equal the text in the opened file $SaveChangesBox = MsgBox(3, "Save File?", "Would you like to keep unsaved changes to the file you were editing?") ;Creates a dialog with Yes, No and Cancel buttons If $SaveChangesBox = 6 Then ;Checks if the user pressed Yes in the Unsaved Changes box FileDelete($OpenedFilePath) ;Deletes the Opened File $OpenedFile = FileOpen($OpenedFilePath, 0 + 2) ;Opens and clears the file for reading/writing FileWrite($OpenedFile, GUICtrlRead($EditControl)) ;Writes the text in the Edit Control to the opened text file Exit ;Exits the script ElseIf $SaveChangesBox = 7 Then;Checks if the user pressed No in the Unsaved Changes box Exit ;Exits the script EndIf ;Ends the If statement Else ;Executes the following code if the If/Elseif statement isn't true Exit ;Exits the script EndIf ;Ends the If statement Else ;Executes the following code if the If/Elseif statement isn't true Exit ;Exits the script EndIf ;Ends the If statement Case $PrintFile ;Checks if $msg = $PrintFile: Checks if the user selected the Print File GUI Control $PrintFileFunction = _FilePrint($OpenedFilePath) ;Prints the text file $OpenedFilePath If $PrintFileFunction Then ;Executes the following code if $PrintFileFunction = 1 MsgBox(0, "Print", "The file was printed.") ;Creates a message box with an OK button stating that $OpenedFilePath was printed Else ;Executes the following code if the If/Elseif function was not true MsgBox(0, "Print Error", "The file was not printed.") ;Creates an error message box with an OK button stating that $OpenedFilePath was printed EndIf ;Ends the If statement Case $OpenFile ;Checks if $msg = $OpenFile: Checks if the user selected the "Open File" GUI Control $OpenFileDialog = FileOpenDialog("Load Text File", "", "Text Files (*.txt)") ;Creates a File Open Dialog in which the title is "Load Text File", the Initial Directory is the Desktop, and the Filter is *.txt files If FileExists($OpenFileDialog) Then ;Executes the following code if the file path $OpenFileDialog exists $OpenedFilePath = $OpenFileDialog ;makes $OpenedFilePath = $OpenFileDialog $PreviousFileRead = FileRead($OpenedFilePath) ;Reads the text from $OpenedFilePath FileDelete($OpenedFilePath) ;Deletes the Opened File GUICtrlSetData($EditControl, $PreviousFileRead) ;Sets the Edit Control to have the same text as the previous read of the file $OpenedFile = FileOpen($OpenedFilePath, 0 + 2) ;Opens and clears the text file for reading/writing FileWrite($OpenedFile, $PreviousFileRead) ;Writes the value of $PreviousFileRead to the text file $OpenedFile EndIf ;Ends the If statement Case $SaveFile ;Checks if $msg = $OpenFile: Checks if the user selected the "Save File" GUI Control If $OpenedFilePath = "no file" Then ;Executes the following code if $OpenedFilePath = the string "no file" $NewDialog = FileSaveDialog("New File", "", "Text Files (*.txt)") ;Creates a File Save dialog in which the title is "New File", the initial directory is the Desktop, and the file filter is *.txt If $NewDialog <> "" Then ;Executes the following code if $NewDialog doesn't equal the string "" $OpenedFilePath = $NewDialog & ".txt" ;makes $OpenedFilePath equal $NewDialog with ".txt" appended to the end $OpenedFile = FileOpen($OpenedFilePath, 0 + 2) ;Opens and clears the text file for reading/writing FileWrite($OpenedFile, GUICtrlRead($EditControl)) ;Writes the text in the Edit Control to $OpenedFile EndIf ;Ends the If statement Else ;Executes the following code if the If/Elseif statement isn't true FileDelete($OpenedFilePath) ;Deletes the Opened File $OpenedFile = FileOpen($OpenedFilePath, 0 + 2) ;Opens and clears the text files for reading/writing FileWrite($OpenedFilePath, GUICtrlRead($EditControl)) ;Writes the text in the Edit Control to $OpenedFilePath EndIf ;Ends the If statement EndSwitch ;Ends the Switch statement WEnd ;Ends the While loop