Valhalla Legends Forums Archive | Battle.net Bot Development | menupopup on listview item click

AuthorMessageTime
Lobo.id
how can I make a little menu to pop up when I say right click a username on the listview
April 24, 2003, 5:30 AM
laurion
I believe you would add a menu, but make the menu invisible. Add all the submenus you want to, but make those visible. Say your listview is named listview1..In ListView1.MouseUp, put
Me.PopupMenu WhateverTheMenuWasCalled
And there ya go.
April 24, 2003, 10:44 AM
Lobo.id
stuck again I wanna do a ban command but how do I tell the bot to send who to ban like how do I say the person thats highlighted I wanna send there name.
April 24, 2003, 5:27 PM
MesiaH
i beleive there is an api call to dynamicly create popup windows, i cant recall it though...
April 24, 2003, 5:52 PM
Fpa
hrm lets see...
[code]
Private Sub ListView1.MouseUp(obviously your vars go here)
'Add a If Statement For Checking If It Was Right Clicked (Button 2)
'In The Statement Put The Following Code
'Your_Ban_Menu_Item Is The Name Of Your Ban Menu Item
Me.PopupMenu Your_Ban_Menu_Item
End Sub

Private Sub Ban_Click()
CleanSlateBot1.Send "/ban " & ListView1.SeletedItem
End Sub
[/code]
April 24, 2003, 6:53 PM
St0rm.iD
[quote author=MesiaH link=board=17;threadid=1141;start=0#msg8412 date=1051206763]
i beleive there is an api call to dynamicly create popup windows, i cant recall it though...
[/quote]

OVERKILL.
April 25, 2003, 12:53 AM
Lobo.id
can you save whats in a list box? if so how
April 25, 2003, 4:07 PM
Yoni
[quote author=Lobo.id link=board=17;threadid=1141;start=0#msg8475 date=1051286831]
can you save whats in a list box? if so how
[/quote]Try writing the contents to a file
April 25, 2003, 7:04 PM

Search