Festae Posted April 3, 2012 Share Posted April 3, 2012 Merhabalar, Önde bir uygulama çalışırken o uygulamanın ekran görüntüsü alınıp nasıl painte yapıştırılır? getpixelcolor(); ugulamanın renklerini algılamadığı için böyle bir şeye ihtiyaç duydum. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted April 3, 2012 Share Posted April 3, 2012 arkadaşım Klavyeden "Print Screen/SysRq" Tuşuna Bas , Painte "Ctrl + V" yap Quote Link to comment Share on other sites More sharing options...
Festae Posted April 3, 2012 Author Share Posted April 3, 2012 (edited) Elle yapabiliyorum çok şükür. Lütfen mantıklı cevaplar verelim. Print screen için send("{PRINTSCREEN}"); geçerli fakar painte yapıştırmak için aşağıdaki kod yeterli olmuyor nedense. ControlSend("[CLASS:MSPaintApp]", "", "Edit", "^v"); Edit : Yapıştırma için send("^v"); komutunu uygulayıp paintin üzerine gelirsem yapıştırıyor. Fakat dediğim gibi ben paint arka planda iken yapıştırsın istiyorum. Edited April 3, 2012 by Festae Quote Link to comment Share on other sites More sharing options...
Mehmet Posted April 3, 2012 Share Posted April 3, 2012 (edited) bu şekilde yaparsın fakat arkaplanda nasıl yapılır onu bilmiyorum Send("{PRINTSCREEN}") Run("mspaint") WinWaitActive("adsız - Paint") Send("^v") [b]neden paint'e aktarsın direk masaüstü resmini çeksin resmi kaydetsin olmazmı öyle [/b] Edited April 3, 2012 by MeHMeTBeN Quote Link to comment Share on other sites More sharing options...
Festae Posted April 3, 2012 Author Share Posted April 3, 2012 Uygulamanın renklerini dinamik olarak kullanmak istiyorum. Fakat uygulama sanki hiç yokmuş gibi davranıyor ve masaüstünde arkada ne varsa onların renklerini alıyor getpixelcolor(); Bütün sorunum bu. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted April 3, 2012 Share Posted April 3, 2012 (edited) bilmiyorum nasıl bir uygulama kullanıyorsun ama masaüstü resim çekmek için bunlar sana yardımcı olur yani paint'e aktarmana gerek kalmaz [codebox] #include <ScreenCapture.au3> HotKeySet("{ESC}", "_EXIT") DirCreate(@DesktopDir & "\resim") While 1 _ScreenCapture_Capture(@DesktopDir & "\resim" & "\" & @YEAR & "-" & @MON & "-" & @MDAY & "_" & @HOUR & @MIN & "-" & @SEC & ".jpg") Sleep(5000) WEnd Func _EXIT() Exit 0 EndFunc [/codebox] istersen While döngüsünden çıkar bu şekilde kullan [codebox]#include <ScreenCapture.au3> _ScreenCapture_Capture(@DesktopDir & "\resim" & "\" & @YEAR & "-" & @MON & "-" & @MDAY & "_" & @HOUR & @MIN & "-" & @SEC & ".jpg")[/codebox] Edited April 6, 2012 by MeHMeTBeN 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.