Posts: 529
Threads: 38
Likes Received:
419 in 288 posts
Likes Given: 202
Joined: Aug 2023
Reputation:
19
Following from this discussion I added some new methods to LitDev extension, version 1.2.29.14 (get with Extension Manager or website).
LDFocus.ResetFocus()
LDTextWindow.LastKeyReset()
LDGraphicsWindow.LastKeyReset()
Posts: 183
Threads: 19
Likes Received:
55 in 44 posts
Likes Given: 60
Joined: Oct 2023
Reputation:
3
01-16-2025, 02:36 PM
(This post was last modified: 01-16-2025, 02:40 PM by jrmrhrb00.
Edit Reason: Edit
)
LitDev,
Thanks for doing this! Here's proof that it works. Run the snippet and hit the return key. LDGraphicsWindow.LastKeyReset does it's function.
GraphicsWindow.Show()
While key <> "Return"
Key=GraphicsWindow.LastKey
EndWhile
Program.Delay(10)
TW.WriteLine(key)
LDGraphicsWindow.LastKeyReset()
TW.WriteLine(GraphicsWindow.Lastkey)
JR
Posts: 339
Threads: 37
Likes Received:
123 in 97 posts
Likes Given: 229
Joined: Dec 2023
Reputation:
7
Reflection is really awesome I was trying using ZSReflection to do this get assembly key then get type key of GW and the set the "_lastkey" field to none but got some errors I will try to diagnose why error are coming.
ZS
Posts: 529
Threads: 38
Likes Received:
419 in 288 posts
Likes Given: 202
Joined: Aug 2023
Reputation:
19
Hi ZS,
Syntax is a bit nasty, but its one line of code so if you want I can share or help explain.
Posts: 339
Threads: 37
Likes Received:
123 in 97 posts
Likes Given: 229
Joined: Dec 2023
Reputation:
7
i made code but it didn't work does you tried.
ZS