johndeway-fx Posted January 24, 2012 Share Posted January 24, 2012 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... Quote Link to comment Share on other sites More sharing options...
MertCanDinler Posted February 2, 2012 Share Posted February 2, 2012 [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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.