Jump to content

Not Defterine Yazdırılan Yazı Nasıl Kaydettirilir


Amilo
 Share

Recommended Posts

[codebox]$file = FileOpen("deneme.txt", 1)
If $file = -1 Then
MsgBox(0, "Hata", "Dosya açılamıyor.!")
Exit
EndIf

FileWriteLine($file, "1.satır")
FileWriteLine($file, "2.satır" & @CRLF)
FileWriteLine($file, "3.satır" & @CRLF)
FileWriteLine($file, "4.satır" & @CRLF)
FileClose($file)
[/codebox]

Link to comment
Share on other sites

Şöyle bir örnek hazırladım, tabi hangi yolla yazı yazdırtıyorsun bilmiyorum, kendine göre düzeltirsin ;

[codebox]
#Include <File.au3>
$Title = "Adsız - Not Defteri"
Run("notepad.exe")
WinWaitActive($Title)
ControlSetText($Title,"","Edit1", "Divane")
_FileCreate(@DesktopDir & "\deneme.txt")
$Text = ControlGetText($Title,"","Edit1")
FileWrite(@DesktopDir & "\deneme.txt", $Text)
[/codebox]

Link to comment
Share on other sites

@mehmetben writeline zaten sonuna @crlf koyar onlar gereksiz olmuş.

@baba_ arkadaş olayı tam bilmediği için öyle sormuş yazı kaydetmenin diğer şekli de budur, yolun yanlış değil fakat doğrusu @mehmetben'in yaptığı gibidir.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...