AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 12 matches
AutoHotkey Community Forum Index
Author Message
  Topic: automatically fill spreadsheet with text from the file
RingDingDing

Replies: 7
Views: 460

PostForum: Ask for Help   Posted: Mon May 05, 2008 2:59 pm   Subject: automatically fill spreadsheet with text from the file
I'm playing a game where I am trying to come up with some sort of statistics of the fights I am involved in. I have a file with a heap of the following info repeated:

Amaza Priestess
Life: 684
Da ...
  Topic: Editing Copied text
RingDingDing

Replies: 12
Views: 311

PostForum: Ask for Help   Posted: Fri Mar 28, 2008 12:56 pm   Subject: Editing Copied text
Thanks for that tip Lexikos. I had achieved what I needed with a sloppy method (StringTrimLeft) to remove the offending first string, but I'm sure your code is much more professional Smile

My code is ...
  Topic: Editing Copied text
RingDingDing

Replies: 12
Views: 311

PostForum: Ask for Help   Posted: Fri Mar 28, 2008 11:29 am   Subject: Editing Copied text
Really going good now, almost got it working perfect.

Just need one more thing sorting and I think I have it done.

When in battle, the Life: xxx / xxx string is displayed twice. Once for the ene ...
  Topic: Editing Copied text
RingDingDing

Replies: 12
Views: 311

PostForum: Ask for Help   Posted: Fri Mar 28, 2008 8:05 am   Subject: Editing Copied text
AWESOME!

Nearly there now....do you have any suggestions how to reduce the following string to just the first number, regardless of how many digits there are?

ie I want to extract the number 666 ...
  Topic: Editing Copied text
RingDingDing

Replies: 12
Views: 311

PostForum: Ask for Help   Posted: Fri Mar 28, 2008 4:45 am   Subject: Editing Copied text
Can anyone see where I am going wrong with this? It might help my understanding of what I am doing. The idea is to grab the text from Google (or any other page), and strip out the string I am looking ...
  Topic: Editing Copied text
RingDingDing

Replies: 12
Views: 311

PostForum: Ask for Help   Posted: Fri Mar 28, 2008 3:27 am   Subject: Editing Copied text
This falls somewhere near what I want to do with my clipboard.

There is a string I want to extract from the clipboard, but it is in a different place most times. The string length is variable too, ...
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Thu Mar 27, 2008 11:25 am   Subject: IF text = "whatever" THEN do something?
Getting somewhere close, I can get the text off the website now...I just need to figure out how to get the numbers into a variable so I can do an action based upon what it says.

Run http:\\www.goog ...
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Thu Mar 27, 2008 4:17 am   Subject: IF text = "whatever" THEN do something?
Hmmm, when I actually tested it, the urldownload didn't work. Although I was logged in in Internet Explorer, the file it downloaded was the frontpage.

I might need to grab the actual text from the ...
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Thu Mar 27, 2008 3:15 am   Subject: IF text = "whatever" THEN do something?
Ok, I've got the web page downloading, the file is being read and stored as a string.

Now I need to grab a particular section of the string and store it as a variable.

ie

I need to get the nu ...
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Thu Mar 27, 2008 2:01 am   Subject: IF text = "whatever" THEN do something?
Awesome....I'm actually doing what I want with FileRead so far, will that cause any problems do you think?
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Wed Mar 26, 2008 9:00 am   Subject: IF text = "whatever" THEN do something?
What about if the page is determined by the destination?

ie if it is a game which produces something different each time?

Would it in effect generate a double hit?
  Topic: IF text = "whatever" THEN do something?
RingDingDing

Replies: 7
Views: 263

PostForum: Ask for Help   Posted: Wed Mar 26, 2008 5:38 am   Subject: IF text = "whatever" THEN do something?
I've been hunting around but I can't seem to find the answer.

I'm basically looking for a function to search the text on an internet explorer page, and if it finds it, do a particular function (ie ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group