Results 1 to 9 of 9

Thread: sendkeys error permission denied 70 in vb

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    3

    sendkeys error permission denied 70 in vb

    hi.... pl help me boss
    i have windows 7 profession
    i m trying to run my proven vb application in this platfrom
    in my appl i have used lot of sendkeys command but in windows 7 it is not working pl...................guide me

    Nivas Mane

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: sendkeys error permission denied 70 in vb

    My advice would be to rewrite your app and get rid of SendKeys.

    However, I think if your turn off your UAC you should be able to use that function.

    http://www.eggheadcafe.com/software/...-scriptin.aspx

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    3

    Re: sendkeys error permission denied 70 in vb

    hi i m feedup with VB6.0 sendkey command
    actually it was working properly in windows xp now i have upgrated to windows 2007 and lot of probelms begain,.
    i am running application with administrator user on local machine but till there is error of
    permission denied 70 to sendkey commaond which was previously working properly

    pl. try to solve my probelm i will be highly obliged


    Nivas Mane

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: sendkeys error permission denied 70 in vb

    Did you read that article I posted the link to?
    Quote Originally Posted by From Article
    Microsoft has committed to support VB6 applications in Vista and Windows 7.

    However, it appears that support for VB Sendkeys is still lacking. The
    latest updates for Windows Vista and Windows 7 appear to support Sendkeys
    ONLY if UAC is turned off.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    3

    Re: sendkeys error permission denied 70 in vb

    thanking you very much . your UAC worked for SENDKEY problem in VB on windows 2007 platfrom
    thanks once again

    Nivas Mane, Manasi Software services, Kodoli, Maharashtra India, 9890211607

  6. #6
    Member
    Join Date
    May 2010
    Posts
    34

    Re: sendkeys error permission denied 70 in vb

    You don't have to completly turn of UAC, just run your application as admin.

  7. #7
    Addicted Member
    Join Date
    Jul 2012
    Location
    Tiruvallur, India
    Posts
    201

    Re: sendkeys error permission denied 70 in vb

    Write this code in the Module. The Problem is solved.

    Code:
    Public Sub Sendkeys(text$, Optional wait As Boolean = False)
       Dim WshShell As Object
       Set WshShell = CreateObject("wscript.shell")
       WshShell.Sendkeys text, wait
       Set WshShell = Nothing
    End Sub
    Courtesy :
    http://blog.rujutainfomedia.com/2010...windows-7.html

  8. #8
    Registered User
    Join Date
    Jun 2014
    Posts
    1

    Thumbs up Thank you it helped me

    thank you problem solved.

    Quote Originally Posted by raghavendran View Post
    Write this code in the Module. The Problem is solved.

    Code:
    Public Sub Sendkeys(text$, Optional wait As Boolean = False)
       Dim WshShell As Object
       Set WshShell = CreateObject("wscript.shell")
       WshShell.Sendkeys text, wait
       Set WshShell = Nothing
    End Sub
    Courtesy :
    http://blog.rujutainfomedia.com/2010...windows-7.html

  9. #9
    New Member
    Join Date
    Apr 2004
    Posts
    11

    Re: sendkeys error permission denied 70 in vb

    Well , i also recommand to rewrite your app and get rid of Sendkeys !
    But , here is a Trick that works for me with some old app i made long time ago , and needed to run it again on win 7 , recently (May-2017) !

    if your UAC is off , then Turn it on again , Then , Turn it off again .... and RESTART your PC ....
    and make sure of using "Run as administrator " ....

    Good luck ..
    Last edited by momoaal; May 18th, 2017 at 06:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width