473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Forms.Sendkeys.SendWait don't work in Vista

Hi,

I have a beta Vista system and I'm running a program (created in VB.net)
that sends keystroke to an application using
System.Windows.Forms.SendKeys.SendWait. In Vista it throws an exception -
System.Security.SecurityException: Hook cannot be created.

Is there a way to workaround this problem? I'm logged-in as the system
administrator.

Thanks,
Glenn
Jul 18 '06 #1
1 2213
Glenn,

Thanks for your post. Our app relies on SendKeys quite a bit and
generates the same error message. We are sending the keystroke to our
own app.

Looking forward to some info from Microsoft.

Jon
Glenn Palomar wrote:
Hi,

I have a beta Vista system and I'm running a program (created in VB.net)
that sends keystroke to an application using
System.Windows.Forms.SendKeys.SendWait. In Vista it throws an exception -
System.Security.SecurityException: Hook cannot be created.

Is there a way to workaround this problem? I'm logged-in as the system
administrator.

Thanks,
Glenn
Jul 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: AaronB | last post by:
I've been using the sendkeys.sendwait method in my application to right to another. This works great on some of the systems we have but we have a couple newer Dell laptops that it seems that the...
1
by: Logan McKinley | last post by:
I have an application that uses SendKeys.SendWait(...) to send RTF (formatting and all) to a word. I was hoping it would parse the formatting, therefore retaining the original formatting of the...
0
by: Mike John | last post by:
I am trying to send the key Alt + T using the send wait method: syntax: System.Windows.Forms.SendKeys.SendWait("%{T}") But I am receiving the following message: Security Exception...
2
by: David Kanter | last post by:
Hi, I am relatively inexperienced with VB.Net, but I am familiar with many concepts from programming; I have some basic level of competence with C/C++ and Perl, but I just started using VB this...
0
by: Austin | last post by:
Hello: I have written a very simple vb program (using the new .net interface). I have a website to which I must upload many files. The filenames are incremented in such a way that a simple...
6
by: Michael Maes | last post by:
Hello, I'm invoking successive SendKeys.SendWait("{BACKSPACE}") SendKeys.SendWait("{DELETE}") in a loop. The issue is that it causes a Beep on every Pass. Setting the 'Handled = True' on...
0
by: Licantrop0 | last post by:
....with description: " Hook cannot be created" My little program should open an IE window on a specific site, then write in some parameters (with sendkeys function) to login automatically in...
1
by: boeffchen | last post by:
Hello, I am trying to send keys to a window using the method above, though I am encountering timing issues, which msdn warned me of before. The way I tried to fix it is polling if the window I...
0
by: jairathore | last post by:
Hi, I m working on a project on which my requirment is like that remotely i control another application by using sendkey.sendwait method, i m sending some keystroke to that application and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.