Comments (4)
You can comment out the bringprocesstofront as that was only required for
some old approaches.
On Friday, 12 September 2014, Csharper1972 [email protected] wrote:
I'm running battlefield bad company 2 and it's working on dx11.
When i'm clicking on the Request Capture button after some seconds it's
throwing an exception in Form1.cs in the method DoRequest() the exception
message is:Could not set process window to the foreground
It didn't happen on DX9 game only on this battlefield bad company 2.
This is the full exception error message:
System.Exception was unhandled
HResult=-2146233088
Message=Could not set process window to the foreground
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate
method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at TestScreenshot.Form1.DoRequest() in
c:\Temp\spazz\Direct3DHook-master\TestScreenshot\Form1.cs:line 218
at TestScreenshot.Form1.btnCapture_Click(Object sender, EventArgs e) in
c:\Temp\spazz\Direct3DHook-master\TestScreenshot\Form1.cs:line 196
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
at TestScreenshot.Program.Main() in
c:\Temp\spazz\Direct3DHook-master\TestScreenshot\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[]
args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:Line 196 in form1 is:
DoRequest();
And line 218 in form1 is: progressBar1.Invoke(new MethodInvoker(delegate()
And the whole code in the DoRequest() method is marked with yellow when
the exception is show up.And so far it happen only on dx11 game battlefield bad company 2 and only
when i click the button Request Captureβ
Reply to this email directly or view it on GitHub
#16.
from direct3dhook.
Thanks another question i'm not sure if it's issue or not. How can i make in form1 with a button click that it will show or not show the overlays ? One click will not show the fps another click will show. I know how can i call the Draw() method in DXOverlayEngine.cs from form1 or i can use the Inject button click Inject/Detach but i want just to display or not to display the overlays.
from direct3dhook.
Look at the CaptureInterface and CaptureInterfaceProxy classes. You can
extend to make any calls into the target application. Just have to create
appropriate event handlers.
On Saturday, 13 September 2014, Csharper1972 [email protected]
wrote:
Thanks another question i'm not sure if it's issue or not. How can i make
in form1 with a button click that it will show or not show the overlays ?
One click will not show the fps another click will show. I know how can i
call the Draw() method in DXOverlayEngine.cs from form1 or i can use the
Inject button click Inject/Detach but i want just to display or not to
display the overlays.β
Reply to this email directly or view it on GitHub
#16 (comment)
.
from direct3dhook.
Thank you. Working.
from direct3dhook.
Related Issues (20)
- Attempt to update image element every frame in d3d11? HOT 4
- Memory leak in hooked application HOT 7
- Question: Interactive UI Overlay HOT 2
- Strange exception HOT 1
- Failed injection in League of Legends HOT 9
- Error in InitialiseHook: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. HOT 1
- can I use this for simulate dirext input for games?
- Π‘hange of path *.dll
- cann't inject wow,error code:93913088 HOT 1
- Screenshot background window HOT 3
- Black screen when capturing from multiple clients HOT 8
- Captures Complete but Do Not Display, Overlay Does Not Display
- Region settings not correct. HOT 1
- Memory leak on screenshot HOT 5
- Memory leak on image draw HOT 2
- I need some help HOT 31
- Memory leak after unreasonable ammount of DrawOverlayInGame calls and large ImageElement HOT 7
- When creating an ImageElement with the "Bitmap bitmap" override, DXHookD3D11 throws an exception HOT 1
- What is CaptureInterface.StartRecording()? HOT 1
- Memory leakage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from direct3dhook.