Jump to content

Au3 Çalıştırma


mesale0077
 Share

Recommended Posts

[img]http://i.imgur.com/vGIFW.jpg[/img]
autoit olmayan bir bilgisayarda çalışması için au3 dosyasını önce kendi bilgisayarında compile etmen gerekir yani exe formatına çevirmen gerekir bunun için au3 dosyasına sağtıklayıp compile script demen yeterli eğer yanlış anlamadıysam tabi ama au3 dosyası autoit olmayan bir bilgisayarda çalışırmı orasını bilemem.

Edited by MeHMeTBeN
Link to comment
Share on other sites

[font="Courier New"]Ben herhangi bir çalışma yapacaksam scite üzerinden yaparım yani kodları debug için F5 (Go) kullanırım ve sorun varsa output a bakarım zaten bana hata mesajı uyarı satır bilgisiyle verilir. Ayrıca compile yani derleme işlemini yapacaksam Ctrl+F7 (compile) yaparak scriptin daha sağlıklı uygulama olmasını sağlarım size önerim scite üzerinden işlemlerinizi yapmak böylece sorunları daha kolay çözersiniz..Kolay gelsin iyi çalışmalar..[/font]

Edited by SimpsoN_Bart
Link to comment
Share on other sites

herkese teşekkürler

sorun çözüldü
anlatmak istediğim yaptığım işi yaptığım proğram aracılığıyla incelemekti ,au3 zaten compiler yapılamadan başka pc autoit olmazsa çalışmaz .amaç önceden bakma olayı
,hata aramak degil ,yapılan işin ön izlemesi gibi ,au3 dosyasını proğram üretecek sonra ,gene proğramla au3 dosyasınındaki çalışmasına bakacağım nasıl olduğuna ,sonra compiler yapılır
autoit sitesinden buldum,
[code]#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("[#] Form1 [#]", 623, 442, 192, 124)
$Button1 = GUICtrlCreateButton("Önizleme", 224, 160, 185, 81)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_RunWaitAU3(@ScriptDir&"\tnc_.au3")


EndSwitch
WEnd


Func _RunAU3($sFilePath, $sCommandLine = "", $sWorkingDir = "", $iShowFlag = @SW_SHOW, $iOptFlag = 0)
Return Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & $sFilePath & '" ' & $sCommandLine, $sWorkingDir, $iShowFlag, $iOptFlag)
EndFunc ;==>_RunAU3

Func _RunWaitAU3($sFilePath, $sCommandLine = "", $sWorkingDir = "", $iShowFlag = @SW_SHOW, $iOptFlag = 0)
Local $iPID
$iPID = RunWait('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & $sFilePath & '" ' & $sCommandLine, $sWorkingDir, $iShowFlag, $iOptFlag)
If @error Then
Return SetError(@error, 1, 0)
EndIf
Return $iPID
EndFunc ;==>_RunWaitAU3[/code]

Link to comment
Share on other sites

Dediklerinden pek birşey anlamadım ama yaptığın işe bakılırsa sana dediğim şeyler yanlış değil, amacın ne olursa olsun hataları görmen veya outputa bakman önemlidir kanımca hem yazdıklarım da kullanmanı tavsiye ederim.Bu arada proğram değil program.

Edited by SimpsoN_Bart
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...