Moderators SmOke_N Posted April 20, 2006 Moderators Share Posted April 20, 2006 Mine is Windows . Ummmm......sorry for asking so many newbie quetions but what am i suppose to do with that CODE???Thanks again =DLOL... That says alot, is it Windows 3.1 ?@Valuater - Still should have an error handler there IMO. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted April 20, 2006 Share Posted April 20, 2006 Win9x systems don't have the psapi.dll 2 things to do 1 add the error handling in the function 2 if win9x fileinstall the file maybe Func _ReduceMemory($dll = "psapi.dll") Local $ai_Return = DllCall($dll, 'int', 'EmptyWorkingSet', 'long', -1) If @error Then Return 1 Return $ai_Return[0] EndFunc ;==>_ReduceMemory SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2006 Author Share Posted April 20, 2006 how about Func _ReduceMemory($dll = "psapi.dll") If StringInStr(@OSTYPE, "WIN32_WINDOWS") And Not FileExists(@ScriptDir & "\psapi.dll") Then FileInstall("C:\Program Files\AutoIt3\psapi.dll", @ScriptDir & "\psapi.dll") EndIf Local $ai_Return = DllCall($dll, 'int', 'EmptyWorkingSet', 'long', -1) If @error Then Return 1 Return $ai_Return[0] EndFunc ;==>_ReduceMemory it seems he DID NOT already have Autoit on his system, so this would return an error only untill he downloads Autoit... the first button Right?? 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted April 20, 2006 Share Posted April 20, 2006 how about Func _ReduceMemory($dll = "psapi.dll") If StringInStr(@OSTYPE, "WIN32_WINDOWS") And Not FileExists(@ScriptDir & "\psapi.dll") Then FileInstall("C:\Program Files\AutoIt3\psapi.dll", @ScriptDir & "\psapi.dll") EndIf Local $ai_Return = DllCall($dll, 'int', 'EmptyWorkingSet', 'long', -1) If @error Then Return 1 Return $ai_Return[0] EndFunc ;==>_ReduceMemory it seems he DID NOT already have Autoit on his system, so this would return an error only untill he downloads Autoit... the first button Right?? 8) Not sure if will still error after installing autoit, don't have any pre WinXP systems to test on. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2006 Author Share Posted April 20, 2006 Mine is Windows . Ummmm......sorry for asking so many newbie quetions but what am i suppose to do with that CODE???Thanks again =D02Freak... please use the link below to download Autoit v3after installing autoit, please try "Welcome to Autoit 1-2-3" again... and report back here if it works or notthanks Valuaterhttp://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exe8) Link to comment Share on other sites More sharing options...
tiredodftry Posted April 20, 2006 Share Posted April 20, 2006 Hello, This looks like a great tutorial, however, I get an error when I select the 'Show Me SciTE - Editor' (first button) from Step Number Two. The error is... Titlebar - AutoIt Error Message - Line 14 (File"D:\apps\Autoit_123\Lessons\Lesson-1.au3"): no semi-colon is used for commands. ; Notice the "for" is highlighted and known as a commnad. ^ERROR Error: Unknown function name. I have found the reason for the error, but wanted to post it here in case some else is getting it and cannot find the solution. The issue is with the default action for files with the extension of AU3. When I double clicked on my first AU3 file, I was asked (Windows XP) what I wanted the defualt action to be when I double clicked an AU3 file. I selected 'run'. In the case of this tutorial, that is not the correct solution as the Lesson-1.au3 script is more a document to read than a script to run. To change this setting, do the following... Open Windows Explorer Select Tools | Folder Options... Select the 'File Types' tab Select the entry for AU3 files Select the Advanced button (lower right side) Select the entry for 'Edit Script' under the 'Actions' section Select the 'Set Default' button (middle right side) Select OK Select Close Link to comment Share on other sites More sharing options...
O2Freak Posted April 21, 2006 Share Posted April 21, 2006 I already have Autoit earlier. Mine is beta 3.1.1.99 and i already have IE. I just dont know why cant i open Autoit1-2-3.exe. Is the psapi.dll suppose to be in the Autoit1-2-3 file? Link to comment Share on other sites More sharing options...
Valuater Posted April 21, 2006 Author Share Posted April 21, 2006 (edited) I already have Autoit earlier. Mine is beta 3.1.1.99 and i already have IE. I just dont know why cant i open Autoit1-2-3.exe. Is the psapi.dll suppose to be in the Autoit1-2-3 file? try putting this file in the SAME folder as Autoit 123 it is from the autoit3 folder 8) Edited April 21, 2006 by Valuater Link to comment Share on other sites More sharing options...
GaryFrost Posted April 21, 2006 Share Posted April 21, 2006 try putting this file in the SAME folser as Autoit 123 it is from the autoit3 folder 8) What's a folser? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
O2Freak Posted April 21, 2006 Share Posted April 21, 2006 It still didnt work =( .Can Windows98 run Autoit1-2-3 ??? Link to comment Share on other sites More sharing options...
taurus905 Posted April 21, 2006 Share Posted April 21, 2006 Hello, This looks like a great tutorial, however, I get an error when I select the 'Show Me SciTE - Editor' (first button) from Step Number Two. The error is...Titlebar - AutoIt ErrorMessage - Line 14 (File"D:\apps\Autoit_123\Lessons\Lesson-1.au3"): no semi-colon is used for commands. ; Notice the "for" is highlighted and known as a commnad. ^ERROR Error: Unknown function name.I have found the reason for the error, but wanted to post it here in case some else is getting it and cannot find the solution. The issue is with the default action for files with the extension of AU3. When I double clicked on my first AU3 file, I was asked (Windows XP) what I wanted the defualt action to be when I double clicked an AU3 file. I selected 'run'. In the case of this tutorial, that is not the correct solution as the Lesson-1.au3 script is more a document to read than a script to run.To change this setting, do the following...Open Windows ExplorerSelect Tools | Folder Options...Select the 'File Types' tabSelect the entry for AU3 filesSelect the Advanced button (lower right side)Select the entry for 'Edit Script' under the 'Actions' sectionSelect the 'Set Default' button (middle right side)Select OKSelect Closetiredodftry,Thanks for posting this error message along with the solution.taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs Link to comment Share on other sites More sharing options...
Zedna Posted April 22, 2006 Share Posted April 22, 2006 (edited) On my WIN 98 SE it's not working. At starting when splash screen appears application crash with error: Application performed invalid operation and will be terminated. It's in module user.exe. Are sources somewhere, so I can find where is problem? Edited April 22, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted April 22, 2006 Share Posted April 22, 2006 Please can somebody of admins kill that stupid Examiner? Thanks. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 22, 2006 Share Posted April 22, 2006 whats wrong with it? who cares it just posts peoples scores Link to comment Share on other sites More sharing options...
Zedna Posted April 22, 2006 Share Posted April 22, 2006 (edited) whats wrong with it? who cares it just posts peoples scoresI can't run AutIt123 (read my previous posts here - if you find them) so I don't understand what is it about.By me it should be in some new thread (topic) like "AutoIt123 scores",so here we should read/post about things related to AutoIt123 and no scores.In 30 pages it's very difficult to read something.And pages will be increasing very quickly if we have almost 10000 registered users So this could at least be moved to such new topic... Edited April 22, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
O2Freak Posted April 23, 2006 Share Posted April 23, 2006 Lol......the Examiner is killing me! Ummm...so Zedna, are u saying that Wins 98 cant run Autoit 1-2-3???? Link to comment Share on other sites More sharing options...
Zedna Posted April 23, 2006 Share Posted April 23, 2006 (edited) Lol......the Examiner is killing me! Ummm...so Zedna, are u saying that Wins 98 cant run Autoit 1-2-3????Yes, definitely yes.And for Examiner problem: See my other posts in this topic Edited April 23, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
tonedeaf Posted April 25, 2006 Share Posted April 25, 2006 Typical posts in the AutoIt 1-2-3 topic.How to use examiner?Examiner.....Examiner.....Examiner.....Examiner.....{Huh}Examiner.....Examiner.....Hey! where is my original post gone!....Examiner.....Examiner.....Examiner.....Examiner.....Its three pages backwards.Examiner.....Examiner.....Examiner.....Examiner.....Examiner.....Examiner.....Examiner.....Examiner..... Link to comment Share on other sites More sharing options...
theguy0000 Posted April 26, 2006 Share Posted April 26, 2006 I agree with the Examiner problem. Real pain to find anything useful in this topic. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
AutoItKing Posted May 1, 2006 Share Posted May 1, 2006 I say we make this topic a sticky! http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] 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