Jump to content

RyeStick

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by RyeStick

  1. Nevermind I sussed it. I used StringReplace() Local $sString = StringReplace("1,62918.", ",", ".") Local $iReplacements = @extended MsgBox($MB_SYSTEMMODAL, "", $iReplacements & " replacements were made and the new string is:" & @CRLF & @CRLF & $sString) I did spend about an hour prior to posting this trying to figure this out. Sorry for wasting your time.
  2. Hello, Would someone be able to help me with something. I have a number say 1,62918 which has a comma but I need it as 1.62918 with a point, how do I go about doing this?
  3. The Reinstall has not fixed the problem? do you think my register could be corrupted or something, how do you think I can fix the problem?
  4. Wow, I just tried this on a different computer and it works. I have spent hours trying to get this to work. What do you think the problem may be?I am going to try a reinstall and get back to you.
  5. Your example works in creating a filepath, does it copy ClipGet() contents for you? as it opens an emtpy black notepad for me.
  6. Yes the I tried 9 also, The documentation says it is number 8. I have added the following $file1 = "C:\Users\Home\Desktop\Documents\test.txt"    Local $Savetext = FileOpen($file1, 8)    ; Prove it exists    If FileExists($Savetext) Then     MsgBox($MB_SYSTEMMODAL, "File", "Exists")    Else     MsgBox($MB_SYSTEMMODAL, "File", "Does not exist")    EndIf    FileWrite($Savetext, ClipGet() & @CRLF)    FileClose($Savetext) MsgBox says the file does not exist. Both. I can't create the file and if I create the file manually and then attempt to amend/write over it with the clipboards contents then does it not work.
  7. Why must it be text? Wouldn't anything in the clipboard get copied to the text file? I tried changing the FileOpen($file1, 8) but does not seem to create the filepath.
  8. Hello would someone be able to help me with my code. I am trying to write the clipboards contents to a text file. I have read the documentation but can't seem to egt it to work. $file1 = "C:\Users\Home\Desktop\Documents\test.txt" Local $Savetext = FileOpen($file1, 1) FileWrite($Savetext, ClipGet() & @CRLF) FileClose($Savetext)
×
×
  • Create New...