• Welcome to Valhalla Legends Archive.
 

backspace and delete key

Started by yuleball, December 06, 2008, 12:42 AM

Previous topic - Next topic

yuleball

I want to exchange the functioning of backspace and delete key e-g if i press backspace it should delete the character on the right side of cursor and vicee versa for delete key. How can i implement this in rtb?

l2k-Shadow

to be honest, i think you're going to have to hook into the rtb proc and change the key inputs to bamboozle the rtb into thinking you sent it a delete key instead of a backspace and vice versa.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Barabajagal

Uh...
Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyBack Then
    KeyCode = vbKeyDelete
  ElseIf KeyCode = vbKeyDelete Then
    KeyCode = vbKeyBack
  End If
End Sub

l2k-Shadow

or i guess that will work too :X
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

yuleball


yuleball

yeah.....it worked. thnx a lot.