thepaulguy Posted January 26, 2012 Share Posted January 26, 2012 Can you have 2 scripts working with one GUI? For Example: Script1.au3 creates a GUI with a listview. Script2.au3 adds a listview item to the listview in the GUI that was created by Script1. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 26, 2012 Moderators Share Posted January 26, 2012 thepaulguy, My first thought: why not combine the 2 scripts and make the entire question moot? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
thepaulguy Posted January 26, 2012 Author Share Posted January 26, 2012 LOLOL! OK???? This is why. So, anyway back to this topic, can it be done? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 26, 2012 Moderators Share Posted January 26, 2012 thepaulguy,In principle I see no reason why not. You could use the _GUICtrlListView_* functions to add the items directly or just pass the required ListViewItem text back to the first script.In either case you would need to find some way of passing the required data between the scripts. I assume they will be compiled so search for "+inter +script +communication" and you will find lots of threads - my personal favourite is trancexx's MailSlot UDF. Good luck - not a project I would want to undertake! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
thepaulguy Posted January 26, 2012 Author Share Posted January 26, 2012 I'll look into all these ideals. I am already taking a look at the interscript communication stuff. Hopefully I can just do it directly using the _GUICtrlListView_* commands. Link to comment Share on other sites More sharing options...
thepaulguy Posted January 26, 2012 Author Share Posted January 26, 2012 I just looked up _GUICtrlListView_ in the Help File. All examples are creating the gui within the same script. #include <GuiListView.au3>_GUICtrlListView_AddItem($hWnd, $sText [, $iImage = -1 [, $iParam = 0]])How can I assign $hwnd to GUI from another script? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 26, 2012 Moderators Share Posted January 26, 2012 thepaulguy, How can I assign $hwnd to GUI from another script?And therein lies the problem. Just as well you said: I am already taking a look at the interscript communication stuff I was absolutely serious when I said I would not want to try doing this, so please do not expect a massive amount of help from me in trying to get it to work - I am not completely convinced that it ever will. However, you might like to think of another way of doing this. Why not write the data you want to put into the ListView into a file which can then be read by the other script? seangriffin's FileSystemMonitor UDF will let you monitor when the file is updated and so know when to read in the new data and create the ListView. Might be less complex in the end. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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