XIII Posted December 6, 2007 Report Share Posted December 6, 2007 Hi, I'm sure this is a noob question, but this is driving me nuts! I hope someone can help me with this.. How can I get the number of results that are displayed on a search page into a variable? For now, I've been entering the value manually into a prompt for value box after the results of the search comes back. I'd like to grab the number off of the page and put it into a variable automatically. Is this possible? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
XIII Posted December 6, 2007 Author Report Share Posted December 6, 2007 Anyone out there? Quote Link to comment Share on other sites More sharing options...
sridhar Posted December 7, 2007 Report Share Posted December 7, 2007 Is the browser Firefox? Quote Link to comment Share on other sites More sharing options...
blopib Posted December 7, 2007 Report Share Posted December 7, 2007 Hi This is going to be a answer in general terms. Is it possible to navigate to the page-field with Tab or Arrows? If it is use the Text type command to do the Tab or arrow commands, to jump to the right field. Copy the text with the Clipboard Copy command and use Variable Set Integer/Set Value from Clipboard. Hope this guided you some Quote Link to comment Share on other sites More sharing options...
XIII Posted December 7, 2007 Author Report Share Posted December 7, 2007 Is the browser Firefox? Yes, the browser is firefox. Quote Link to comment Share on other sites More sharing options...
XIII Posted December 7, 2007 Author Report Share Posted December 7, 2007 Hi This is going to be a answer in general terms. Is it possible to navigate to the page-field with Tab or Arrows? If it is use the Text type command to do the Tab or arrow commands, to jump to the right field. Copy the text with the Clipboard Copy command and use Variable Set Integer/Set Value from Clipboard. Hope this guided you some Hi, Yes, I think that is possible. The problem seems to be that there is some additional text included with the number that I am trying to grab. Is there a way that I can edit out the rest and just leave the number that I need? Any ideas would be appreciated! Thanks! Quote Link to comment Share on other sites More sharing options...
blopib Posted December 7, 2007 Report Share Posted December 7, 2007 Yes, you can use the Delete Part of Text in the Variable Modify String command. Quote Link to comment Share on other sites More sharing options...
sridhar Posted December 7, 2007 Report Share Posted December 7, 2007 You can look at the source code of this firefox add-on: https://www.squarefree.com/extensions/search-keys/ It will put numbers next to search results. By examining it, you can perhaps get some ideas. Quote Link to comment Share on other sites More sharing options...
XIII Posted December 7, 2007 Author Report Share Posted December 7, 2007 Yes, you can use the Delete Part of Text in the Variable Modify String command. This worked very nicely! Thank you for the help guys, I really appreciate it! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.