View previous topic :: View next topic |
Author |
Message |
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Jun 15, 2019 7:49 am Post subject: On Losing Focus |
|
|
Code: | f=createForm()
p=createPanel(f)
p.caption='Focus control'
p.Visible=false
f.Onclick=function()
p.Visible=true
end--getFocus() |
I want to write a code that loses focus (hide the panel when I click outside the window)。I need a simple way (without creating hotkeys)
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Jun 15, 2019 10:26 am Post subject: |
|
|
Not sure what you mean with 'the window', I assumed it as the panel itself.
Code: | f=createForm()
p=createPanel(f)
p.caption='Focus control'
p.Visible=false
f.setFocus()
x=0
f.Onclick=function(sender)
if(x==0)then
p.Visible=true
x=1
else
p.Visible=false
x=0
end
end |
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Jun 15, 2019 1:02 pm Post subject: |
|
|
Corroder wrote: | Not sure what you mean with 'the window', I assumed it as the panel itself. | Sorry, maybe I didn't make myself clear. I mean click on another form or desktop
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sat Jun 15, 2019 3:50 pm Post subject: |
|
|
use a quick running timer in which you call getForegroundProcess()
if it's not your program, then do what you need to do
_________________
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 |
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Jun 15, 2019 9:45 pm Post subject: |
|
|
Dark Byte wrote: | use a quick running timer in which you call getForegroundProcess()
if it's not your program, then do what you need to do | I found this in your cheating engine. I don't know how you did it. I just wanted to do it without using timers, threads, hotkeys, or any system resources.
Description: |
|
Filesize: |
64.43 KB |
Viewed: |
2896 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sat Jun 15, 2019 10:33 pm Post subject: |
|
|
look at the generated code
and it uses a timer
_________________
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 |
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sun Jun 16, 2019 4:25 am Post subject: |
|
|
Dark Byte wrote: | look at the generated code
and it uses a timer | I see,You used a timer.
|
|
Back to top |
|
|
|