Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



GUIGetMsg() Problem

Discussion on GUIGetMsg() Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old 05/14/2010, 17:18   #16


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Sorce erneuert. Bitte nochmals Testen danke
PHP Code:
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode"1)

$Form1 GUICreate("Form1"624442207167$WS_POPUPBitOR($WS_EX_TOPMOST$WS_EX_LAYERED))
$pic1 GUICtrlCreatePic("C:\Dokumente und Einstellungen\Marius\Eigene Dateien\Eigene Bilder\ddugoöud.bmp", -1, -1625443, -1$GUI_WS_EX_PARENTDRAG)
$pic2 GUICtrlCreatePic("C:\Dokumente und Einstellungen\Marius\Eigene Dateien\Eigene Bilder\piece.bmp", -1, -17984)
GUISetState(@SW_SHOW)

HotKeySet("{ESC}""_esc")

While 
1
       $k 
=  GUIGetMsg()
       If 
$k $GUI_EVENT_CLOSE Then Exit
       If 
$k $pic2 Then Exit
WEnd

Func _esc
()
    Exit
EndFunc 
#EDIT
Alte Include Raus neue rein: (Ist viel einfacher und von MarcoPolo)
Attached Files
File Type: rar GUIRoundIt.rar (699 Bytes, 1 views)
Benhero is offline  
Old 05/14/2010, 17:26   #17
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by FooFightah View Post
OK, dann such du mal^^
Aber leider klappts immernoch nicht. Außer die Switch Combi in ne If Combo zu ändern haste ja auch nix gemacht
Ich hab irgendwie das Gefühl, dass man GUIGetMsg, $pic2 und $GUI_EVENT_PRIMARYDOWN/$GUI_EVENT_PRIMARYUP
zusammenbringen muss, aber wie?
PHP Code:
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>

;~ Opt("GUIOnEventMode"1)
HotKeySet("{ESC}""_esc")

$Form1 GUICreate("Form1"624442207167$WS_POPUPBitOR($WS_EX_TOPMOST$WS_EX_LAYERED))
$pic1 GUICtrlCreatePic("C:\Dokumente und Einstellungen\Marius\Eigene Dateien\Eigene Bilder\ddugoöud.bmp", -1, -1625443$GUI_Disable$GUI_WS_EX_PARENTDRAG)
$pic2 GUICtrlCreatePic("C:\Dokumente und Einstellungen\Marius\Eigene Dateien\Eigene Bilder\piece.bmp", -1, -17984BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$GUI_ONTOP), $GUI_WS_EX_PARENTDRAG)
GUISetState(@SW_SHOW)



While 
1
       $k 
=  GUIGetMsg()
       If 
$k $GUI_EVENT_CLOSE Then Exit
       If 
$k $pic2 Then Exit
WEnd

Func _esc
()
    Exit
EndFunc 
So gehts .

Btw . Warum setzt du GUIOnEvent auf 1 wenn du sowieso nicht damit arbeitest ?
Shadow992 is offline  
Old 05/14/2010, 17:28   #18


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Habe ich net auf 1 gestezt O.o das warst du ^-^
Kannst es gerne löschen.

Greatz Benhero
Benhero is offline  
Old 05/14/2010, 17:32   #19
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by Benhero View Post
Habe ich net auf 1 gestezt O.o das warst du ^-^
Kannst es gerne löschen.

Greatz Benhero
Ahso du hast es nicht auf 1 gesetzt und deswegen ist es in deinem Post auch auf 1 ? Logisch ? ^^

Ist ja kein Problem , dachte nur , dass es einen tieferen Sinn hat
Shadow992 is offline  
Old 05/14/2010, 17:35   #20
 
Σternαl.'s Avatar
 
elite*gold: 20
Join Date: Dec 2009
Posts: 1,850
Received Thanks: 484
Nope Shadow, das klappt nicht.
Wenn ich das Programm jetzt starte, kann ich es nichtmehr verschieben und das Kreuz sieht man nichtmehr.
Σternαl. is offline  
Old 05/14/2010, 17:37   #21
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by FooFightah View Post
Nope Shadow, das klappt nicht.
Wenn ich das Programm jetzt starte, kann ich es nichtmehr verschieben und das Kreuz sieht man nichtmehr.
Wenigstens kannste es beenden
Shadow992 is offline  
Old 05/14/2010, 17:39   #22
 
Σternαl.'s Avatar
 
elite*gold: 20
Join Date: Dec 2009
Posts: 1,850
Received Thanks: 484
Quote:
Originally Posted by Shadow992 View Post
Wenigstens kannste es beenden
Ich glaub du hast mich falsch verstanden^^
Ich kann die GUI nicht verschieben und das rote Kreuz sieht man nicht,
also kann ich sie auch nicht schlißen, außer ich drück auf ESC.
€dit: OK, hab einfach die normalen Styles vom Kreuz weggemacht und jetzt klappts

€dit2: Aber jetzt kann ich die GUI nichtmehr verschieben D:
Σternαl. is offline  
Reply


Similar Threads Similar Threads
GuiGetMsg() registriert nicht alle Ereignisse
04/20/2010 - AutoIt - 10 Replies
Habe gerade das Problem das mein Bot eigenartigerweise auf einmal bei 6 Inputfelder nicht nicht mehr richtig auf seine Ereignisse reagiert. Das bedeutet manchmal erkennt er das Ereignis auf eine Veränderung im Inputfeld manchmal nicht. Ich lese momentan die GUIGetMsg() aus und die bekommt leider nicht alles mit, alle anderen GUIElemente funktionieren einwandfrei. Hier ein Auszug (vielleicht burnt mir heut schon zu sehr der Kopf und bin einfach blind) ... $Input1 = GUICtrlCreateInput("0",...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 11:53.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.