Jump to content

DVD'ye Gözat - DVD'yi çalıştır kodları


nuso
 Share

Recommended Posts

Arkadaşlar AutoPlay Programında Çalışırken İki Tane Buton Ekledim

1 - DVD'ye Gözat

2 - DVD'yi Çıkar

Fakat Bu Butonların Kodlarını Bilmiyorum Araştırdım Ama Bulamadım.

Bilen Arkadaşımız varsa Söyleyebilir mi ?

Link to comment
Share on other sites

DVDye Gözat için butonun Quick Action kısmından Explore Folderi seçin,altındaki Properties bölümüne ise

_SourceFolder bunu yazın işlem tamam.

DVDyi çıkar için butonun script kısmına

DrivesTB = Drive.Enumerate();
for nIndex, DrvLetter in DrivesTB do
if Drive.GetType(DrvLetter) == 5 then
Drive.Eject(DrvLetter);
Application.Exit(0);
error = Application.GetLastError();
if (error ~= 0) then Dialog.Message("Hata", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
end
end[/CODE]

bunları yazıp denermisiniz.

Link to comment
Share on other sites

DVDye Gözat için butonun Quick Action kısmından Explore Folderi seçin,altındaki Properties bölümüne ise

_SourceFolder bunu yazın işlem tamam.

DVDyi çıkar için butonun script kısmına

DrivesTB = Drive.Enumerate();
for nIndex, DrvLetter in DrivesTB do
if Drive.GetType(DrvLetter) == 5 then
Drive.Eject(DrvLetter);
Application.Exit(0);
error = Application.GetLastError();
if (error ~= 0) then Dialog.Message("Hata", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
end
end[/CODE]

bunları yazıp denermisiniz.

DVD'yi Çıkar Tamamdır Kardeş O Çalışıyo.Fakat İkinci Söylediğin Explorer Folder Kısmına Girdim Fakat Yazı Yazamıyorum Klasör Soruyo.Resimle Gösterebilir misin Acaba ?

Link to comment
Share on other sites

  • 1 yıl yıl...

[b]Dvd yi Çıkart kodunu yazınca bu hatayı alıyorum AutoPlay Media Studio 8.0.6.0 kullanıyorum
DrivesTB = Drive.Enumerate();
for nIndex, DrvLetter in DrivesTB do
if Drive.GetType(DrvLetter) == 5 then
Drive.Eject(DrvLetter);
Application.Exit(0);
error = Application.GetLastError();
if (error ~= 0) then Dialog.Message("Hata", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
end
end[/b]


[img]http://www.tnctr.com/uploads/imgs/pre_1318783785__adsz.jpg[/img]

Link to comment
Share on other sites

kodları aşağıdakilerle değiştirin:

[quote]DrivesTB = Drive.Enumerate();
for nIndex, DrvLetter in pairs(DrivesTB) do
if Drive.GetType(DrvLetter) == 5 then
Drive.Eject(DrvLetter);
Application.Exit(0);
error = Application.GetLastError();
if (error ~= 0) then Dialog.Message("Hata", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
end
end[/quote]

sebebi ise for döngülerinde tablo kullanırken eskiden pairs argümanı gerekmezken v8'de for i,v in pairs(tablo) do şeklinde değişiklik yapılması.

Link to comment
Share on other sites

[quote name='KintaRo' date='16 October 2011 - 18:02 ' timestamp='1318788160' post='1096171']
kodları aşağıdakilerle değiştirin:



sebebi ise for döngülerinde tablo kullanırken eskiden pairs argümanı gerekmezken v8'de for i,v in pairs(tablo) do şeklinde değişiklik yapılması.
[/quote]

[b]Hızır gibi yetiştiniz hallettim bu kodla üstat [/b]

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