Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/28/2018 in all areas

  1. You can put values in a registry and that should be harder for users to find, and if properly locked out of admin rights they cant edit.
    2 points
  2. Funny way to start.. telling us we do not want to help you or aren't that smart! Jos
    1 point
  3. Hello, You could use the ini values in a way, that they must present some secret string, if not present or not as expected, then the options will work "default". An easy way to do so might be the hash code of the EXE file, that will change every time you rollout a new version. Have a look at C:\Program Files (x86)\AutoIt3\Examples\Helpfile\_Crypt_HashFile.au3 Regards, Rudi.
    1 point
  4. Hi. explicitely open as UTF8: #include <Clipboard.au3> #include <String.au3> #include <FileConstants.au3> _Example() Func _Example() Local $sRTF_FileFullPath = "c:\temp\test-outfile.rtf" Local $hFile = FileOpen($sRTF_FileFullPath,$FO_UTF8) Local $sRTF_Content = FileRead($hFile) $sRTF_Content = StringReplace($sRTF_Content,"\{name\}", "Some Replacement") FileClose($hFile) ConsoleWrite($sRTF_Content & @CRLF) Exit Local $iClipboardFormat = _ClipBoard_RegisterFormat("Rich Text Format") Local $hMemory = _ClipBoard_SetData($sRTF_Content, $iClipboardFormat) EndFunc >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\temp\replace-test.au3" /UserParams +>15:32:47 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0407) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.5) from:C:\Program Files (x86)\AutoIt3 input:C:\temp\replace-test.au3 +>15:32:47 AU3Check ended.rc:0 >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\temp\replace-test.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop {\rtf1\ansi\ansicpg1257\deff0\deflang1061{\fonttbl{\f0\fswiss\fprq2\fcharset186 Calibri;}{\f1\fnil\fcharset0 Calibri;}} {\colortbl ;\red31\green73\blue125;} {\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\cf1\f0\fs22 Hello Some Replacement good to see you!\cf0\lang1033\f1\par } +>15:32:47 AutoIt3.exe ended.rc:0 +>15:32:47 AutoIt3Wrapper Finished. >Exit code: 0 Time: 0.6682 regards, Rudi.
    1 point
×
×
  • Create New...