We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[57] SendKeys Command

Last post 12-04-2007 7:22 AM by vin25. 33 replies.
Page 1 of 3 (34 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [57] SendKeys Command

    This thread is for discussions of SendKeys Command.

    • Post Points: 0
  • 07-15-2002 2:41 PM In reply to

    • jkulp4
    • Not Ranked
    • Joined on 07-15-2002
    • New Member
    • Points 15

    Nice Job

    Nice Example. This code can be quickly adepted to make a nice keylogger.
    • Post Points: 0
  • 11-03-2002 12:00 PM In reply to

    nice job

    nice job, but how do i get it to send the keys to the window thats got the focus when i press a certain button,
    e.g. send the text to internet explorer when i press F3 or something like that ?
    • Post Points: 0
  • 01-16-2003 8:45 AM In reply to

    • Steff
    • Not Ranked
    • Joined on 01-16-2003
    • New Member
    • Points 30

    question...

    What's happen if I use the sendkeys in a script, and the computer was locked before the script starts ?  (I use events scheduler to start the script !)  thanks
    • Post Points: 0
  • 03-05-2003 7:44 AM In reply to

    • harisri
    • Not Ranked
    • Joined on 03-05-2003
    • New Member
    • Points 30

    save file

    i want to save an opened notepad file. how can i do sendkeys for this. please send me code. This file will be opened manually by user. I just want to save this
    • Post Points: 0
  • 03-12-2003 2:43 PM In reply to

    • rwjeske
    • Not Ranked
    • Joined on 03-12-2003
    • New Member
    • Points 5

    VBA Senkeys method

    I have a question to ask you, I noticed that you had looked at the senkeys method on developer fusion and it seemed like you probably had yours working.  I'm working in Access 2000, and I am trying to open a program called Macro Angel and send the key combination of Shift+Q over to it, I cannot get it to work.  Here is some code that I have tried to use, maybe you could help me out here.  If you could email me back at rwjeske@hotmail.com it would be greatly appreciated.

       stAppName = "C:\Program Files\Demirhan\Macro Angel\MacroAngel.exe"
       Call Shell(stAppName, 1)
       SendKeys ("+q")

       Shell "c:\Program Files\Demirhan\Macro Angel\MacroAngel.exe", vbMinimizedFocus
       SendKeys "+q"

    Regards,
    Ryan
    • Post Points: 0
  • 03-24-2003 8:01 AM In reply to

    Why doesn't Sendkeys Work in NotePad?

    I am curious as to why the code on this webpage does not work in NotePad.
    • Post Points: 0
  • 03-27-2003 4:26 PM In reply to

    It does for me. Is Notepad opening minimized? It won't work then. You should be able to figure it out from the compiler, I think it's 'shell "notepad" as vbMaximizedFocus".
    • Post Points: 0
  • 03-27-2003 4:30 PM In reply to

    Well, if you know the following will be true:
    -The file will be changed
    -There won't be a file with the same name
    You can do this:
    SendKeys "%{F4}{ENTER}file1.txt{TAB}{TAB}{ENTER}
    This will close the program, it'll ask if you want to save, OK will be chosen, a filename entered and OK chosen again. This is a very unreliable method and will only work on WinXP (small adjustments are required for others due to less listboxes), but it should do for simple stuff. file1.txt is the filename, which will be entered right where it should be. If the file already exists the user will have to manually choose whether to overwrite, and if it's unchanged Notepad will close and everything after Alt+F4 will be sent to the next program which could be a problem, so consider typing and deleting something to avoid this.

    [edit] Oh yeah, and on XP you can use Ctrl+S to save - the filename dialog will only appear on an unsaved file!
    • Post Points: 0
  • 03-27-2003 4:36 PM In reply to

    You mean the classic "This computer has been locked, only XXX or an administrator can unlock" message? I doubt it would let your program run. However if it did, it would merely send the keys to the dialog, which shouldn't be a problem but will (probably, unless you get lucky ) generate an Invalid Password when you hit Enter and make a lot of noise when you exceed the maximum text length.
    • Post Points: 0
  • 06-01-2003 6:19 PM In reply to

    • skesim
    • Not Ranked
    • Joined on 06-01-2003
    • New Member
    • Points 10

    Sendkey for Spacebar

    I appreciate finding a more complete listing of Sendkeys.  Unfortuantely, the one I need is the only one not listed.  I need the one for the SPACEBAR.   I need to a SendKey command that holds down the Ctrl+Alt+Spacebar so the field will update a default in the field.  So far I have SendKeys "(^% )"  (With the one for spacebar missing.  I'm using this in an Access 2000 database.  My thanks to anyone who may be able to help.  Sue
    • Post Points: 0
  • 06-05-2003 11:24 AM In reply to

    • torcaz99
    • Not Ranked
    • Joined on 06-05-2003
    • New Member
    • Points 10

    Why doesn't Sendkeys Work in REMOTE NotePad

    I´m using VBScript and it works if I put something like:

     AppActivate "Bloc de notas"                    ' I´ve win2000 in Spanish
     sendKeys ("keys to send"), true

    But I´m using Citrix and execute remote applications. Then I open a remote Notepad and write:

     AppActivate "Bloc de notas - \\Remote"     ' win2000 in Spanish
     sendKeys ("keys to send"), true

    The first line works ok, the remote application activates, but the sendKeys doesn´t work.

    Please, ¿can anyone tell me if there is any way to send key to remote applications?

     Thanks
    • Post Points: 10
  • 06-10-2003 11:17 AM In reply to

    • jakohler
    • Top 500 Contributor
    • Joined on 02-20-2003
    • Member
    • Points 145
    I believe the sendkeys command for the spacebar is { } (make sure you put a space between).
    • Post Points: 0
  • 07-09-2003 12:56 PM In reply to

    • bonny
    • Not Ranked
    • Joined on 07-09-2003
    • New Member
    • Points 20

    Why is SendKeys "^C" can't copy

    I am trying to copy a field and paste it into another field.
    • Post Points: 0
  • 07-09-2003 2:07 PM In reply to

    • bonny
    • Not Ranked
    • Joined on 07-09-2003
    • New Member
    • Points 20

    Why is SendKeys "^C" can't copy


    I think what happened was the  SendKeys ("{TAB 9}"), True can't be interpreted  as tab for 9 times. Hence the SendKey "^C" statement was ignored. Why I don't know.

    Solution: I use For statement to loop 9 times.
     For I = 1 to 9
        SendKeys ("{TAB}"), True
     Next I

     SendKeys "^C"

    This then works.
    ...
    • Post Points: 0
Page 1 of 3 (34 items) 1 2 3 Next >