Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Sun Mar 17, 2013 7:25 pm Post subject:
Handled in this case can be ignored. It's more a out variable than a var. Also, this code is only executed if you call the original event handler from lua, and the handled is the result, which you usually will just disregard
TLuaCaller.MouseWheelUpDownEvent on the other hand might need some handling of the result of the lua function, or just keep the default behaviour _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
Posted: Sun Mar 17, 2013 8:02 pm Post subject:
Thanks for clarifying that
Looks like I need "OnKeyDown" method too. Could you add TKeyEvent?
Would it work with PaintBox? Currently I'm using CheatEngine hotkeys. _________________
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Tue Mar 19, 2013 3:39 am Post subject:
I'll add it.
But keep in mind that KeyEvent will be a bit more tricky to implement as a paintbox can not have keyboard focus so you need to get they keys from an object that does get focus.
Added problem is that if there is an object on the form that can get focus it's likely to get focus even if you click the other object. Add to that a paintbox that does capture clicks, you may have to use that to explicitly set focus to the key handling object
(It's ugly, but easiest method is to place a read only editbox behind a visible object, else constantly give focus to the object that handles keys) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
This is pretty awesome! I have no clue about coding, so this helps a lot.
Just a question about the NFOWindow.lua implementation since i know nothing at all about LUA or really anything programming:
What exactly does this do? Does it read the NFOWindow.lua from the user's hard disk and embed it into the trainer/table? Or does it read the file from inside a compiled trainer or what?
Seems to me that the first line gets a HDD path or something, the second line saves something to disk?
... Wait. Maybe i get it? It gets a temp folder on the user's disk, saves the .lua from the table to disk as a file, then reads the file, and deletes it afterwards?
All times are GMT - 6 Hours Goto page Previous1, 2, 3, 4Next
Page 3 of 4
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum