Sign in to follow this  
Followers 0
Glyph

File run from a variable into the menu

2 posts in this topic

#1 ·  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

Share this post


Link to post
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.

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  
Followers 0