Jump to content

Pop-Up Açmak


bmozdemir
 Share

Recommended Posts

burada bir çok örnek var hangisi işine yararsa onu kullanırsın

[codebox]
Opt("GUIResizeMode", 768)
Global $MY_OIE = ObjCreate("Shell.Explorer.2")
Global $MY_GUI = GUICreate("MİNİ EXPLORER", 640, 480, -1, -1, 0x00040000 + 0x00020000 + 0x00010000)
$IE_OBJECT = GUICtrlCreateObj($MY_OIE, 0, 0, 640, 456)
GUICtrlSetResizing(-1, 102)

GUISetState(@SW_SHOW)

$MY_OIE.navigate("www.google.com")
DllCall("psapi.dll", "int", "EmptyWorkingSet", "long", -1)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit

EndSwitch
WEnd
[/codebox]

butona basınca googleye gitsin
[codebox]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 279, 195, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 80, 72, 75, 25)
GUISetState(@SW_SHOW)


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("https://www.google.com.tr/")
EndSwitch
WEnd

[/codebox]

[codebox]
#include<IE.au3>

_IECreate("https://www.google.com.tr/")
WinSetState ( "Google - Windows Internet Explorer", "", @SW_MAXIMIZE )

[/codebox]
@SW_MAXIMIZE ;tam ekran
@SW_MINIMIZE ;simge durumuna
@SW_HIDE ;arkaplanda çalışır
ile pencerenin o anki konumu değiştirebilirsin

Edited by MeHMeTBeN
Link to comment
Share on other sites

yok elimde html kod var ama onları buraya nasıl editleyebilirim bilmiyorum.
[codebox]
<HEAD>

<script LANGUAGE="JavaScript">

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=620,left = 0,top = 0');");
}

</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
background-color: #EEF0EF;
}
</style>

<a href="javascript:popUp('http://www.google.com')"><img src="Resimler/SGK.png" width="48" height="48" border="1" /></a>

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
[/codebox]

Edited by bmozdemir
Link to comment
Share on other sites

Şu alttaki kod güzel ama iexplorer olmasını istememdeki sebep iexplorer içerisine otomatik çalışan eklentiler mevcut o yüzden pop-up
olması benim açımdan daha büyük bir avantaj aslında.

[codebox]
Opt("GUIResizeMode", 768)
Global $MY_OIE = ObjCreate("Shell.Explorer.2")
Global $MY_GUI = GUICreate("MİNİ EXPLORER", 640, 480, -1, -1, 0x00040000 + 0x00020000 + 0x00010000)
$IE_OBJECT = GUICtrlCreateObj($MY_OIE, 0, 0, 640, 456)
GUICtrlSetResizing(-1, 102)

GUISetState(@SW_SHOW)

$MY_OIE.navigate("www.google.com")
DllCall("psapi.dll", "int", "EmptyWorkingSet", "long", -1)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit

EndSwitch
WEnd

[/codebox]

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