tlman12 Posted September 20, 2010 Share Posted September 20, 2010 I have a script that on a certain computer is getting and error variable not declared on line 17088. i know that my main script only has about 2000 lines so i know this line comes from adding the UDF lines into it. i was just wondering if there was an easy way on my computer to figure out what exactly would be on the line 17088 without having to install autoit/scite on the computer that is getting the error? cause i am not getting the error on my computer. Thank you. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 20, 2010 Moderators Share Posted September 20, 2010 (edited) tlman12,I had the same problem with one of my scripts about 10 minutes ago. When compiling your script, run Obfuscator using the /STRIPONLY parameter. That way the compiler uses an au3 file which has the include files included, but all unused functions, variables, comments and blank lines removed. It is saved in the same folder as the source and named YourScriptName_Obfuscated.au3. Then when the error occurs, it is easy to see which line gave the fault. If you do not have Obfucator, you need the full SciTE4AutoIt3 package, which you can download from here. You get lots of other goodies to help coding in Autoit - I have yet to meet anyone who regrets it. M23P.S. I bet you find that the error is your script and not the UDFs. Edited September 20, 2010 by Melba23 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...
tlman12 Posted September 20, 2010 Author Share Posted September 20, 2010 (edited) alright, i just tried that but for some reason my Script_Obfuscated.au3 is 0kb and has nothing in it? ****EDIT*** never mind i just did it again localy (its on a server share and i know this sometimes causes issues) and it seems to have worked now. Edited September 20, 2010 by tlman12 Link to comment Share on other sites More sharing options...
engjcowi Posted October 5, 2010 Share Posted October 5, 2010 Hi guys Ive recently come across this problem and had to find a line number. i did a search on the forum and found this thread which is great. I have done what was mentioned previous however everytime i do it the obfuscator file is 0kb. ive done it in the script directory then moved everything direct to c:, downloaded the obfuscator program direct and ran it and still its 0kb. anyone have any ideas? thanks Drunken Frat-Boy Monkey Garbage Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 5, 2010 Moderators Share Posted October 5, 2010 engjcowi, Could you let us see the directives you are using to get Obfuscator to run - or the options you put into the Compile dialog if you do it that way. 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...
Developers Jos Posted October 5, 2010 Developers Share Posted October 5, 2010 Hi guysIve recently come across this problem and had to find a line number. i did a search on the forum and found this thread which is great. I have done what was mentioned previous however everytime i do it the obfuscator file is 0kb. ive done it in the script directory then moved everything direct to c:, downloaded the obfuscator program direct and ran it and still its 0kb. anyone have any ideas?thanksrun Obfuscator in SciTE and check the errors or look at the Obfuscator.log to see what is happening.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
engjcowi Posted October 5, 2010 Share Posted October 5, 2010 Hi sorry to seem dense. im running obfuscator by compiling with options. cant see any other option to run it. no log file found upon search either. Drunken Frat-Boy Monkey Garbage Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 5, 2010 Moderators Share Posted October 5, 2010 (edited) engjcowi,If you did a standard install you should find the log at "C:\Program Files\AutoIt3\SciTE\Obfuscator\Obfuscator.Log". If you "compile with options", what options do you put in? M23Edit: Are you using the "lite" version of SciTE that came with the AutoIt download or the full SciTE4AutoIt3 version? Edited October 5, 2010 by Melba23 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...
Developers Jos Posted October 5, 2010 Developers Share Posted October 5, 2010 (edited) Hi sorry to seem dense. im running obfuscator by compiling with options. cant see any other option to run it. no log file found upon search either. Start SciTE and Run Obfuscator from it or F7 to compile which will run Obfuscator as well assuming the options are set correctly.The Obfuscator.log can be found in the Obfuscator directory of the SciTE installation. It contains the result of the last Obfuscator runJos Edited October 5, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 5, 2010 Moderators Share Posted October 5, 2010 Jos, I am leaving it to you as you seem interested and certainly know more about it. 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...
Developers Jos Posted October 5, 2010 Developers Share Posted October 5, 2010 (edited) Jos,I am leaving it to you as you seem interested and certainly know more about it. M23no problem .... you just type faster and when I hit "add reply" I find you answered too.... Edited October 5, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
engjcowi Posted October 6, 2010 Share Posted October 6, 2010 Hi Guys I really appreciate all your help so far. I found the log file. The driectives used are 0.00 AutoIt3 Source Obfuscator v1.0.28.7 Copyright © Jos van der Zande Januari 9, 2010 0.00 CommandLine Params$: 0.00 ============================== Reading Source For Directive ====================================================== 0.02 Ignore Function: onautoitstart 0.02 Ignore Function: onautoitexit 0.02 Directive Params$:/striponly 0.02 CMD$:/striponly 0.02 /StripOnly i also tried /striponlyincludes I can add the full log if needed. its quite lengthy though Drunken Frat-Boy Monkey Garbage Link to comment Share on other sites More sharing options...
Yashied Posted October 6, 2010 Share Posted October 6, 2010 I have a script that on a certain computer is getting and error variable not declared on line 17088. Paste anywhere in your code like this (without parameters!): MsgBox() Then compile it and run. Look in which line was an error, and move the MsgBox() to another location, in accordance with received information. About 2-5 attempts, you find the line number directly in your code. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Developers Jos Posted October 6, 2010 Developers Share Posted October 6, 2010 Have you looked at the log to see if there any any errors? When you can figure it out yourself then PM me the LOG file and I look when I have time but you will have to be patient in the coming couple of days. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
engjcowi Posted November 5, 2010 Share Posted November 5, 2010 Hi Sorry for the late reply. I ended up reinstalling my computer and then it worked fine. must have been my computer at the time. Thanks for your help guys Drunken Frat-Boy Monkey Garbage 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