keybd_event in VISUAL BASIC 6.0 » Travel Photography » Our Forum
Our Forum

Our Forum



ПоискПоиск   Users   Registration   Entrance
Today: 19.04.2025 - 21:44:24
Pages:  1  

keybd_event in VISUAL BASIC 6.0

Advertising


MessageAuthor

Using keybd_event, I am trying to write "Ctrl V" (paste from clipboard). This are the instructions that I am doing: keybd_event &H11, 0, 0, 0 > this activate CTRL Key keybd_event 86, 0, KEYEVENTF_KEYUP, 0 > this press the V Key keybd_event &H11, 0, KEYEVENTF_KEYUP, 0 > this is suppose to disable CTRL Key... The problem is , that after adding the ASCII code for "Ctrl" (&H11), the "Ctrl" funtion is ENABLE (toggle). How I can disable the "Ctrl" function for the rest of my program? I try a lot API functions without having good results, even when I unload the program the CTRL key is still enable... Any idea!!! Antonio S.:confused: My OS system is Windows XP

---------------------
Right you are Ken!

B R

users




Statistics:
Messages: 55
Registration: 12.09.2002
18.06.21 - 07:26:55
Message # 1
RE: keybd_event in VISUAL BASIC 6.0

int 21h: Thank you for your answer!!! The problem is, that I can copy to the "Clipboard", also I can paste the text that is in the Clipboard to another text file using the information that you post, but what I have to do is to paste the information that is inside the Clipboard to the input window of other program (for example, Ifoedit...). The only way that I know to do that is using "Key" commands. In VB I use "keybd_event". With it I can write, using Ascii codes, directly to the input file of other programs. The problem is that when I want to paste from the Clipboard to the input of other program I have to simulate what the operator may do. In this case I have to simulate "CTRL V". This will paste, what is in the clipboard directly to the window of the other program that is open ( and the cursor is blinking).I tried it and it works. The big trouble is that after using the "keybd_event" command for the "Ctrl" key, this key appears to be activated all the time(toggle). I need an intruction or command to desactivated it again. How can I do that??? (This is really making me CRAZY!!!) Thank you for your help... Antonio S.

---------------------

M3-4-Life310

users




Statistics:
Messages: 285
Registration: 09.17.2003
18.06.21 - 07:32:48
Message # 2
RE: keybd_event in VISUAL BASIC 6.0

Wouldn't this do what you need by printing to the active control on that window as in the first link int 21h posted.. PHP Code:

---------------------
'63 Austin Cooper S '64 Morris Cooper '99 Mazda B4000 4X4

ahutson03

users




Statistics:
Messages: 114
Registration: 10.30.2002
18.06.21 - 07:38:17
Message # 3
RE: keybd_event in VISUAL BASIC 6.0

Help!!! I still cannot solve this problem... I just need to desactivate the CTRL and/or ALT key after is active with keybd_event... Antonio S.

---------------------
God put me on Earth to accomplish a certain number of things. Right now I am so far behind, I will never die.

mike3fan

users




Statistics:
Messages: 155
Registration: 10.06.2001
18.06.21 - 07:42:00
Message # 4
RE: keybd_event in VISUAL BASIC 6.0
Avisynth error & Hybrid movies & A/V synchronization : Previous topicNext topic: MIDI latency problems with PT 5.1.1
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants