Jump to content

Pencere Butonlarını Ve Scroll Barları Kaldıramadım


EgZOtiCs
 Share

Recommended Posts

Arkadaşlar birçok düzenlemeden sonra 2 şeyi yapamadım. Birincisi program penceresini görünmez hale getiremedim yani kapatma, ekran kaplama, simge durumuna getirme buton kısmını kaldıramadım. İkincisi scroll barları kaldıramadım. Resimle gösterdim. Bilen arkadaşlar yardımcı olurlarsa sevinirim.
[img]http://e1206.hizliresim.com/y/v/8v9j5.jpg[/img]
Link to comment
Share on other sites

kodları paylaşsaydın iyi olurdu.

sana yardımcı olcak konularla ilgil kodlar
[code]#include <WindowsConstants.au3>
;1 -->
; GuiCreate("MyGUI", $wit, $hit, -1,-1,$WS_POPUP)
;2 --> örnek kod
;HotKeySet("{ESC}","OnAutoItExit")
#include <IE.au3>
$oIE = _IECreateEmbedded()
$hGui = GUICreate('Test',800,600,-1,-1,$WS_POPUP)
GUICtrlCreateObj($oIE,0,0,800,600)
_IENavigate($oIE,"http://www.autoitscript.com/forum/forum/2-general-help-and-support/")
GUISetState(@SW_SHOW, $hGui)

_HideScroll($oIE)

Do
Until Sleep(10) * GUIGetMsg()==-3

Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc
Func OnAutoItExit()

Exit
EndFunc[/code]

Link to comment
Share on other sites

Hocam çok teşekkür ederim verdiğiniz kodlar sayesinde resimde göstermiş olduğum yerleri düzelttim. Şuan sadece yapamadığım pencereyi mouse ile tutup sağa sola götüremiyorum. Arkaplana düz çizgili yani kare dikdörtken gibi değilde oyın karakteri koymaya çalıştım png resim gibi yani arkaplanını transparan yapmayı denedim olmadı vazgeçtim bende. Bir arkadaş yardımcı olacaktı bakalım. O çok önemli değilde mouse ile sağa sola taşııma işlemini yaparsak dahada bir sorunum kalmıyor.

Link to comment
Share on other sites

[code]#include <WindowsConstants.au3>
;1 -->
; GuiCreate("MyGUI", $wit, $hit, -1,-1,$WS_POPUP)
;2 --> örnek kod
;HotKeySet("{ESC}","OnAutoItExit")
#include <IE.au3>
$oIE = _IECreateEmbedded()
$hGui = GUICreate('Test',800,600,-1,-1,$WS_POPUP)
GUICtrlCreateObj($oIE,0,0,800,600)
_IENavigate($oIE,"http://www.autoitscript.com/forum/forum/2-general-help-and-support/")
GUIRegisterMsg(0x0201, "moveGUI")
GUISetState(@SW_SHOW, $hGui)

_HideScroll($oIE)

Do
Until Sleep(10) * GUIGetMsg()==-3

Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc
Func OnAutoItExit()

Exit
EndFunc

Func MoveGUI($hW)
DllCall("user32.dll", "lresult", "SendMessageW", "hwnd", $hGui, "uint", 0x0112, "wparam", 0xF012, "lparam", 0)
EndFunc
[/code]

örnekteki programda et kalınlığı olmadığı için şu an işe yaramıyor ama, senin programında örneğin oyun seçenekleri - çıkış butonları arasına tıklayarak pencereyi sürükleyebileceksin ;)

Link to comment
Share on other sites

Son isteğin olan mause ile oyanatma aynı kodun devamı
benimde böyle sorunlarım oluyordu.flash ı arayüz kullanmak gibi ama senin gibi çok uğraştım
transparent olayına gelince kodları paylaşsaydın onu hallerdik lakin kodu görmeden çözüm saglamak istemem
neresinden tutarsan tut ,kaydır
son istediğin kod;
[code];1 -->
; GuiCreate("MyGUI", $wit, $hit, -1,-1,$WS_POPUP)
;2 --> örnek kod
;HotKeySet("{ESC}","OnAutoItExit")
#include <IE.au3>
#include <GuiConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <StaticConstants.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
$oIE = _IECreateEmbedded()
$Form1 = GUICreate('Test',800,600,-1,-1,$WS_POPUP)
GUICtrlCreateObj($oIE,0,0,800,600)
_IENavigate($oIE,"http://www.autoitscript.com/forum/forum/2-general-help-and-support/")
GUISetState(@SW_SHOW, $Form1)

_HideScroll($oIE)


While 1
$msg = GuiGetMsg($Form1)

Select
Case $msg =$GUI_EVENT_PRIMARYDOWN
Drag()
Case $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect
WEnd

Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc
Func OnAutoItExit()

Exit
EndFunc

Func Drag()
dllcall("user32.dll","int","ReleaseCapture")
dllcall("user32.dll","int","SendMessage","hWnd", $Form1,"int",$WM_NCLBUTTONDOWN,"int", $HTCAPTION,"int", 0)
EndFunc


;kolay gelsin,


[/code]

Edited by mesale0077
Link to comment
Share on other sites

yok hallettim ben onun işini halletmesine de işte biz kızınca laf oluyor buyur arkadaş öğrensin şimdi olması gerekeni elin gavurundan yemiş azarı :D

"TerribleWar,

You appear not to have read the[b] [size="3"]Forum Rules[/size][/b] Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. [img]http://www.autoitscript.com/forum/public/style_emoticons/autoit/naughty.gif[/img]

I have deleted the other 2 useless posts you tried to make - do not continue in that vein if you wish to remain a member of this community. ;)

M23 "

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