windows-7

Task scheduler and vbs using a user account

放肆的年华 提交于 2019-12-25 06:38:05
问题 I am trying to schedule a vbs script to run with regular user rights. The script runs fine when logged in as the user, but when I try to run the script from the task scheduler as "Run whether user is logged on or not", it gets stuck on the following line: Set IE = CreateObject("InternetExplorer.Application") I have tried running it with "Run with highest privileges" checked and unchecked. I am running the program from task scheduler as: program/script: "c:\windows\system32\cscript.exe"

Shopping list for developing Windows app on Mac

邮差的信 提交于 2019-12-25 04:56:34
问题 Folks, I need to maintain a C#/.Net desktop application. So, I need to set myself up with Windows(7?) and Visual Studio. My current development machine is a Macbook Pro and I would like to continue using it. Overall, I am considering the following recipe: Install VMWare Fusion or Parallels or VirtualBox for running the Windows OS Buy a version of Windows to develop on Buy Windows Developer tools Having been in the open source universe all this time, I am utterly unfamiliar with the options

window.open returns null in IE8 Protected Mode

假装没事ソ 提交于 2019-12-25 03:55:14
问题 I am trying to catch the return value of window.open(), but it is returning null/undefined. This happens when IE8 Protected mode is turned ON. Is there any altenative to get the window.open() returned object without disabling the protected Mode in IE8? 回答1: You're trying to perform one of the things Protected Mode is specifically designed to stop... From Microsoft -- open method: Opening a new window from an application (other than the Internet Explorer process) may result in a null return

TaskPane does not draw, appears blank

旧巷老猫 提交于 2019-12-25 03:32:58
问题 I discovered a very specific issue with modal Inspectors in Windows 7 systems running Outlook 2007. I'm developing an addin that places a ribbon button and UserControl (in the form of a taskPane) into the email-compose window. The issue is: with that specific setup, (with Outlook 2007 already running) when the user attempts to launch an email-compose window externally (this can be through 'send via email' in Adobe Reader or many other applications). The TaskPane that appears appended to the

Problems with dllimport in c# under Windows 7 x32

拈花ヽ惹草 提交于 2019-12-25 02:19:53
问题 Iam having problems with dll import in c#. I created library under windows xp x32 and tried to use it on windows 7 x32. My library is using another libraries called opnecvsharp which uses dllimport to opencv libraries for c++. Iam sure i added opencv.dlls to the same folder as executable file. I tried to run exe as admin, disable UAC, add path to dll in PATH variable, but none of those helped me. How I can make my program see dlls ? The error in picture shows that program doesnt see opencv

Read serial port work good in windows XP but stop working and slow in windows 7

纵饮孤独 提交于 2019-12-25 01:33:47
问题 I'm talking about C# programing and communicate with serial port and different results in Windows 7 and XP. my code is: int count = 0; float data1; float data2; private void button1_Click(object sender, EventArgs e) { serialPort1.PortName = textBox1.Text; serialPort1.BaudRate = Convert.ToInt32(textBox2.Text); serialPort1.Open(); serialPort1.Write("?"); } private void button2_Click(object sender, EventArgs e) { serialPort1.Close(); } private void button3_Click(object sender, EventArgs e) { /

get the current selected language of the language bar in windows 7

空扰寡人 提交于 2019-12-25 00:44:13
问题 I am writing a key logger in windows 7 ( using SetWindowsHookEx ) and I need to know the correct keyboardLayout for the key being pressed. I tried getting the keyboardLayout from the ForegroundWindow and this works fine in most cases but in Internet Explorer 9 it doesn't work as expected (it returns the wrong layout ). I thought about getting the layout from the language bar ( because it shows the language of the window that is currently being typed on ) but I don't know how to retrieve this

filetype() returns dir for symlinks on Windows 7

回眸只為那壹抹淺笑 提交于 2019-12-25 00:23:12
问题 Regardless of the filetype() documentation, PHP 5.4.7 returns "dir" on symlinks on Windows 7. What's the most reliable way to detect a symlink on Windows 7? 回答1: what does is_link() return in your case? maybe you can use that to test for links. The provided link ( http://php.net/manual/en/function.is-link.php ) contains a workaround for Windows in the first comment. It's ugly, but I guess it does the job. 来源: https://stackoverflow.com/questions/13379645/filetype-returns-dir-for-symlinks-on

Mute microphone on Windows 7

为君一笑 提交于 2019-12-25 00:06:30
问题 I have an problem with muting the mic on an windows 7 machine. But all the code i have found dosen't run ore it's not doing anything the runned. Have is it done for an Windows 7 machine using C# code. I just need an on/off solution. The DDL file works also with Win x64bit. But i thing that i creates an error another place. mixers.Recording.Lines.GetMixerFirstLineByComponentType( MIXERLINE_COMPONENTTYPE.SRC_MICROPHONE).Volume = 0; if (!mediaElement1.CheckAccess()) mediaElement1.Dispatcher

How to avoid WPF Application not Responding when logging off

安稳与你 提交于 2019-12-24 23:23:23
问题 When trying to press the standard Windows 7 logoff button while my WPF app is running, I get "This program is preventing Windows from logging off". I would like to force it to close without having to press "Force log off". Similarly, pressing "End Task" in the (applications) Task Manager causes it to become non-responsive rather than just close the program. I have tried adding this to Window_Closing, but this doesn't seem to do it: private void Window_Closing(object sender, System