I'm so in the dark I don't know how to title this, honestly.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jonjbm
Posts: 1
Joined: 16 Jun 2018, 23:22

I'm so in the dark I don't know how to title this, honestly.

17 Jun 2018, 02:13

My apologies if the answer to this is somewhere else. I'm so far from proficient as an AHK user or coder that apparently I don't even know what to Google to figure out how to do this. There were a few times I thought I found something that was going to work, but I couldn't get it to.

Here's the deal:
  • I have a large list of variables storing data that doesn't change.
  • The names of these variables are exact words/strings which I anticipate I will be screen scraping later.
  • After a word/string is scraped and saved in a variable, I need to do an InStr() search on the contents of the data storage variable (mentioned in the first point) that matches the name of the word/string that was just scraped.
How do I do this?
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: I'm so in the dark I don't know how to title this, honestly.

17 Jun 2018, 05:00

Put your data into an ini-file. Then, in terms of INI language,
  • the names of these variables are keys
  • the contents of the data storage variable are values
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: I'm so in the dark I don't know how to title this, honestly.

17 Jun 2018, 08:34

Hello and welcome to the AHK-forum.

Your issue isn't too difficult. AHK can read files, so you can use this.
Read your variable storing file with FileRead and after this, you can loop and parse the content.

As I don't know, how your data is arranged in your variable storing file, I can't give you reliable direction.
Show us a bit of the content and the way you have arranged it and support will be more reliable.

For now, FileRead and Loop, Parse, ... seems like best option.
Einfach nur ein toller Typ. :mrgreen:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 331 guests