İçeriğin rss beslemesi kullanımda değil Soru - Cevap Bölümü / Kategori: Programlama

24/06/2005 - 15:29:16 cevap (3) Okunma : 7798 Bu yazıyı 0 kişi tuttu.

Encrypts/Decrypts script in kullanımı

BuddyAPI kullanarak cd den pdf açtırıyorum.

on mouseUp me
  baShell( 'open', the moviePath & 'acrobat\AcroRd32.exe', the moviePath & 'pdf\kitap_1.pdf' , '', 'normal')
end

pdf’yi şifreleyip – tekrar açmak istiyorum.

elimde bu script var ama nasıl kullanacağımı bilmiyorum. yardımcı olursanız sevinirim.

-- custom properties -- 
property folderlist,theFile,subfolders,fileslist,keyorpass,whereto 

------ Get Behavior Description List ------ 
on getPropertyDescriptionList me 
  fileslist=getfilelist(me) 
  set description = [:] 
  addProp description, #theFile, [#format:#String, #comment: 'Encrypt/Decrypt Which File ?', #range:fileslist,#default:fileslist[1]] 
  addProp description, #keyorpass, [#format:#String, #comment: 'Your Key/Password? ', #default:'Enter Your Key here.'] 
  if the currentspritenum = 0 then 
    addProp description, #WhereTo, [#comment: 'Where To Attach ?' ,#format:#String, 
    #range:['On EnterFrame','On ExitFrame'],#default:'On EnterFrame'] 
  else 
    addProp description, #WhereTo, [#comment: 'Where To Attach ?' ,#format:#String, 
    #range:['On MouseUp','On MouseDown','On MouseEnter','On MouseLeave'],#default:'On MouseUp']     
  end if     
  return description 
end getPropertyDescriptionList 
------ Get Behavior Description List ------ 

-- Get Behavior description -- 
on getBehaviorDescription 
  return 'This Behavior Encrypts/Decrypts a file. ' & RETURN & 
'Actually It toggles Encrypt/Decrypt.' & RETURN & RETURN & 
  'Make sure you have the file you want to encrypt/decrypt is in current folder or subfolders upto level 2. ' & RETURN & RETURN & 
  'This Behavior needs Buddy API Xtra to work, so please ensure You Have Buddy API Xtra.' & RETURN & RETURN & 
  'Parameters' & RETURN & 
  '* File.' & RETURN & 
  '* Key/password.' & RETURN & 
  '* Where to attach this Script' 
end 
-- Get Behavior description -- 

---- get the file name to be opened ---- 
on getfilelist me 
  set mypath=the moviepath 
  set fileslist=[] 
  set Folders = baFolderList( mypath ) 
  set Files = baFileList( mypath ,'*.*') 
  repeat with M=1 to Files.count 
    fileslist.append(files[m]) 
  end repeat 
  repeat with i = 1 to folders.count 
    set subfolders = baFolderList( mypath & '' & folders[i]) 
    if subfolders.count <> 0 then 
      repeat with j=1 to subfolders.count 
        set Files = baFileList( mypath & ' ' &  folders[i] & '' & subfolders[j],'*.*') 
        repeat with k=1 to Files.count 
          fileslist.append(folders[i] & '' & subfolders[j] & '' & files[k]) 
        end repeat 
      end repeat 
      set Files = baFileList( mypath & ' ' &  folders[i],'*.*')     
      repeat with j=1 to Files.count 
        fileslist.append(folders[i] & '' & files[j]) 
      end repeat     
    else 
      set Files = baFileList( mypath & ' ' &  folders[i],'*.*') 
      repeat with j=1 to Files.count 
        fileslist.append(folders[i] & '' & files[j]) 
      end repeat 
    end if       
  end repeat 
  return fileslist 
end 
---- get the file name to be opened ---- 

-- Events -- 
on EnterFrame me 
  if WhereTo = 'On EnterFrame' then 
    openfile 
  end if 
end EnterFrame 

on ExitFrame me 
  if WhereTo = 'On EnterFrame' then 
    encryptordecrypt 
  end if 
end ExitFrame 

on MouseUp 
  if WhereTo = 'On MouseUp' then 
    encryptordecrypt 
  end if 
end MouseUp 

on MouseDown 
  if WhereTo = 'On MouseDown' then 
    encryptordecrypt 
  end if 
end MouseDown 

on MouseEnter 
  if WhereTo = 'On MouseEnter' then 
    encryptordecrypt 
  end if 
end MouseEnter 

on MouseLeave 
  if WhereTo = 'On MouseLeave' then 
    encryptordecrypt 
  end if 
end MouseLeave 
------ Events ------ 

---Encrypt/Decrypt a File --- 
on encryptordecrypt 
  if keyorpass <> '' then 
    set OK = baEncryptFile( the moviepath & thefile , keyorpass ) 
  else 
    alert 'Please Enter Your Key' 
  end if 
end 
---Encrypt/Decrypt a File --- 

.

adres fati profilini göster
Fatma Arsan 24.06.2005 16:33:19
En iyi cevap mı ?

selam,

on encryptordecrypt 
  if keyorpass <> '' then 
    set OK = baEncryptFile( the moviepath & thefile , keyorpass ) 
    baShell( 'open', the moviePath & 'acrobat\AcroRd32.exe', the moviePath & theFile , '', 'normal') 
  else 
    alert 'Please Enter Your Key' 
  end if 
end

seklinde duzenlenirse sorun cozulecektir.

ote yandan; pdf’ler cd’ye yazilirken encyrpt edilmesi yani sifrelemesi lazim…

kolay gelsin

BuddyAPI kullanarak cd den pdf açtırıyorum.
on mouseUp me
  baShell( 'open', the moviePath & 'acrobat\AcroRd32.exe', the moviePath & 'pdf\kitap_1.pdf' , '', 'normal')
end
pdf’yi şifreleyip – tekrar açmak istiyorum. elimde bu script var ama nasıl kullanacağımı bilmiyorum. yardımcı olursanız sevinirim.
-- custom properties -- 
property folderlist,theFile,subfolders,fileslist,keyorpass,whereto 

------ Get Behavior Description List ------ 
on getPropertyDescriptionList me 
  fileslist=getfilelist(me) 
  set description = [:] 
  addProp description, #theFile, [#format:#String, #comment: 'Encrypt/Decrypt Which File ?', #range:fileslist,#default:fileslist[1]] 
  addProp description, #keyorpass, [#format:#String, #comment: 'Your Key/Password? ', #default:'Enter Your Key here.'] 
  if the currentspritenum = 0 then 
    addProp description, #WhereTo, [#comment: 'Where To Attach ?' ,#format:#String, 
    #range:['On EnterFrame','On ExitFrame'],#default:'On EnterFrame'] 
  else 
    addProp description, #WhereTo, [#comment: 'Where To Attach ?' ,#format:#String, 
    #range:['On MouseUp','On MouseDown','On MouseEnter','On MouseLeave'],#default:'On MouseUp']     
  end if     
  return description 
end getPropertyDescriptionList 
------ Get Behavior Description List ------ 

-- Get Behavior description -- 
on getBehaviorDescription 
  return 'This Behavior Encrypts/Decrypts a file. ' & RETURN & 
'Actually It toggles Encrypt/Decrypt.' & RETURN & RETURN & 
  'Make sure you have the file you want to encrypt/decrypt is in current folder or subfolders upto level 2. ' & RETURN & RETURN & 
  'This Behavior needs Buddy API Xtra to work, so please ensure You Have Buddy API Xtra.' & RETURN & RETURN & 
  'Parameters' & RETURN & 
  '* File.' & RETURN & 
  '* Key/password.' & RETURN & 
  '* Where to attach this Script' 
end 
-- Get Behavior description -- 

---- get the file name to be opened ---- 
on getfilelist me 
  set mypath=the moviepath 
  set fileslist=[] 
  set Folders = baFolderList( mypath ) 
  set Files = baFileList( mypath ,'*.*') 
  repeat with M=1 to Files.count 
    fileslist.append(files[m]) 
  end repeat 
  repeat with i = 1 to folders.count 
    set subfolders = baFolderList( mypath & '' & folders[i]) 
    if subfolders.count <> 0 then 
      repeat with j=1 to subfolders.count 
        set Files = baFileList( mypath & ' ' &  folders[i] & '' & subfolders[j],'*.*') 
        repeat with k=1 to Files.count 
          fileslist.append(folders[i] & '' & subfolders[j] & '' & files[k]) 
        end repeat 
      end repeat 
      set Files = baFileList( mypath & ' ' &  folders[i],'*.*')     
      repeat with j=1 to Files.count 
        fileslist.append(folders[i] & '' & files[j]) 
      end repeat     
    else 
      set Files = baFileList( mypath & ' ' &  folders[i],'*.*') 
      repeat with j=1 to Files.count 
        fileslist.append(folders[i] & '' & files[j]) 
      end repeat 
    end if       
  end repeat 
  return fileslist 
end 
---- get the file name to be opened ---- 

-- Events -- 
on EnterFrame me 
  if WhereTo = 'On EnterFrame' then 
    openfile 
  end if 
end EnterFrame 

on ExitFrame me 
  if WhereTo = 'On EnterFrame' then 
    encryptordecrypt 
  end if 
end ExitFrame 

