Jump to content

"a" Penceresi Aktif Ve "b" Penceresi Yok Ise?


x_files_x
 Share

Recommended Posts

Mrb arkadaşlar pek karşılaşmadıgım için sorunu çözemedim benim şöyle bişi yapmam gerekiyor

1: A penceresi ekranda aktif olursa ve B pencereside açık degilse(yok) ise şunu yap...

 şöyle bişi yapayım deedim kodta mantık hatası var sanırım :)

if winactive("A") and

if not winexists("B") then

run("notepad.exe")

endif

enfif

2: A ve B penceresinin ikiside ekranda var ise

if winexists("A") and if winexists("B") then

run("notepad.exe")

endif

endif

bunları yapmak istiyorum ama ben bu kodları yanlıs yazdım düzxeltebilirmiyiz acaba??

Link to comment
Share on other sites

;1. örnek
If WinActive"A") <> 0 And WinExists("B") = 0 Then	
	MsgBox(64,"","A penceresi aktifse ve B penceresi yoksa")
EndIf

;2. örnek
If WinExists("A") = 1 And WinExists("B") = 1 Then	
	MsgBox(64,"","A ve B penceresi varsa")
EndIf
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...