vcredist_x86.exe takes away window focus every 2 minutes, how to make it stop doing that? [closed] - windows-10

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 days ago.
Improve this question
I found that sometimes when I was typing , the focus of the window will suddenly lost for a moment. It always interrupt my work, I guess that was some auto-running program.
Then I try to find out what the process actually is, searching python codes to monitor it.
And then i found that it was 'vcredist_x86.exe'. I know little about this program, but the monitor-code shows that my window focus will automatically being taken away a moment by this program, every 2 minutes.
My OS is Win 10, 64-bit.
I want to know how to stop this program from interrupting me every two minutes? Or can I just simply uninstall this thing?
Here's the monitor-codes and what it captured:
from ctypes import *
from time import sleep
from datetime import datetime
user32 = windll.user32
kernel32 = windll.kernel32
psapi = windll.psapi
def getProcessInfo():
global windows
hwnd = user32.GetForegroundWindow()
pid = c_ulong(0)
user32.GetWindowThreadProcessId(hwnd, byref(pid))
processId = str(pid.value)
executable = create_string_buffer(512)
h_process = kernel32.OpenProcess(0x400|0x10, False, pid)
psapi.GetModuleBaseNameA(h_process, None, byref(executable), 512)
windowTitle = create_string_buffer(512)
user32.GetWindowTextA(hwnd, byref(windowTitle), 512)
kernel32.CloseHandle(hwnd)
kernel32.CloseHandle(h_process)
windows.pop(0)
windows.append([executable.value.decode('gbk'),windowTitle.value.decode('gbk')])
def main():
global windows
windows = [None, None]
while True:
getProcessInfo()
if windows[0] != windows[1]:
print('='*30)
print(str(datetime.now())[:19],windows[0],'==>',windows[1])
sleep(0.1)
if __name__ == '__main__':
main()
screen-shot of Monitor-Code Results

Related

how do i make a button in python 3 run multiple commands. i want to have a button that plays a sound file and shuts down a computer [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 days ago.
Improve this question
my current code is
#some of the import funtions are not used as i have tried multiple different ways to play sound and dont know which ones i can delete
from tkinter import *
import winsound
import sound
import os
def shutdown():
return os.system("shutdown /s /t 1")
winsound.PlaySound("mp3", winsound.SND_FILENAME)
master = Tk()
master.configure(bg='red')
Button(master, text="Click For Funny", command=shutdown).grid(row=0)
mainloop()
I tried lots of things including making a separate file and importing that. I couldn't get that to work. currently, the shutdown function works, but not the sound.

How to fix Wine memory access violation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I use Linux Mint 18.3. Recently I downloaded a game for Windows called SCP Containment Breach. I have managed to get it to run, but it crashes shortly afterwards during the loading screen and a small window pops up saying 'Memory access violation'.
I at first thought the problem was that I wasn't giving Wine enough memory, but even after using winetricks to increase the video memory Wine is permitted to access, I got the same error.
I have been trying to get it to work for ages now so any help would be greatly appreciated.
I was having that problem too on linux. I have looked everywhere on the internet to find a solution but I did not find one. So I decided to try to solve it myself.
I have found a solution!
It is simple, in the game directory there is an options.ini file.
Just open it with any text editor
Go down to where it says enable vram = 0 and change it to enable vram = 1
After that go to where it says play startup video = true and change it to play startup video = false.
It should work perfectly after that! If it did not work then just tell me and I will try to figure out another method.
You're Welcome!
-Fathergorgi

What similar command to "xload" in linux will be for os x? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
In linux (I am using Ubuntu 15.04) there is a small program supplied with the X Window system called xload which displays a graph representing system load. I can excute this program by typing in command line the following: xload. I tried xload in command line on mac. But it said "command not found" My question is "What command, which is similar to xload in linux, should I use in command line for Mac OS X (El Capitan)"?
I'm not sure whether you want a windowed app or not. Assuming yes, then try
open -a "Activity Monitor"

How to run a program, one after another [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm running many programs (all written in fortran). Right now I'm running one program (./first) but I would like that once it is finished another one starts running (./second), and once that other program finishes the next one starts (./third) and so on. Any idea how can I do that from the terminal? Thanks!
how about
./first && ./second && ./third
or
./first ; ./second ; ./third
in the first case, the chain is interrupted, if one of the programs fails (exits with exit code != 0). in the second case, the applications keep on running, even if one of them (e.g. ./second) is going to fail.
Assuming you're using bash or a compatible shell:
Put first in the background by pressing Ctrl-Z (not necessary if it's already backgrounded)
Run wait && ./second && ./third

what is simplest way to warm up CPU above 90 % usage [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Sorry if this question seems to be foolish. I want to know how can i put my CPU to work that it's usage increase in arbitrary time. for example i want to turn it over 90 % usage.
if Linux command exists or a simple program to do that it will be a pleasure.
Start running BOINC and use your spare capacity to process data for science. You can control how much of your CPU (and GPU) you assign to background processing and you never know - you may be the one to provide the trigger for a cure for cancer or muscular dystrophy.
Keeps you machine occupied doing something useful while you're taking your time punching keys...
Try the following program, compiled in C++
int main() {
for (;;)
;
}
It will sit in a tight loop and chew up available clock cycles.

Resources