windows-7

Create shortcut files in Windows 7 using Python

半腔热情 提交于 2021-01-20 19:36:05
问题 Is there a simple way to create shortcuts in Windows 7 on Python? I looked it up online but they did not seem that simple. I have tried using this simple method: hi = open("ShortcutFile.lnk", "w") hi.close() Which creates a shortcut file. But how would I edit the link it is connected to. Like the file it would open? Can someone give me a push in the right direction? 回答1: Old, but I would still like to post an answer to help out anyone who might have the same question and in need of a code

Microsoft Media Foundation Webcam Interface

纵然是瞬间 提交于 2020-12-31 13:58:19
问题 I've been working on a c++ interface to capture images from all types of webcams via the Micrsoft Media Foundation. I've already got a bit of code that can connect with several types of webcams and is able to capture images in different resolutions and formats. I know that under WinXP it is possible to change different parameters of the webcam (like white balance, exposure time e.g.) by using the Direct Show library. Unfortunately the interface in the Direct Show library that made it possible

How can i find where a method or a variable is used in Android Studio (shortcut)

给你一囗甜甜゛ 提交于 2020-12-29 08:48:24
问题 I know how to find the source by using ctrl + left click on a method, for example, but what if I want to find where this method is used? I'm using Windows 7. Let's suppose I have the following method: class A { public int sum(int a, int b) { return a+b; } } and I am using this method in class B { ... a.sum(c, d); ... } and I want to find where I used sum while I was in class A . PS: I'm new to Android studio (started using it about a month ago). 回答1: In Android Studio, highlight the method

GetTextMetrics returning different maximum and average character width for Courier New

橙三吉。 提交于 2020-12-26 10:25:42
问题 I'm maintaining an application using Borland C++ Builder 6 running on Windows 7. The application is incorrectly drawing text using font Courier New because each letter is being slighty cut off. The issue is when calling the method GetTextMetrics because it is filling the TEXTMETICS struct with differing tmAveCharWidth and tmMaxCharWidth values. The application then uses tmAveCharWidth to calculate character width with is wrong because that value it can be less than tmMaxCharWidth. That issue

Cannot get “npm install -g” to work on any packages (AppData/Roaming/npm always empty)

喜欢而已 提交于 2020-12-05 11:33:09
问题 Running nodejs on Windows 7 Enterprise at work. Whenever I install a node_module that needs -g access, from experience I know it's supposed to create a *.bat file in %AppData$/Roaming/npm , but for some reason it no longer does that. For example, I will run npm install gulp -g , console looks like it installed correctly, but the files will not be in the AppData folder. And if I try running a gulp command, I get error sh.exe": gulp: command not found . If I run the npm install gulp -g command

Windows MongoDB - Installed Compass but can't find Compass within system

只愿长相守 提交于 2020-11-26 08:03:42
问题 I ran the MongoDB Community Version Download Setup with the GUI for Mongo - Compass checked. No problems with the installation and the setup was successfully completed. However after the setup I couldn't find Compass installed anywhere in my system. Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass. What happened to Compass? 回答1: For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut

Windows MongoDB - Installed Compass but can't find Compass within system

让人想犯罪 __ 提交于 2020-11-26 08:02:19
问题 I ran the MongoDB Community Version Download Setup with the GUI for Mongo - Compass checked. No problems with the installation and the setup was successfully completed. However after the setup I couldn't find Compass installed anywhere in my system. Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass. What happened to Compass? 回答1: For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut