Jump to content

File run from a variable into the menu


 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...