Jump to content

tommytx

Active Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by tommytx

  1. I have not been working autoit for awhile now but i used to use it a lot... but now that I am back i tried every example in the help file and not of them would work for me.. The browser never came up on any of them.. If its no longer working what is our favorite browser now... Firefox, chrome... if so can anyone point me to a sample that works on other browsers.. Thanks in advance. #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "www.autoitscript.com") It won't even do really basic stuff like this.
  2. I am a long time autoit user but have not used it for a few years.. I just downloaded the latest version the one that is selfloading exec.. and it appears to be missing a lot of stuff... here is what it looks like when i type "Autoexe" into the Windows Task Bar.. Autoit Windows Info (x86) heck i don't want the info window.. plus it says froze. Autoit V3 Setup. exe (never seen the setup come up in the task bar. Autoit - 123 Autoit 123 Source Autoit Windows Info (x86 I sure do not want all the info windows. Have i done something wrong... I am familiar with Auto it so i know this is not right. I can see the file i downloaded on my hard drive and its named.. autoexec v3 setup.exe and is 12,011 bytes.. This seems weird... the computer i originaly downloaded to is pretty old so I downloaded to a NEW Lenov puter and did the same thing. any suggestions would be appreciated.
  3. Thanks for your response TheXman... I am aware that I could simply Navigate to the site... by I simply dumping in a new URL then visit the site.. Its a simple matter to click the left end of Address Bar.. and then Send the URL and follow with an enter and off it goes and that is what I have been doing but having recently come back across the get the locationURL seems like it wold be so much simpler to just send the new url back as a locationURL... so I apparently have assumed that id i can read a value form the page i can write a valulue to that same page... But not knowing how to get it by id it may not be something that can be done.. but I was sure that one of you experts would immediately know how to do it.. or simply quickly tell me can't be done.. and if so I just continue to click and dump... puts it in the address bar but a little messy.. I also have used click and drag to grab hilite the url.. then delete it and simply send followed by an enter to make it navigate to the new location. So bottom line is it possible to write the address bar as simple as we can read the address bar... Thanks for looking at this..
  4. I did not post my phone number and SSN either. its just a matter of trying to stay safe from all the idiots on the web with their spam and attacks.. Have you heard of the folks that attack your site for fun... This is a very simple question and can be tested on any site... but since its apparently needed.. have fun.. its vahud.com... just an old test site.. or was that a serious question did you really need to test t hat on a specific site.. if so I apologize... of course if it works. I did test it on 3 different random sites... and if I am working on a customer site.. I certainly do not spread thier domain name all over the web... for their privacy unless its actually needed to solve the problem.
  5. Seem to have a problem training autoit.. to control the Address Bar.. ; Question how to easily write to the Address bar... ; This will type the new user name into the input box on the site.. $username = "tommytx" $tomboy = _IEGetObjById ($oIE, "ctl00_SampleContent_ctlLogin_UserName") $tomboy.value=$username ; This will grab the URL from the address bar line... Local $oIE = _IECreate("https://www.onewebsite.com") $cur_url = _IEPropertyGet($oIE, "locationurl") Msgbox(0,"",$cur_url) ; But what I am looking to do is type a new name into the location bar of the site. $new_url = "https://www.anotherwebsite.com" $cur_url = _IEPropertyGet($oIE, "locationurl") $cur_url.value=$new_url ; does not work ; Folowing is the error generated.. ; "C:\___BRUCE_EXPORT_MYSQL\Update-Premium\attach.au3" (10) : ==> Variable must be of type "Object".: ; $cur_url.value=$new_url ; $cur_url^ ERROR ; Exit code: 1 Time: 10.98 Appreciate any help toward getting me back on the track. Thanks
  6. OOPS! Sorry guys this was way simpler than i though in my mind.. I was not thinking about even though the array might have 20 items in some cases they only thing I need todo is simply get the last split... so I will use this.. but would still like to know if anything simpler than this is available.. Thanks.. $dog = "shorty\wp-content\plugins\IDXSEO\css\colors.php" $cat = StringSplit($dog, "\") ConsoleWrite($cat[$cat[0]] & @CRLF) Prints - colors.php
  7. Does anybody know of short quick simple command to find the last \ in the url... I know i can splitstring orcount them and figure it out.. but surely as nice as autoit is.. there must be something simple... Please. What i need is to grab the filename at the end of each line.. like colors.php So i could split at the \ and grab the last array item... but if anyone has something simpler I would appreciate it.. Thanks shorty\wp-content\plugins\IDXSEO\css\colors.php -> shorty\wp-content\plugins\IDXSEO\Geocoding\Geocron.php -> shorty\wp-content\plugins\IDXSEO\include\CRM.php -> shorty\wp-content\plugins\IDXSEO\include\FieldCategoriesFrontend.php
  8. Its working now.. have no idea what did it.. may have been as someone said above a strange character running around. I put it into Notepad++ and lit up all the characters to see but nothing.. Anyway thanks for they help... it should have worked all along as I have used that display command many time.. Thanks a lot.
  9. Thanks for the help pseakins and subz. Let's try again.. what I am saying that is not working is the array does not load so the _ArrayDisplay() will not pop up. When I placed the error printer as requested, no error was shown.... but the _arrayDisplay() still does not function and the reason is the 5 items in file are not being placed in an array as they should be so the display will not show an array as it does not exist. Further the missing array is confirmed when I try to print an item from the array which simply errors out.. Yet the @error suggests that the array loaded fine by no error. $mylist = "doggone.txt" Local $aRec _FileReadToArray($mylist, $aRec) ConsoleWrite('Error Y or N -> ' & @error & @CRLF) _ArrayDisplay($aRec) ; Problem is the display does not work. ; Note this errors out since the array was never loaded. ConsoleWrite($aRec[0]) Error Y or N -> 1 "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" (14) : ==> Subscript used on non-accessible variable.: ConsoleWrite($aRec[0]) ConsoleWrite($aRec^ ERROR
  10. #include <FileConstants.au3> #include <File.au3> #include <Array.au3> ; This works fine.. Local $bRec[5] = ["Item 0", "Item 1", "Item 2", "Item 3", "Item 4"] _ArrayDisplay($bRec) ConsoleWrite($bRec[0] & @CRLF) ConsoleWrite($bRec[1] & @CRLF) $mylist = "doggone.txt" ConsoleWrite($mylist & @CRLF) Local $aRec _FileReadToArray($mylist, $aRec) _ArrayDisplay($aRec) ConsoleWrite($aRec[0] & @CRLF) ConsoleWrite($aRec[1] & @CRLF) >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" Item 0 Item 1 doggone.txt "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" (18) : ==> Subscript used on non-accessible variable.: ConsoleWrite($aRec[0] & @CRLF) ConsoleWrite($aRec^ ERROR >Exit code: 1 Time: 2.765
  11. #include <FileConstants.au3> #include <File.au3> #include <Array.au3> $mylist = "doggone.txt" ConsoleWrite($mylist & @CRLF) Local $aRec _FileReadToArray($mylist, $aRec) _ArrayDisplay($aRec) Can anyone see anything wrong with this code... I have used it a zillion times before.. Just dead but shows The 0 0 at bottom suggesting it operated with no output. This is in the text file in same directory as the au3 file Yes it does print out the doggone.txt based on the ConsoleWrite command but no array box showing the data in the txt file.. NOTHING!. doggone.txt dog cat pig hog Added to show the result.. >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" doggone.txt >Exit code: 0 Time: 0.2863 When I added this just to see: ConsoleWrite($aRec[0] & @CRLF) ConsoleWrite($aRec[1] & @CRLF) >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" doggone.txt "E:\NEW_IDXSEO\_Recursive_Directory\plugins_real_short_archive_out\recursive-2.au3" (11) : ==> Subscript used on non-accessible variable.: ConsoleWrite($aRec[0] & @CRLF) ConsoleWrite($aRec^ ERROR
  12. Ok my new drive is installed and its hit and miss.. working fine now but who knows.. it comes and goes...not fixed but is working for now.. gonna be aggravating not knowing when I can depend on it and when i can't but thanks for the assist..
  13. Thanks Dan.. tried much of that including the SFC or what ever the scan repair was but none worked for me.. now here is the kicker.. I removed my 2nd drive and rebooted and all is fine.. so with one drive i am fine.. once i make the new 2nd drive i will connect that same drive back up and see if it kills it again.. so thanks for those who offered help. Works great for the moment. Did you see the comment about Sandboxie in the thread I posted? Yes thank you. Are you able to load IE manually? IE version 10 works great manually. What version of Windows? Win 10 Have you tried rebooting? several times but see above a reboot w/o the second drive fixed it... so will put the second drive back on later tonight and see if it returns or not.. if it still works later tonight with 2nd drive i will mark this one solved..
  14. Here is the error output after running the move complex looking code suggested by VIP >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "G:\show_pos.au3\test.au3" G:\show_pos.au3\test.au3 (215) : ==> COM Error intercepted ! err.number is: 0x80040154 err.windescription: Class not registered err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 215 err.retcode is: 0x00000000 --> IE.au3 T3.0-2 Error from function _IECreate, (Browser Object Creation Failed) >Exit code: 0 Time: 37.52
  15. This is what my errors look like now studying to see what all i can do to find out why the class is not registered. Meanwhile if anyone has ideas.. pls comment.. G:\show_pos.au3\test.au3 (215) : ==> COM Error intercepted ! err.number is: 0x80040154 err.windescription: Class not registered err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 215 err.retcode is: 0x00000000 --> IE.au3 T3.0-2 Error from function _IECreate, (Browser Object Creation Failed) >Exit code: 0 Time: 30.61
  16. ConsoleWrite("Hello Dolly on Line 1" & @CRLF) #include <IE.au3> ConsoleWrite("Hello Dolly on Line 5" & @CRLF) Local $oIE = _IECreate("www.autoitscript.com") ConsoleWrite("Hello Dolly on Line 10" & @CRLF) Can anyone put me on the right track to troubleshoot this one.. the IE browser is not opening.. it is not my primary browser since FF is but that has not been a problem in the past.. it all seems to work including compile but the generation of the IE browser.. Never had any problem before.. below is the results of the run.. any ideas on where I might look.. that is the only error i get and its only after a 30 second delay.. I suppose a time out.. ; >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "G:\show_pos.au3\test.au3" ; Hello Dolly on Line 1 ; Hello Dolly on Line 5 ; --> IE.au3 T3.0-2 Error from function _IECreate, (Browser Object Creation Failed) ; Hello Dolly on Line 10 ; >Exit code: 0 Time: 30.46
  17. I am getting a MozRepl will not work on your version of firefox.. should it work on the latest version of FF? appears that the reason its failing is that i do not have a good copy of MozRepl on board....does that make sense?
  18. #Include <FF.au3> _FFStart("http://beachrealty.com") If _FFIsConnected() Then MsgBox(0,"","Connected Now!") If _FFIsConnected() Then Sleep(2000) _FFAction("presentationmode", True) Sleep(2000) _FFOpenURL("http://www.google.com") Sleep(2000) _FFAction("back") _FFAction("presentationmode", False) Sleep(2000) _FFOpenURL("chrome:bookmarks") Sleep(2000) _FFAction("alert", "Bye bye ...") _FFQuit() Else _FFAction("alert", "All Done ...") EndIf The above code used to work fine but now its giving the following error.. can anyone see what might be wrong.. do i need to remove and replace my copy of FF since its calling out the registry.. any advice would be greatly appreciated. Below is the errors being callled out when run.. >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "G:\Important_2017\!__all_snips\New folder\ff-start.au3" __FFStartProcess ==> General Error: Error reading registry entry for FireFox. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe Error from RegRead: 1 _FFConnect: OS: WIN_10 WIN32_NT 16299 _FFConnect: AutoIt: 3.3.14.2 _FFConnect: FF.au3: 0.6.0.2b _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect ==> Timeout: TCPConnect Error: 10060 _FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242 _FFIsConnected ==> Socket Error: -1 _FFIsConnected ==> Socket Error: -1 __FFSend ==> Socket Error "G:\Important_2017\!__all_snips\New folder\FF.au3" (2365) : ==> Variable used without being declared.: SetError(__FFError($sFuncName, $_FF_ERROR_RetValue, $sRet)) SetError(__FFError($sFuncName, $_FF_ERROR_RetValue, ^ ERROR >Exit code: 1 Time: 61.86
  19. Help autoit has lost its mind and the screen is so wide i cannot see my borders.. so no access to minimize or X or - or anything..Seems ok otherwise and its just thee autoit window as atje rest of my windows work fine..
  20. I have been experiment for months trying to find a way to be able to like script the find button to find some text and click on that text or something nearby. Is this possible? When the search hilites the text of course this is not where the cursor is so you cannot command a click at that point. I can get the coordinates of any point and go there and click... but I cannot find the coordinates of a piece of text i have searched up and click that.. Thanks
  21. Nope the url direct /idx/zip/12345 works fine and going to the same /idx/ on another website works fine...they both use idenitcal ursl with exception of the domain name changes... Plus that would have nothing to do with the fact that i can no longer download the root... / on my site but can on any other site.. and I surely did not change my on site... basically none of it makes any sense at all... should not be happening.. but thanks for the suggestion.
  22. Folks I need help real bad.. I think my site has been invaded by a gremlin... I am using the following autoit code which has worked just fine in the past with this very website.. matter of fact two days ago. $str = "http://vahud.com/" Local $dat = _INetGetSource($str) ConsoleWrite($dat & @CRLF) So here is how it goes....about a week ago i Ran this code.. $str = "http://vahud.com/idx/zip/12345" and replaced the 12345 with maybe 50 other zip codes and downloaded the 50 files..all is good.. Now the very same program using str=vahud.com/ will not download even the index file.. but works fine on any other site.. Also as long as i get it a specific file it will download from vahud.com/mydir/myfile.txt etc.. the URI I am trying to download all look like this.. /idx/zip/actual zip code or /idx/city/acutal city.. Downloads fine from any other site that has the same idx functional.. but what is odd I cannot even download the / (root index file) but downloads every body elses root.. I have total control over the site as its a VPS even root access.. so no one could block me... maybe the idx provider could block me from the /idx/zip/actual zip but I can download it vai the browser and the very same idx on someone esles site downloads fine.. Every other function of the site works perfectly. final note.. I have gone into htaccess and blocked several crawlers but trust me I did not add my IP and plus i am not blocked ip wise anyway.. and no one else has access. If i was not blocked from downloading the / I might suspect the idx provider due to too many downloads in a short period.. but since I can view it with the browser my IP must be fine. Any thoughts, suggestions that i might try would be appreciated..
  23. ; $url = "file:///C:\favorites\996.htm" ; $url = "www.vahud.com/sierra/996.htm" $oIE = _IECreate($url) sleep(9000) Discovered another tid bit that might help analyze this problem.. with the above code running the $url as on hard drive I get a normal loading and viewing of the page on s creen however the immediate error.. IE browser shut down... so of course the rest of the program will fail... so is there something wrong with my hard drive URL.. is it formatted wrong.. it is finding the correct file as the browser loads and displays it normal and the browser stays on s creen with the file in view.. but the program says the IE has been shout down.. .so it can do nothing further... Thanks for any help or suggestions.. again the web $URL works fine and processes the table..
  24. Location on hard drive: $url = "file:///C:\favorites\996.htm" Location on web: $url = "www.mydomain.com/favorites/996.htm" $oIE = _IECreate($url) Local $oTable = _IETableGetCollection($oIE, 0) Local $aTableData = _IETableWriteToArray($oTable) _ArrayDisplay($aTableData) Error output following run >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "F:\get_favorites\get-favorites.au3" --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.) --> IE.au3 T3.0-2 Error from function _IENavigate, $_IESTATUS_InvalidObjectType "C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1508) : ==> The requested action with this object has failed.: Case $iIndex > -1 And $iIndex < $oObject.document.GetElementsByTagName("table").length Case $iIndex > -1 And $iIndex < $oObject^ ERROR >Exit code: 1 Time: 1.004 In block one above you can see i have two URL locations.. one on hard drive and one on the web.. when I run this very simple program on the web it works fine and extracts the data from the first table on the page as requested... Howver when i switch the location of the same identical file to the hard drive I get the message on the page that says... "IE has restricted this page to no scripts... click here to allow scripts... so whether I click to approve the scripts or not it will not work.. Is there anything that i can do to free up the page on the hard drive so that it can be read correctly.... By will not work.. I am referring to the fact that it just sits there doing nothing before and after I accept the warning no scripts and approve the script.. Block two shows the error I get.. and does Browser has been deleted mean i need to do something else to the program..
  25. Can someone please confirm that these are correct formats for loading a file in the same directory as the auto it program and is the format the same for FF and IE.. Local $oIE = _IECreate("file:///test.htm") _FFOpenURL("file:///test.htm")
×
×
  • Create New...