Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (52 - 54 of 3865)

Ticket Resolution Summary Owner Reporter
#276 No Bug $GUI_DISABLE on a control blocks OnEvent ESC button msg smashly
Description

Run the code below, Hit the ESC key and it works as it should. Run the code again and hit the Log In button and then hit the ESC key. Until the GUI has lost focus and gained focus again the ESC key will not work. The problem can be replicated in earlier versions of autoit as well.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)
Opt("GUICloseOnESC", 1)

Global $mW = @DesktopWidth, $mH = @DesktopHeight

$hMain = GUICreate("Point Of Sale", $mW, $mH, 0, 0)
GUISetOnEvent($GUI_EVENT_CLOSE, "MainEvent", $hMain)

$LogIn = GUICtrlCreateButton("Log In", ($mW / 2) - 75, ($mH / 2) + 25, 150, 20)
GUICtrlSetOnEvent(-1, "MainEvent")

GUISetState(@SW_SHOW, $hMain)

While 1
	Sleep(100)
WEnd

Func MainEvent()
	Switch @GUI_CtrlId
		Case $GUI_EVENT_CLOSE
			Exit
		Case $LogIn
			GUICtrlSetState($LogIn, $GUI_DISABLE)
	EndSwitch
EndFunc   ;==>MainEvent

#3252 Works For Me $GUI_DROPACCEPTED with #RequireAdmin - Windows 10 Kik
Description

Hello Probleme with "Drop event" only with windows 10 This exemple (documentation autoit) don't work with #RequireAdmin (work fine with win 7)

#RequireAdmin
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
	; Create a GUI with various controls.
	Local $hGUI = GUICreate("Example", 420, 200, -1, -1, -1, $WS_EX_ACCEPTFILES)

	; Create a label and set the state as drop accepted.
	Local $idLabel = GUICtrlCreateLabel("Drop a file on this label.", 10, 10, 400, 40, $WS_BORDER)
	GUICtrlSetState($idLabel, $GUI_DROPACCEPTED)

	; Create an input and set the state as drop accepted.
	Local $idInput = GUICtrlCreateInput("", 10, 60, 400, 22)
	GUICtrlSetState($idInput, $GUI_DROPACCEPTED)

	Local $idOK = GUICtrlCreateButton("OK", 310, 170, 85, 25)

	; Display the GUI.
	GUISetState(@SW_SHOW, $hGUI)

	While 1
		Switch GUIGetMsg()
			Case $GUI_EVENT_CLOSE, $idOK
				ExitLoop

			Case $GUI_EVENT_DROPPED
				ConsoleWrite('22')
				; If the value of @GUI_DropId is $idLabel, then set the label of the dragged file.
				If @GUI_DropId = $idLabel Then GUICtrlSetData($idLabel, @GUI_DragFile)

		EndSwitch
	WEnd

	; Delete the previous GUI and all controls.
	GUIDelete($hGUI)
EndFunc   ;==>Example

Thanks

#2470 No Bug $GUI_EVENT_(PRIMARY and SECONDARY)DOWN not triggered after WinActivate TommyDDR
Description

$GUI_EVENT_PRIMARYDOWN and $GUI_EVENT_SECONDARYDOWN are skiped one time after a WinActivate (only if clic on a control)

#include <GUIConstantsEx.au3>

Opt("GUIOnEventMode", 1)
Opt("MustDeclareVars", 1)

Global $Gui = GUICreate("test", 300, 300)
GUISetOnEvent($GUI_EVENT_CLOSE, "quit")
GUISetOnEvent($GUI_EVENT_SECONDARYDOWN, "Clic")
GUICtrlCreateLabel("", 0, 0, 300, 300)
GUISetState()

While(True)
	Sleep(10)
WEnd

Func Clic()
	ConsoleWrite("Clic" & @CRLF)
	WinActivate("[CLASS:Progman]")
EndFunc

Func quit()
	Exit
EndFunc

Run this script, clic on time on the GUI, "Clic" is displayed, desktop is activated, re-clic on GUI, nothing append. (Working Wrong) Stop script, comment line "WinActivate", re-run the script, clic on GUI, "Clic is displayed, clic on desktop, re-clic on GUI, "Clic is displayed". (Working)

If Label is removed, work perfectly.

Note: See TracQuery for help on using queries.