|
-
Jan 5th, 2008, 10:54 AM
#1
Thread Starter
Hyperactive Member
responds
How can I make my programme do the code respond to things if the programme is minimised?
-
Jan 5th, 2008, 11:02 AM
#2
Re: responds
Do you mean that you want to detect when the form is minimised?
If so, simply use code like this in the Form_Resize event:
Code:
If Me.WindowState = vbMinimized Then
'form has just been minimised
End If
-
Jan 5th, 2008, 11:04 AM
#3
Thread Starter
Hyperactive Member
Re: responds
no, I mean that the form will be able to respond to events even if it is minimize, like it will respond to a keypress event if it is minimized.
-
Jan 5th, 2008, 11:11 AM
#4
Re: responds
That isn't the way Windows works... keyboard/mouse input gets sent to the window which has the focus, and minimised windows aren't focussed.
What is it that you are actually trying to achieve?
-
Jan 5th, 2008, 12:57 PM
#5
Frenzied Member
Re: responds
There is an API that will check if keys are pressed. Running that in a timer can check certain things.
-
Jan 5th, 2008, 12:58 PM
#6
Thread Starter
Hyperactive Member
-
Jan 5th, 2008, 01:54 PM
#7
Re: responds
What event is it that you are trying to monitor?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 6th, 2008, 07:09 AM
#8
Thread Starter
Hyperactive Member
Re: responds
Well, I'm trying to make a programme simular to the hypercam, and you have to press escape to stop videoing, except if the programme has focus all the time, I wont be able to click anything and therefore it would be pointless videoing.
-
Jan 6th, 2008, 02:30 PM
#9
Re: responds
How are you recording the desktop, that will depend on what you need to do.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 6th, 2008, 02:31 PM
#10
Thread Starter
Hyperactive Member
Re: responds
there's an api for printscreen
-
Jan 6th, 2008, 02:35 PM
#11
Re: responds
Yes but that API wont record all the screen if they are playing a video/movie etc.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 6th, 2008, 02:43 PM
#12
Thread Starter
Hyperactive Member
Re: responds
but how can I do it otherwise?
-
Jan 6th, 2008, 02:44 PM
#13
Re: responds
What kind of data are you needing to "capture"?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 6th, 2008, 02:48 PM
#14
Thread Starter
Hyperactive Member
Re: responds
i dont know, just the image that is on the screen at the moment, as picture.
-
Jan 6th, 2008, 07:14 PM
#15
Re: responds
Will to capture every second or so is a resource drain and will slow down the users system. What or why are you trying to capture the screen this way?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 7th, 2008, 03:21 PM
#16
Thread Starter
Hyperactive Member
Re: responds
just so I can record the screen, but anyway, How can I make it respond to the escape key even if it is minimized?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|