Jump to content

Steviep

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Steviep's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi all, I've been using the following code for many years for the sole purpose of tracking my app usage via Google Analytics: ;GOOGLE ANALYTICS $AppStatsName = @ScriptName $GA = _IECreate("https://mywebserver/apps/stats/" & $AppStatsName & ".html", 0, 0, 0, 0) The app simply calls a blank .html page on my webserver which only contains the GA tracking code. The $iVisible parameter is set to "0" in my case, which means the IE browser is invisible to the user. I noticed in Windows 11, the URL is called in the Edge browser and is not invisible. So, I wonder if anyone out there has any suggestions on calling a URL invisibly on any operating system? Thanks!
  2. @FrancescoDiMuro In the end, this is exactly what I decided to do. Thanks for your assistance!
  3. @BrewManNH You're right that it does work if the UTF8-BOM.ini file does not exist, but in my case i'm updating an existing .ini file which was previously encoded with UTF8-BOM. Do you think there's a way to write these characters directly to an existing UTF8-BOM .ini?
  4. @FrancescoDiMuro I tried the following but instead, it created a new file name called "1" #include <File.au3> $file = "UTF8-BOM.ini" $Open = FileOpen ( $file, 129) IniWrite ( $Open, "section", "key", "é") FileClose ($Open) @BrewManNH I tried with 32 instead of 129, but seem to have the same results: $file = "UTF8-BOM.ini" $Open = FileOpen ( $file, 32) IniWrite ( $file, "section", "key", "é") FileClose ($Open) NotePad++ is showing that the file is UTF8+BOM which is good but I just can't seem to write these characters to it.
  5. I tried mode 129 ($FO_APPEND + $FO_UTF8) with FileOpen but still no luck: #include <File.au3> $file = "UTF8-BOM.ini" $Open = FileOpen ( $file, 129) IniWrite ( $file, "section", "key", "é") FileClose ($Open) See result in screenshot attached.
  6. Hi all, i'm updating an installer script which must write French text with accented characters to existing .INI preference files encoded with UTF8-BOM. IniWrite ( "UTF8-BOM.ini", "section", "key", "é") When I attempt to do so, the é character appears scrambled. I've been reading through the Help documents and see we can use FileOpen for new files, but in this case I'm updating existing files. I have also been reading lots of other community posts related to this and understand there are limitations with .ini files & UTF8-BOM. I've been experimenting without success, any suggestions? Thanks.
  7. Hi all, I have a GUI which contains radio buttons, input fields and a "Submit" button. When a user makes their selections and clicks on "Submit", I would like their selections to be written to a file on a FTP server (ideally something which can be opened in Excel later on for review). The goal is to collect data from many users, (this is a "Feedback" form). The more people who complete the form, the bigger the file would grow. Ideally i'd like to avoid uploading 1 .txt file per submission as it would be hard to analyse the data later. Any suggestions? Many thanks!
  8. Thanks for the quick response JCHD. I had a feeling this might be the case. As a workaround, do you believe there would be a way to simply delete any line which starts with "CustomScript = "Start" , "Insight"" ?
  9. Hi all, I have a script which is used as part of a wrapper for an installer. The script is responsible to performing certain actions, a lot of which involve IniRead & IniWrite. Today I have been presented with a tricky situation, here's what I am trying to accomplish: The AutoIT script will read an existing .INI file which contains a section like this: [Customise] CustomScript = "Bemaßen" , "Störmer" , "Schließn" , "Schnell schließen" , "" , "OnCloseNoImage.rpt" , "Schnelles schließen der Planung ohne Ansichten zu erzeugen" , "" , "0" CustomScript = "Einfügen" , "Störmer" , "Schließn" , "Schnell schließen" , "" , "OnCloseNoImage.rpt" , "Schnelles schließen der Planung ohne Ansichten zu erzeugen" , "" , "0" CustomScript = "Ansicht" , "Störmer" , "Schließn" , "Schnell schließen" , "" , "OnCloseNoImage.rpt" , "Schnelles schließen der Planung ohne Ansichten zu erzeugen" , "" , "0" CustomScript = "Start" , "Insight" , "Planung ersetzen" , "Prüfen" , "" , "ValidateItems.rpt" , "Prüfen der Artikelkonfiguration" , "" , "0" CustomScript = "Start" , "Insight" , "Prüfen" , "Preis" , "" , "PriceItems.rpt" , "Preise bestimmen" , "" , "0" CustomScript = "Start" , "Insight" , "Preis" , "Abbrechen" , "" , "AbortChanges.rpt" , "Abbrechen der Planung ohne aktuelle Änderungen zu übernehmen" , "" , "0" CustomScript = "Start" , "Insight" , "Abbrechen" , "Spiegeln" , "" , "OnMirror.rpt" , "Horizontales oder vertikales Spiegeln der aktuellen Planung" , "" , "0" CustomScript = "Start" , "Insight" , "Spiegeln" , "Schnell schließen" , "" , "OnCloseNoImage.rpt" , "Schnelles schließen der Planung ohne Ansichten zu erzeugen" , "" , "0" CustomScript = "Start" , "Insight" , "Schnell schließen" , "Schließn" , "" , "OnClose.rpt" , "Schnelles schließen der Planung mit Ansichten zu erzeugen" , "" , "0" I need to delete only the lines which contain "CustomScript = "Start" , "Insight"". I have not had any luck with IniDelete since this function only accepts Filename, Section and Key, but no value. Any suggestions? Many thanks!
×
×
  • Create New...