Jump to content
Sign in to follow this  
Glyph

File run from a variable into the menu

Recommended Posts

Glyph

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

Share this post


Link to post
Share on other sites
smashly

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.