Jump to content

MrVining

Members
  • Posts

    18
  • Joined

  • Last visited

MrVining's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. I'm just looking for advice on where to start. I'm writing a script that opens a web page, logs-in, clicks a link, deletes cookies & history, then logs in on a different account a few more times. I was hoping to use Chrome or FireFox. The part I most anticipate issues with is finding the link to click.
  2. Yeah, I think I'm going to use the time macros. I don't need such an accurate timer.
  3. I have sort of a scheduler function that loops, and it runs several functions, some daily, some on a timer. The accuracy of the timer needs / should be about a minute.
  4. I have a looping script that I hope to one day run for months at a time. I've just started working with TimerInit() and TimerDiff() and I'm started to get some negative values so I'm guessing that means that my TimerInit() variable is expired?
  5. No one ever seems to use it on any of the examples or posts? Just wondering what best practice is.
  6. NICE!!!! I figured out the StringTrimRight, but I didn't think to add an if!!! Thank you thank you!
  7. Is there a way to start at the end of the string working backwards? StringRegExpReplace('$string', ',', '', '1') To take out the last comma?
  8. Nope, I needed the opposite of what you gave me, but I'm getting it figured out! This scripting stuff is fun.
  9. Okay, I figured out my issue with your code, I didn't realize "#include <File.au3>" was not referring to the text file I was working with... /fail
  10. @ Melba23, I need something like: Func NewFunc($var) Array_Magic($var) EndFunc $output = NewFunc("xxx") ; $output now = 24687 @ water, The script activates the change in the file up above in a different function, so I shoulc be good there. @ Melba23, I've started looking into that array include, I'm thinking that will be the ticket. The problem I'm running into with the code you listed is this symbol seems to be throwing me errors: {
  11. I have a file that changes somewhat frequently (at least 5 times when this section of my script runs) and I want my script to capture some data from it. The file is much longer, but I have copied the syntax completely with two entries. Every time the file is written it writes the entries in random order, so next time the script reads the file entry yyy could be above xxx. The only two variables I need to work with are "value2" and "value3". The file changes so much that I'm not even sure if it makes sense to convert it into an array, but this is a small part of my FIRST script so I'm a total newb. (I'm pretty excited about what I have learned so far, I have started to work with arrays, and my script is connecting to a remote mysql database and doing some other fun stuff). The script will have "xxx" and needs to find the number corresponding to it. What's worse (for me) is that it doesn't need the last 4 digits of the number. So the value currently associated with "xxx" is actually "24687". I'm not afraid to read, but I'd like some advice from some experienced people to point me at the right direction. aaa = { ["xxx_bbb::zzz"] = { ["value1"] = true, ["value2"] = "xxx", ["value3"] = 246870316, }, ["yyy_ccc::zzz"] = { ["value1"] = true, ["value2"] = "yyy", ["value3"] = 32608358, }, }
  12. Does "Declaring" the variable mean the Local / Global / (and I know there is one other) part?
  13. What is the hour between Midnight and 1am? I'm guessing 0, but I wanted to be sure.
  14. Wow thank you for all the timely response! I think I'm going to like it here. For the first time I think I actually wanted to look things up... Just learned what a 262144 message box is, the @LF AND that you could have a message box time out. =p Funny that is the one place I have seen so far that uses seconds not milliseconds.
×
×
  • Create New...