Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture control codes

Status
Not open for further replies.

TTEL

IS-IT--Management
Jun 20, 2004
68
GB
This is probably strictly out of ontext but I need to capture in a text file certain control codes which I will then paste into a windows application.

I can't use Windows itself to capture these control codes since I need for example CTRL+C which will just perform a copy-to-clipboard.

Does anyone know how I can achieve this.


Thanks.
 
>I can't use Windows itself to capture these control codes

Well ... you can ... but I think we need to understand better what it is you are trying to achive
 
Don't know exactly what you're trying to do, but if you want to put control code into a text file this is easy done.

For Exemple:
Code:
Private Sub Form_Load()
    Open "textfile.txt" For Output As #1
    controlcode$ = Chr$(6) + Chr$(8) + Chr$(7)
    Print #1, controlcode$
    Close #1
End Sub

Hope This Help

SkyFighter
Get the fun out of life!
 
thanks for your replies and sorry I can't explain better. I'll try the option given by lived which should solve my problem.


Thanks,


CAB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top