Jump to content

Konsol Uygulaması Yapımı


DivaneTR
 Share

Recommended Posts

Autoit ile arayüz oluşturup GUI yapabilir, hiç arayüz oluşturmadan sadece bir script olarak da derleyip kullanabilirsiniz. Bunlara ek olarak konsol uygulamaları geliştirmek de mümkün. Dosya boyutunu gösteren basit bir örnek hazırladım.

If Not $CmdLine[0] = 0 Then
	If FileExists($CmdLine[1]) Then
		$Size = _GetSizeFormatted($CmdLine[1])
		ConsoleWrite("Dosya : " & $CmdLine[1] & " Boyut : " & $Size)
	EndIf
Else
	ConsoleWrite("Komutlar : " & @ScriptName & ' "' & "Dosya Dizini" & '"')
EndIf

Func _GetSizeFormatted($File)
	$Boyut = FileGetSize($File)
	$Yuvarla = Round($Boyut / 1024, 2)
	If $Yuvarla < 1024 Then
		Return $Yuvarla & " KB"
	ElseIf $Yuvarla > 1024 And $Yuvarla < 1048576 Then
		$Yuvarla = $Yuvarla / 1024
		$Yuvarla = Round($Yuvarla, 2)
		Return $Yuvarla & " MB"
	ElseIf $Yuvarla > 1048576 Then
		$Yuvarla = $Yuvarla / 1024 / 1024
		$Yuvarla = Round($Yuvarla, 2)
		Return $Yuvarla & " GB"
	EndIf
EndFunc   ;==>_GetSizeFormatted

hlH4kbO.png

 

Kodları scripte yazdıktan sonra derleme işlemi için aşağıdaki resimlere bakabilirsiniz.

 

[spoiler]

s7dAfyv.png

 

 

WqhSrGt.png

