notjes Posted June 21, 2010 Share Posted June 21, 2010 i need to search 22636 programs in google i have a excel file and i wanna to copy the text to google to search what it is then i need the first link and paste it into excel i have a script with macrorecorder buth it is not working i have this error D:\werk\google.au3(20,1) : ERROR: syntax error (illegal character) " ^ D:\werk\google.au3(2,55) : ERROR: _WinWaitActivate(): undefined function. _WinWaitActivate("D:\werk\google.au3 * SciTE","Source") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\werk\google.au3 - 2 error(s), 0 warning(s)google.au3 Link to comment Share on other sites More sharing options...
water Posted June 21, 2010 Share Posted June 21, 2010 Remove the "_" from the WinWaitActive calls. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
notjes Posted June 21, 2010 Author Share Posted June 21, 2010 it do not solve the problem Link to comment Share on other sites More sharing options...
water Posted June 21, 2010 Share Posted June 21, 2010 The error message says that "_WinWaitActive" is an undefined function. Change it to "WinWaitActivate" and your script should run fine because this is a genuine AutoIt function. If it doesn't work could you please post the error messages? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Fire Posted June 21, 2010 Share Posted June 21, 2010 #region --- Au3Recorder generated code Start --- _WinWaitActivate("D:\werk\google.au3 * SciTE","Source") MouseClick("left",689,1045,1) _WinWaitActivate("Microsoft Excel - allsoftware.xls [Compatibiliteitsmodus]","allsoftware.xls [Co") MouseClick("left",89,260,1) Send("{CTRLDOWN}c{CTRLUP}") MouseClick("left",365,1044,1) _WinWaitActivate("Google - Mozilla Firefox","") MouseClick("left",176,67,1) Send("{CTRLDOWN}v{CTRLUP}{ENTER}") _WinWaitActivate("Christmas Sleigh Ridess - Google zoeken - Mozilla Firefox","") MouseClick("left",332,309,1) _WinWaitActivate("Sleigh Ride - Wikipedia, the free encyclopedia - Mozilla Firefox","") MouseClick("left",323,64,1) Send("{CTRLDOWN}c{CTRLUP}") _WinWaitActivate("Program Manager","FolderView") MouseClick("left",653,1037,1) _WinWaitActivate("Microsoft Excel - allsoftware.xls [Compatibiliteitsmodus]","allsoftware.xls [Co") Send("{RIGHT}{RIGHT}{CTRLDOWN}v{CTRLUP}{DOWN}{LEFT}{LEFT}") ;") <= #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- #endregion --- Au3Recorder generated code End --- [size="5"] [/size] Link to comment Share on other sites More sharing options...
trancexx Posted June 21, 2010 Share Posted June 21, 2010 #region --- Au3Recorder generated code Start --- _WinWaitActivate("D:\werk\google.au3 * SciTE","Source") MouseClick("left",689,1045,1) _WinWaitActivate("Microsoft Excel - allsoftware.xls [Compatibiliteitsmodus]","allsoftware.xls [Co") MouseClick("left",89,260,1) Send("{CTRLDOWN}c{CTRLUP}") MouseClick("left",365,1044,1) _WinWaitActivate("Google - Mozilla Firefox","") MouseClick("left",176,67,1) Send("{CTRLDOWN}v{CTRLUP}{ENTER}") _WinWaitActivate("Christmas Sleigh Ridess - Google zoeken - Mozilla Firefox","") MouseClick("left",332,309,1) _WinWaitActivate("Sleigh Ride - Wikipedia, the free encyclopedia - Mozilla Firefox","") MouseClick("left",323,64,1) Send("{CTRLDOWN}c{CTRLUP}") _WinWaitActivate("Program Manager","FolderView") MouseClick("left",653,1037,1) _WinWaitActivate("Microsoft Excel - allsoftware.xls [Compatibiliteitsmodus]","allsoftware.xls [Co") Send("{RIGHT}{RIGHT}{CTRLDOWN}v{CTRLUP}{DOWN}{LEFT}{LEFT}") ;") <= #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- #endregion --- Au3Recorder generated code End --- Do you know how much damage script(s) like that can do? Au3Recorder thing should be wiped out from anything related to AutoIt. Disaster. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Mat Posted June 21, 2010 Share Posted June 21, 2010 (edited) There is the Excel UDF, and a Firefox (FF) UDF. Use those to get more accurate and background automation. Edited June 21, 2010 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Fire Posted June 21, 2010 Share Posted June 21, 2010 @@trancexxYes i know.This is not my script.It is notjes script.Download it CTRL+F5 and you can see at line 20 ") .In my post i just comment it. [size="5"] [/size] Link to comment Share on other sites More sharing options...
trancexx Posted June 21, 2010 Share Posted June 21, 2010 @@trancexxYes i know.This is not my script.Good.@notjes, I hope you will change at least two things regarding your AutoIt experience after this thread. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
EnderWiggin Posted June 21, 2010 Share Posted June 21, 2010 Do you know how much damage script(s) like that can do?Au3Recorder thing should be wiped out from anything related to AutoIt.Disaster.I'm trying to learn autoit. Have read all the ebooks posted here and am working through youtube tutorials and such with little coding background. I often see comments like this one, 'do you know how much damage this can do,' or whatnot, and I have no idea what the author means. I'm currently working on doing something quite similar. Am I doing any harm? If so, and you could explain why, I'd much appreciate it. I don't want to accidentally create something malicious when I intend only to make my interaction with my computer less rote and more intelligent. Thank you Link to comment Share on other sites More sharing options...
notjes Posted June 21, 2010 Author Share Posted June 21, 2010 i have a new script and it works thankx to all now i need to loop it Link to comment Share on other sites More sharing options...
notjes Posted August 26, 2010 Author Share Posted August 26, 2010 help it dosnt work and i need it urgent Link to comment Share on other sites More sharing options...
notjes Posted August 27, 2010 Author Share Posted August 27, 2010 solved 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