EgZOtiCs Posted June 27, 2012 Share Posted June 27, 2012 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] Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted June 27, 2012 Share Posted June 27, 2012 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] Quote Link to comment Share on other sites More sharing options...
EgZOtiCs Posted June 28, 2012 Author Share Posted June 28, 2012 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. Quote Link to comment Share on other sites More sharing options...
blackman12 Posted June 28, 2012 Share Posted June 28, 2012 [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 Quote Link to comment Share on other sites More sharing options...
EgZOtiCs Posted June 28, 2012 Author Share Posted June 28, 2012 Şuan bu durumda herşey tamam sadece mouse basılı tutarak sürüklemeyi yapamadım. [img]http://e1206.hizliresim.com/y/w/8wkpq.jpg[/img] Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted June 28, 2012 Share Posted June 28, 2012 (edited) 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 June 28, 2012 by mesale0077 Quote Link to comment Share on other sites More sharing options...
blackman12 Posted June 28, 2012 Share Posted June 28, 2012 [b][color="green"][color="green"]EgZOtiCs[/color][/color], arkadaşım verdim ya işte kodu? pm ile at dosyanı içine yazim gönderim. [/b] Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted June 28, 2012 Share Posted June 28, 2012 blackman12 arkadaşım konuyu buraya açmış ve kodlarıda burda paylaşmış ,incelemek istersen http://www.autoitscript.com/forum/topic/141891-how-do-i-remove-the-fields-shown-in-the-picture/ Quote Link to comment Share on other sites More sharing options...
blackman12 Posted June 29, 2012 Share Posted June 29, 2012 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ı "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 " 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.