[/spoiler]

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

  • Similar Content

    • By artae
      File size: 7.90 MB

      cmd c is the clipboard manager for programmers, designed by programmers with a focus on the clean interface and easy to use, low cpu and low memory.
      HOW IT WORKS
      1. hit 'alt+v' to show the clipboards history
      2. chose the item you want from the list by selecting it with the mouse or with arrow keys
      3. pasting is done automatically to active app (if you install the applescript fromhttp://www.cristibaluta.com/cmdc/). if not, the items are only copied to clipboard and you must paste it manually with cmd+v.
      FEATURES
      keeps the original formatting of the copied text
      links are saved in a separate category. you can open them in browser by clicking the link icon
      includes a protected section by a pin
      generate secure passwords
      keeps window in memory for a limited time, if used frequently you'll notice a performance improvements
      history for up to 30 days but not less than 50 items
      snippets and protected items remains till you decide to delete them manually
      iCloud sync for snippets, urls, mobile and protected items across all devices
      iOS client
      enjoy copy pasting!
      Release NotesVersion History
      Supported Operation System
      macOS 10.12 or later
      Apple Silicon or Intel Core processor

      NitroFlare
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/11ACE3618C92B8C/fi5qp.cmd.c.1.4.2.MAS.rar



      https://rapidgator.net/file/af45ac6656a778f6b5b7fa5edd3051d5/fi5qp.cmd.c.1.4.2.MAS.rar


    • By artae
      File size: 7.44 MB
      cmd c is the clipboard manager for programmers, designed by programmers with a focus on the clean interface and easy to use, low cpu and low memory.

      HOW IT WORKS:
      1. Hit 'alt+v' to show the clipboards history
      2. Chose the item you want from the list by selecting it with the mouse or with arrow keys
      3. Pasting is done automatically to active app (if you install the applescript from. if not, the items are only copied to clipboard and you must paste it manually with cmd+v.

      FEATURES:
      Keeps the original formatting of the copied text
      Links are saved in a separate category. you can open them in browser by clicking the link icon
      Includes a protected section by a pin
      Generate secure passwords
      Keeps window in memory for a limited time, if used frequently you'll notice a performance improvements
      History for up to 30 days but not less than 50 items
      Snippets and protected items remains till you decide to delete them manually
      iCloud sync for snippets, urls, mobile and protected items across all devices
      iOS client
      Release Notes

      * Bring back the selection of items with the 0-9 keys. navigation by keyboard must be enabled in settings and accessibility is required.
      * The keys can be used also to enter the pin in the locked tab.
      * Fixed a bug where items couldn't be deleted.
      * Fixed duplicated items. if a clipboard string already exists in cmd c, it will be moved to top instead creating a duplicate.

      Supported Operation System:
      * 64-bit processor
      * macOS 10.12 or later
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      http://nitroflare.com/view/5C6A21FBEBEA63D/4d6c9.cmd.c.1.4.1.MAS.rar



      https://rapidgator.net/file/fcff5a159bc0261df0ab934e14b853e7/4d6c9.cmd.c.1.4.1.MAS.rar


    • By EASMurat
      Autoit Oto ip Player projesi Selam konunun üstadları, adından da anlaşılacağı üzere Autoit dilinde kodlanmış bir Player yapmak istiyorum fakat bu normal bir MP3 Player değil... Birçok formatı destekleyen bir Player olsun istiyorum, Özellikle Flac yayını Çalabilsin istiyorum. Asıl özellik ise belirli aralıklarla herhangi bir IP ve PORT üzerinden gelen yayını koptuğunda yada herhangi bir sebeple gittiğinde yeniden yayın geldiği zaman Otomatik yayınlamak. Buna birde Plugin eklenebilirse süperkulade olur ama asıl özellik belirli aralıklarla IP'den gelen yayını kontrol etsin Sürekli yayın akışı saglasın...

      Örneğin yayını gönderen IP'de ( 192.168.1.10:8080 ) elektrik kesintisi oldu yada herhangi bir sebeple yayın durdu. Bu Ip üzerinden gelen ses sinyali yeniden başlayınca yayını (sesi) otoatik almaya ve Çalmaya devam etsin...  Bu playeri bir nevi internet Playeri gibi düşünülebilir, yayın koptu ve yeniden yayın gelmeye başladı hicbirşeye dokunmadan yayını almaya devam etmeli... Bunun için hazır BASS.dll veya FLAC.dll dosyaları kullanılabilir burada bunları veren bir site var konunun uzmanları daha iyi bilirler ve araştırabilirler.... https://xiph.org/flac/ 

      Mesela işletim sistemi başladığında otomatik yayın (yani sesi çalmaya başlayacak ) şekilde bir seçenekde olmalı, tik koyduk bu secenek için... yada elle başlatmak için bu tiki kaldırıcaz şeklinde düşünülebilir. Şu aşağıdaki Player linklerini ve kendi denemelerimi Örnek olarak verebilirim incelemek isteyenlere yardımcı olursanız çok sevinirim, sanırım söylemek istediğimi anlatabilmişimdir. Sistem Yayın alacak şeklinde düşünülmeli herhangi bir dosyayı bir bellek üzerinden çalacak şekilde değil...  

      Bunlar yapmak istediğime yakın Projeler fakat otomatik yayın geldiğinde yeniden yayını alamaya devam etmesi birde MP3 dışındaki formatlarıda desteklemesi benim için en büyük özelliği, yani MP3,AAC,AAC+,OGG,FLAC, bunların hepsini destekler ve birde winamptaki gibi Pluginsde eklenebilirse aman değmeyin keyfime, Sistemin kurulacağı klasörün içine istediğimiz ses pluginlerini ekleyerek istediğimiz Pluginsi ayarlayaıp secebileceğimiz bir secenkde olmalı size baktığım birkaç kaynağı vereyim :
      * https://www.autoitscript.com/forum/topic/186202-basshls-example-for-play http-live-streaming-streams/
      * https://www.autoitscript.com/forum/topic/13203-streaming-online-radio/
      * https://www.autoitscript.com/forum/topic/83338-aamp-advanced-autoit-media-player/
      IP_YAYIN_ALICI_kodlari.au3
      YAYIN ALICI TEST.au3
    • By luger
      Merhaba arkadaşlar,
      Autoit'de kullandığımız SciTE editörünün bugün itibariyle resmi olarak Türkçe Dil dosyası yayınlandı. Ve şu anda resmi sunuculardan indirilebilir durumda.
      -- Eski SciTE editörü veya yeni SciTE editöründe kullanılabilir.
      -- Orjinal SciTe'te veya SciTe-Lite versiyonunda hatasız bir şekilde kullanılabilir.
      -- Autoit v3.3.14.2 ile gelen v3.5.4 ile de hatasız bir şekilde kullanılabilinir.
      ---------------------------------------------------------------------------------------------------
      1-->İlk olarak resmi sunucudaki kopyayla aynı olan bu dosyayı indirelim: İndir 
      2-->Sonra AutoIT içerisinde bulunan SciTE dizinine aynen şu adla "locale.properties" kaydedelim. Ve herşey hazır.
      Not: Dil dosyası Sürümü v3.7.1'dir. Ama en son SciTE  v3.7.4 tam olarak desteklenmektedir.
      ---------------------------------------------------------------------------------------------------
      Dil Dosyasının Kullanılabileciği Alan: https://www.tnctr.com/forum/97-autoit
      Dil Dosyasının Amacı: Herkes ana diliyle daha kolay kod yazabilsin diye.
      Türkçe Çeviri: By luger
    • By ekran
      !!! CMD de çalıştırınız !!!
      Not: İnsanları aldatma amaçlı kullanılmaması dileği ile;
      Komut istemi promptunu değiştirme;
      prompt $D$_$T$_Komut Bekliyorum_$P$G
      Renk değiştirme;
      color E9
      İstediğiniz boyutta dosya yaratıp hdd nizi dolu göstermek için;
      fsutil file createnew dosya.txt 999999999
      Açıklama;
      !!! 9999999 yerine kendi belirlediğiniz dosya boyutu !! ( hangi klasörde çalıştırsanız oraya oluşturur )
      Bilgisarınızda cok fazla hdd göstermek;
      subst W: c:\windows
      Açıklama;
      subst atanan sanal sürücü harfi ( W ) : sürücüye atanan klasör c:\windows veya başka yol 
      Sanal sürücüyü silmek için;
      subst W: /D
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...