Search found 1104 matches

by FanaticGuru
Today, 12:59
Forum: Ask For Help
Topic: Help Retrieving Specific Text From Api (Bible Verse)
Replies: 1
Views: 45

Re: Help Retrieving Specific Text From Api (Bible Verse)

This is the response text: {"query":"Jn1:1","canonical":"John 1:1","parsed":[[43001001,43001001]],"passage_meta":[{"canonical":"John 1:1","chapter_start":[43001001,43001051],"chapter_end":[43001001,4...
by FanaticGuru
Yesterday, 14:28
Forum: Ask For Help
Topic: GDI+ - Create Path to clip rectangle
Replies: 4
Views: 104

Re: GDI+ - Create Path to clip rectangle

I want to create a gray overlay with a rectangle inside to highlight whatever is in the rectangle.[/code] It is possible to create a shaded rectangle selection area using just a Gui. https://autohotkey.com/board/topic/57646-function-selectarea/ This is your basic drag to create a colored rectangle ...
by FanaticGuru
Yesterday, 13:54
Forum: Ask For Help
Topic: How to control and manage many many hotkeys and commands
Replies: 8
Views: 233

Re: How to control and manage many many hotkeys and commands

The script "Hotkey Help" below will provide a list of all hotkeys. https://autohotkey.com/boards/viewtopic.php?t=96 If you put a nice ; comment on the line of each hotkey definition in your scripts, it will create a nice dialog with additional functionality. Even without the nice comments,...
by FanaticGuru
20 Jun 2018, 14:28
Forum: Ask For Help
Topic: Splitting a string into multiple lines with a maximum lenght Topic is solved
Replies: 14
Views: 231

Re: Splitting a string into multiple lines with a maximum lenght Topic is solved

I know this has already been "solved" but it was also solved long ago in the library below. String Things https://autohotkey.com/boards/viewtopic.php?t=53 It contains this function: /* WordWrap Wrap the specified text so each line is never more than a specified length. Unlike st_lineWrap()...
by FanaticGuru
19 Jun 2018, 13:12
Forum: Ask For Help
Topic: Scraping Optimization Help
Replies: 3
Views: 61

Re: Scraping Optimization Help

I added my scraping code below, I would in theory, start on a page with 25 values for me to pull, and appends the way I want it too. Some pages have less than 25 and gives me error's and blank lines on my .txt. Can smarter minds help me clean this up? Untested but should give the basic concept of u...
by FanaticGuru
19 Jun 2018, 12:54
Forum: Ask For Help
Topic: Changing script to use array.... (Excel) Topic is solved
Replies: 7
Views: 122

Re: Changing script to use array.... (Excel) Topic is solved

Great information! Luckily the list is only about 1500 and it already returns within 1 second using your previous method. In a list over 5k I can see how this would be extremely useful. If you don't want to build a Lookup array, you can also just streamline and speedup your loop. Loop % MaxRow if (...
by FanaticGuru
19 Jun 2018, 12:02
Forum: Ask For Help
Topic: IE COM. Page does not support ClassName?
Replies: 8
Views: 136

Re: IE COM. Page does not support ClassName?

the page have this line: <META http-equiv=X-UA-Compatible content=IE=8;> while my IE is 11. Can it be the problem? I think so. GetElementsbyClassName seems to need at least IE 9 (compare, for example, https://developer.mozilla.org/de/docs/Web/API/Document/getElementsByClassName). And as far as I un...
by FanaticGuru
18 Jun 2018, 18:56
Forum: Ask For Help
Topic: Using IE.Document.GetElementsByClassname
Replies: 10
Views: 1785

Re: Using IE.Document.GetElementsByClassname

You can try IE=edge as was mentioned, but also IE=9: <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=9"> All that is great but the point is, I have found no way to set the IE version after the document obje...
by FanaticGuru
18 Jun 2018, 18:30
Forum: Ask For Help
Topic: Changing script to use array.... (Excel) Topic is solved
Replies: 7
Views: 122

Re: Changing script to use array.... (Excel) Topic is solved

Thanks so much! @FanaticGuru - The adapted code is below. Your second suggestion is way simpler, but wouldn't that require the excel doc to remain open when searching? Also, is there a way to make the range dynamic based on the # of columns and rows? I messed around with it but couldnt find the rig...
by FanaticGuru
18 Jun 2018, 14:59
Forum: Ask For Help
Topic: IE COM. Page does not support ClassName?
Replies: 8
Views: 136

Re: IE COM. Page does not support ClassName?

Hi, can it be that webpage does not supports (does not allows?) to work with Class? getElementById works fine, getElementsByTagName works fine, but getElementsByClassName does not respond at all even via F12. I have tried to get visual events, but it looks like the page does not allows to create ev...
by FanaticGuru
18 Jun 2018, 14:03
Forum: Ask For Help
Topic: Changing script to use array.... (Excel) Topic is solved
Replies: 7
Views: 122

Re: Changing script to use array.... (Excel) Topic is solved

You might find this much more useful then looping through all of a ranges cells to find a match. xlApp := ComObjActive("Excel.Application") Formula = =MATCH("Fanatic"&"Guru",A1:A4&B1:B4,0) FoundRow := xlApp.Evaluate(Formula) FoundValue := xlApp.Cells(FoundRow , ...
by FanaticGuru
18 Jun 2018, 12:39
Forum: Ask For Help
Topic: Changing script to use array.... (Excel) Topic is solved
Replies: 7
Views: 122

Re: Changing script to use array.... (Excel) Topic is solved

It works pretty well but it's slow. I have a feeling if the information was already in an array it would run much faster. Apparently I have a mental block against excel arrays because I just can't figure it out. Here is an example of creating a SafeArray from a range and then getting information fr...
by FanaticGuru
15 Jun 2018, 16:13
Forum: Ask For Help
Topic: document.getElementsbyClassName
Replies: 9
Views: 171

Re: document.getElementsbyClassName

html = ( <span class="example"> 12345</span> <div class="example">First div element with class="example".</div> <span class="_dtd _30b5"> 30452</span> ) document := ComObjCreate("HTMLfile") document.open() document.write(html) document.close() ; abo...
by FanaticGuru
15 Jun 2018, 12:40
Forum: Ask For Help
Topic: Clipboard HTML Help
Replies: 4
Views: 88

Re: Clipboard HTML Help

Hi All, I have got this working with help from Google. Now I'm struggling with including this script in my original script. When I run this script within my original it just clears out all of the text and leaves the hyperlink behind. Anyone got any ideas? Thanks ^i:: Body = (join<br> <a href='%clip...
by FanaticGuru
14 Jun 2018, 18:20
Forum: Ask For Help
Topic: How do YOU start most of your AHK scripts?
Replies: 7
Views: 151

Re: How do YOU start most of your AHK scripts?

Yes, I found out that (for me) in some cases it's easier to create 18 single ahk scripts and to link the ahk files to my programable G keys. There is no "which key to assign?" - issue and I believe I was able to realize my aim faster. I'm not really sure if #include will work for me. Imag...
by FanaticGuru
14 Jun 2018, 17:53
Forum: Ask For Help
Topic: How do YOU start most of your AHK scripts?
Replies: 7
Views: 151

Re: How do YOU start most of your AHK scripts?

Well, I wonder if starting a new process is worse than executing the script by a hotkey. When starting a new process, the compiler always has to do some work. But if your script is already running (e.g. as exe or ahk) and you start it with a hotkey, it might be "less work" for the PC. It ...
by FanaticGuru
14 Jun 2018, 17:11
Forum: Ask For Help
Topic: Snipping Tool (default to new snip) Topic is solved
Replies: 14
Views: 177

Re: Snipping Tool (default to new snip) Topic is solved

seriously5OH wrote:
JoeWinograd wrote:Same problem ... win+S brings up Cortana search box, not Snipping Tool.
You need to make sure you have the ability to create any hotkey with win+s.

You can test with this.
For the record I have no problem making a win+s hotkey in Windows 10.

FG
by FanaticGuru
14 Jun 2018, 13:34
Forum: Ask For Help
Topic: document.getElementsbyClassName
Replies: 9
Views: 171

Re: document.getElementsbyClassName

Thank you both for the help ! both answers are working with no error code but i do not have the number display inside the MsgBox. Actually the MsgBox is empty with spanObj := pwb.document.getElementsByTagName( "span" ) While ( a_index-1 < spanObj.length ) { if ( spanObj[ a_index-1 ].class...
by FanaticGuru
13 Jun 2018, 18:30
Forum: Ask For Help
Topic: document.getElementsbyClassName
Replies: 9
Views: 171

Re: document.getElementsbyClassName

Also after the page is loaded try spanObj := pwb.document.getElementsByTagName( "span" ) While ( a_index-1 < spanObj.length ) { if ( spanObj[ a_index-1 ].className = "_dtd _30b5" ) { spanValue := Trim( spanObj[ a_index-1 ].innerText, " " ) } } msgbox % spanValue the cl...
by FanaticGuru
13 Jun 2018, 16:44
Forum: Ask For Help
Topic: document.getElementsbyClassName
Replies: 9
Views: 171

Re: document.getElementsbyClassName

Hello everyone, I just strated to learn AHK two days ago and i'm currently trying to use the function getElementsbyClassName. In detail : - inside this class, i need to save this number "30452" inside my variable Number <span class="_dtd _30b5"> 30452</span> For that, i wrote th...

Go to advanced search