TheDcoder Posted March 5, 2015 Share Posted March 5, 2015 (edited) The script was working fine until this happen: "C:\Program Files (x86)\AutoIt3\Include\GuiRichEdit.au3" (862) : ==> Variable used without being declared.: Local $hRichEdit = _WinAPI_CreateWindowEx($iExStyle, $__g_sRTFClassName, "", $iStyle, $iLeft, $iTop, $iWidth, $iHeight, $hWnd, $nCtrlID) Local $hRichEdit = _WinAPI_CreateWindowEx($iExStyle, ^ ERROR And please note that GUIRichEdit.au3 is not my script...... (I can't post my code here b/c I don't others who use my software can look at it) EDIT: I can PM the code to you if you want to look at it that badly Edited March 5, 2015 by TheDcoder EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
czardas Posted March 5, 2015 Share Posted March 5, 2015 If it is not your script and you can't post it here, then you have limited options. The error occurs on line 862 because a variable should have been declared somewhere prior to reaching line 862. It could be on line 1342. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 5, 2015 Moderators Share Posted March 5, 2015 TheDcoder,That variable is declared within the RichEdit UDF when you run the _GUICtrlRichEdit_Create function, which in turn calls the __GCR_Init function to set a whole bunch of such variables. It is referenced in all of the public UDF functions - do you try calling a UDF function before actually creating a RuchEdit control? 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...
TheDcoder Posted March 5, 2015 Author Share Posted March 5, 2015 do you try calling a UDF function before actually creating a RuchEdit control? M23 How can I call the UDF? Wild Guess: #include <GuiRichEdit.au3> EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 5, 2015 Moderators Share Posted March 5, 2015 TheDcoder,Looking in more detail at the RichEdit UDF I see that the line which gives you the error is immediately after the __GCR_Init function which should declare it - so my earlier suspicion was baseless. By all means PM me the code again so I can take a look inside. 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...
TheDcoder Posted March 5, 2015 Author Share Posted March 5, 2015 @M23 PMed you EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Solution TheDcoder Posted March 5, 2015 Author Solution Share Posted March 5, 2015 Problem solved... All the hard work has gone down the drain, this piece was causing the problem: #include "GUI.isf" EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion 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