Jump to content

Sıralı, Ayarlı Otomasyon.


johndeway-fx
 Share

Recommended Posts

Olay sırası şöyle... autoitli.exe çalıştırılır. ayar.txt dosyası oluşturulacaktır. ayar.txt dosyası autoitin içinde olacak belli bir satırın belli bir yerindeki yer değiştirilip ayar.txt olarak kaydedilecektir.

(url yazdıracağım aslında, url burada değişken. satır $url= "url adresi buraya" ; gibi birşey)

Neyse ayar.txt yazdırıldıktan sonra başka.exe çalıştırılacak. Olay örgüsü burada sona eriyor. Yanlız url'yi txt dosyasına yazdırabilmek için bir pop up penceresi açmak lazım. Kişi oraya yazacak sonra onay verince ayar.txt oluşturulmuş olacak. Şu noktada ayar.txt varsa üzerine yazacak bir yapı lazım. Şimdiden teşekkürler...
Link to comment
Share on other sites

  • 2 hafta sonra ...

[code]Global $ConfigFile = @ScriptDir&"/ayar.txt"
;---------
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$url = FileRead(@scriptdir&"/ayar.txt")
$Form1 = GUICreate("Form1", 380, 83, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 72, 16, 233, 21)
$Button1 = GUICtrlCreateButton("Button1", 312, 16, 49, 25, $WS_GROUP)
$Input2 = GUICtrlCreateInput($url, 72, 48, 233, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY))
GUICtrlCreateLabel("yeni link", 16, 16, 42, 17)
$Label1 = GUICtrlCreateLabel("kayıtlı link", 8, 48, 49, 17)
GUISetState(@SW_SHOW)


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileDelete(@scriptdir&"/ayar.txt")
FileWrite(@scriptdir&"/ayar.txt",Guictrlread($Input1))

EndSwitch
WEnd
[/code]
şuan ki bilgimle ben bu işi böyle hallederdm :D

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...