on MouseUp 
  if WhereTo = 'On MouseUp' then 
    encryptordecrypt 
  end if 
end MouseUp 

on MouseDown 
  if WhereTo = 'On MouseDown' then 
    encryptordecrypt 
  end if 
end MouseDown 

on MouseEnter 
  if WhereTo = 'On MouseEnter' then 
    encryptordecrypt 
  end if 
end MouseEnter 

on MouseLeave 
  if WhereTo = 'On MouseLeave' then 
    encryptordecrypt 
  end if 
end MouseLeave 
------ Events ------ 

---Encrypt/Decrypt a File --- 
on encryptordecrypt 
  if keyorpass <> '' then 
    set OK = baEncryptFile( the moviepath & thefile , keyorpass ) 
  else 
    alert 'Please Enter Your Key' 
  end if 
end 
---Encrypt/Decrypt a File --- 
adres Hassonya_cf profilini göster
Hasan Alış 24.06.2005 16:54:55
En iyi cevap mı ?

bu cevap biraz profesyonelce oldu sanırım.

ben BuddyAPI’yi kullanmayı yeni öreniyorum ve bu scripti de nasıl kullanacağımı bilmiyorum. ordaki uzun scripti nasıl kullanacağım.?

  • sizin verdiğiniz üstteki kodu nereye yazacağım?
  • cd’ye yazarken nası encyrpt edeceğim?

directorde cok yeniyim, eger mumkunse örnek bir .dir dosyasi yollayabilirmisin?

adres fati profilini göster
Fatma Arsan 29.06.2005 16:37:35
En iyi cevap mı ?
bu cevap biraz profesyonelce oldu sanırım. ben BuddyAPI’yi kullanmayı yeni öreniyorum ve bu scripti de nasıl kullanacağımı bilmiyorum. ordaki uzun scripti nasıl kullanacağım.? – sizin verdiğiniz üstteki kodu nereye yazacağım? – cd’ye yazarken nası encyrpt edeceğim? directorde cok yeniyim, eger mumkunse örnek bir .dir dosyasi yollayabilirmisin?

Selam, benim yazdigim kodu new behaviour yapip oraya yazacaksin ve ilgili butona ekleyeceksin. bu da baska bir kucuk behaviour olacak yani o buton icin…

aç-kapa Bu Yazıyı Tutanlar

bu yazıyı tutan kimse yok.

yeni üyelik | şifremi unuttum

aç-kapa Yarışma Fikir10000 Dijital Pazarlama Fikir Yarışması

Fikir10000 Dijital Pazarlama Fikir Yarışması

ADTECH tarafından düzenlenen Fikir10000 yarışmasına; dijital pazarlama ile ilgili size ait olan fikrinizle katılabilir ve 10.000 YTL’lik birinci...
Kategori: Yarışma

aç-kapa Toplantı Kahraman ve need4code.com Projesi Connect Toplantısı

Kahraman ve need4code.com Projesi Connect Toplantısı

Selam arkadaslar, Programlama ile uğraşanların hayatlarını kolaylaştıracak desktop ve web tabanlı ortak iki proje ile ilgili 3. toplantımızı 16Aralı...
Kategori: Toplantı

aç-kapa Yarışma 7Dx Demoscene Party

7Dx Demoscene Party

2002 yılından beri amatör bilgisayar kültürü ile ilgilenen insanları bir araya getirmeyi hedefleyen 7DX parti serisinin bu seneki ayağı olan 7D8 Demo ...
Kategori: Yarışma

aç-kapa Eğitim Türkiye'de İnternet Konferansı - Internet Teknolojileri Derneği -22-23 Aralık ODTÜ

Türkiye'de İnternet Konferansı - Internet Teknolojileri Derneği -22-23 Aralık ODTÜ

Etkin Katılım Çağrısı Türkiye’de Internet ile ilgili grupları biraraya getirerek İnternet’i tum boyutlarıyla tanıtmak, gelistirmek, tartı...
Kategori: Eğitim

aç-kapa Konferans Bilgi Güvenliği ve Kriptoloji Konferansı

Bilgi Güvenliği ve Kriptoloji Konferansı

Önemli Tarihler: Etkinlik Tarihi : 24-26 Aralık 2008 Son Bildiri Gönderme Tarihi : 20 Ekim 2008 Bildiri Kabul Tarihi Bildirimi :...
Kategori: Konferans

üyeler Son Kahramanlar...

stats Kimler Burada? web stats

Son 1 dakika içinde MMIstanbul' da 584 (1 kayıtlı, 583 ziyaretçi) kullanıcı varmış. Login durumda olanlar aşağıda:

coldfusion mysql ubuntu
 
sponsor adobe istanbul