How can i detect if the user RIGHT-click on an item in a listview? and is it possible to create a ContextMenu for that specific item if rightclicked?
The reason i ask is that i add a 1000 files in a listview with contextmenu on each item, it takes so much longer
thx for any help!
Strait from the help file
#Include <Constants.au3>
#NoTrayIcon
Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown.
$exititem = TrayCreateItem("Exit")
TraySetState()
$start = 0
While 1
$msg = TrayGetMsg()
If $msg = $exititem Then ExitLoop
$diff = TimerDiff($start)
If $diff > 1000 Then
TraySetIcon("Shell32.dll",Random(0,100,1))
$start = TimerInit()
EndIF
WEnd
Exit
Take a look at this: Pic.au3 EDIT: And the ini file: [Info]
Pic1 = Text of pic 1
Pic2 = Text of pic 2
Pic3 = Text of pic 3
Pic4 = Text of pic 4
Pic5 = Text of pic 5
Pic6 = Text of pic 6
Pic7 = Text of pic 7
Pic8 = Text of pic 8
Pic9 = Text of pic 9
There are several solutions. You could check the Input for the text in a loop, and when the text is equal to "cool", it could write "[oo]" in the other input. Or you could use HotKetSet, and for each charater you input, it could type something different in the other input...
Does that make any sense to you?
Im a little confused. When you click the GO button, the program shoud enter the Edit() func that does something... and while the program is looping in the new loop in the Edit() func, you should be able to press the Stop button, which executes the MyExit() func right?
Something like:
While 1
If StringInStr ($manstr, "Dell") Then
$pcman = "Dell"
ExitLoop
EndIf
If StringInStr ($manstr, "Compaq") Then
$pcman = "Compaq"
ExitLoop
EndIf
If StringInStr ($manstr, "IBM") Then
$pcman = "IBM"
ExitLoop
EndIf
If NOT StringInStr ($manstr, "Dell") Or StringInStr ($manstr, "Compaq") Or StringInStr ($manstr, "IBM") Then Exit
Wend
You can't make a INPUTBOX allways on top, and at the same time be able to use another app. You could make your windows AllwaysOnTop, but when using the other app, the inputbox loses focus until you use your app again... bad explanation i know