Jump to content

Recommended Posts

Posted (edited)

If $msg = $loadmenu Then $file = FileOpenDialog("Choose file...",@WorkingDir,"All (*.*)") If @error <> 1 Then _GUICtrlListViewInsertItem($listview, 0, $file) $filerun=GUICtrlCreateMenuitem ($file,$runmenu) If $msg = $filerun then Run($file) EndIf EndIf EndIf

This should logically work...

NEVER MIND

Edited by BackStabbed

tolle indicium

Posted

Depending on the rest of your script..

But I don't think so...

The menu would be created, but..

Your in a If.. EndIf statement..

So unless your are actually in that If $msg = $loadmenu statement the whole time then your If $msg = $filerun will never be reached...

Cheers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...