Custom Query (3933 matches)
Results (286 - 288 of 3933)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1651 | Completed | Addition to _IsPressed page in Help file | ||
| Description |
A few recent forum help requests have been the result of users not waiting for a key detected by _IsPressed to be released before continuing the script. This resulted in multiple actioning of the code for that event. Could I suggest that the following remark be added to the _IsPressed page in the Help file: Remarks: _IsPressed will return 1 until the key is released. Even brief key presses can result in multiple returns within a loop. If the code called does not include a blocking function (such as MsgBox) and the user does not require multiple returns, the script should wait until _IsPressed returns 0 before continuing. And then alter the example as follows: #include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep ( 250 )
If _IsPressed("24", $dll) Then
ConsoleWrite("_IsPressed - Home Key Pressed" & @CRLF)
; Wait until key is released
While _IsPressed("24", $dll)
Sleep( 250 )
WEnd
ElseIf _IsPressed("23", $dll) Then
MsgBox(0,"_IsPressed", "End Key Pressed")
ExitLoop
EndIf
WEnd
DllClose($dll)
M23 |
|||
| #2207 | Completed | Addition to the Docs for TrayItemSetState | ||
| Description |
If we use $TRAY_DEFAULT state for some tray item, then primary double click on the tray icon will trigger the execution of that item. It's not mentioned in the documentation for TrayItemSetState. Should be something like this: When you set $TRAY_DEFAULT state for a menuitem, the default behavior of primary double click on tray icon is to execute this default menuitem. To disable this behavior just use flag 4 in TrayMenuMode Option. It's there in TrayMenuMode option description, but not always we use that option, and this behavior is not obvious. |
|||
| #2193 | Completed | Addition to the String UDF | ||
| Description |
As previously requested in ticket 2173 this is a modified version of _StringProper, it has been modified to return a Title Case string rather than a "Proper" string. Also, as requested by trancexx in ticket 2173, I am putting this in as a feature request rather than polluting the trak with confusing information. Currently, _StringProper doesn't return a properly formatted string if you're looking to make it Title Case, this replacement has been modified to have that functionality. Attached is the UDF and a short demo script to show its output. |
|||
