Glyph Posted August 2, 2007 Share Posted August 2, 2007 (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 EndIfThis should logically work...NEVER MIND Edited August 2, 2007 by BackStabbed tolle indicium Link to comment Share on other sites More sharing options...
smashly Posted August 2, 2007 Share Posted August 2, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now