Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't detect the crew 2 #21

Closed
wandomity opened this issue Sep 11, 2024 · 3 comments · Fixed by #22
Closed

doesn't detect the crew 2 #21

wandomity opened this issue Sep 11, 2024 · 3 comments · Fixed by #22

Comments

@wandomity
Copy link

i have a problem with it not detecting the crew 2 on the add processes, even when i press refresh multiple times

image

@James-LG
Copy link
Owner

I need to see the logs. Open your game, then open the file %appdata%\AutoCursorLock\log.txt and paste some of the most recent lines from the log file in a comment here.

I'm looking for logs that say [ERR] or logs that say something to do with 'the crew'.

My guess is that AutoCursorLock is getting permission errors when inspecting the window.

@KuritasKRT
Copy link

For what it's worth, I have the same problem with Space Marine 2:

[ERR] Failed to get process list item for process: Warhammer 40000 Space Marine 2 - Retail System.ComponentModel.Win32Exception (5): Access is denied. at System.Diagnostics.NtProcessManager.EnumProcessModulesUntilSuccess(SafeProcessHandle processHandle, IntPtr[] modules, Int32 size, Int32& needed, Int32 filterFlag) at System.Diagnostics.NtProcessManager.GetModules(Int32 processId, Boolean firstModuleOnly) at System.Diagnostics.NtProcessManager.GetFirstModule(Int32 processId) at AutoCursorLock.App.Views.MainWindow.RefreshButton_Click(Object sender, RoutedEventArgs e) in D:\code\AutoCursorLock\src\AutoCursorLock.App\Views\MainWindow.xaml.cs:line 305

@James-LG
Copy link
Owner

Interesting, could be a permission issue getting the icon or the executable path. I can try just giving those programs blank icons and see if windows at least lets AutoCursorLock detect when the window is in focus without permissions errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants