Jump to content

Ekran Görüntüsünü Arka Planda Çalışan Paint'e Atma


Festae
 Share

Recommended Posts

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.
Link to comment
Share on other sites

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 by Festae
Link to comment
Share on other sites

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 by MeHMeTBeN
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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