Search found 1736 matches
- 09 Feb 2017, 19:35
- Forum: Ask for Help (v1)
- Topic: Webscraping .ASPX pages - variable problem
- Replies: 7
- Views: 1946
Re: Webscraping .ASPX pages - variable problem
Thanks, Capn Odin. Still no joy, but I think you've got me on the right track. It does appear to be a timing issue. Please see the code below, which works. But I have no timing issues when I don't try to use the second variable (FF). #SingleInstance, Force pwb := WBGet() URL = https://[MyURLHere]. p...
- 09 Feb 2017, 18:46
- Forum: Ask for Help (v1)
- Topic: Webscraping .ASPX pages - variable problem
- Replies: 7
- Views: 1946
Re: Webscraping .ASPX pages - variable problem
Thanks, Capn Odin.
I tried both solutions, but neither worked.
I will try to use AHK_H, and see if there is something in that version that might let me do what I'm trying to do.
I'll post right away if it works.
Regards,
W
I tried both solutions, but neither worked.
I will try to use AHK_H, and see if there is something in that version that might let me do what I'm trying to do.
I'll post right away if it works.
Regards,
W
- 09 Feb 2017, 18:43
- Forum: Ask for Help (v1)
- Topic: Webscraping .ASPX pages - variable problem
- Replies: 7
- Views: 1946
Re: Webscraping .ASPX pages - variable problem
Thanks, Capn Odin, but neither works. Might I need to be using AHK_H instead? Maybe I'll try that. If it works I'll post right away.
Again, thanks!
Again, thanks!
- 09 Feb 2017, 17:55
- Forum: Ask for Help (v1)
- Topic: Webscraping .ASPX pages - variable problem
- Replies: 7
- Views: 1946
Re: Webscraping .ASPX pages - variable problem
Hi, thanks for your response. The code I've listed works (no "." needed).
What I wanted to do was replace "_2076ade26f0648268e57e8bd7e3c3bd1_ListView_ElementsRepeater_txt_1_" with another variable, say "preFix", doesn't matter, and concatenate it with "startVar".
Regards,
W.
What I wanted to do was replace "_2076ade26f0648268e57e8bd7e3c3bd1_ListView_ElementsRepeater_txt_1_" with another variable, say "preFix", doesn't matter, and concatenate it with "startVar".
Regards,
W.
- 09 Feb 2017, 13:54
- Forum: Ask for Help (v1)
- Topic: Webscraping .ASPX pages - variable problem
- Replies: 7
- Views: 1946
Webscraping .ASPX pages - variable problem
Hello, thanks in advance to anyone who can help me with this problem. If I can get by this one hurdle, I believe it'll help me tremendously. My AHK toolset is still extremely limited, as you can probably tell. I'm scraping a public website with no scraping restrictions. The working code is below. 1)...
- 06 Feb 2017, 18:10
- Forum: Scripts and Functions (v1)
- Topic: Acc library (MSAA) and AccViewer download links
- Replies: 43
- Views: 78961
Re: Acc library (MSAA) and AccViewer download links
For a copy that works with my 64-bit Win7 box you can try https://dl.dropboxusercontent.com/u/67647214/iWB2%20Learner%20UPDATED.ahk. I corrected the typo listed above and moved a variable. Please let me know if it doesn't work or the link dies. Edit: That link is dead due to Dropbox policy changes, ...
- 31 Jan 2017, 19:58
- Forum: Tutorials (v1)
- Topic: MS Office COM Basics
- Replies: 116
- Views: 197424
Re: MS Office COM Basics
Thanks, kon. I'd gotten as far as the code below when I came back to read your post, and breathed a heavy sigh of relief. Thanks again! I hadn't put braces after the "add" command, and it fires anyway. You are doing great work for the community and I really appreciate it. p.s. That semicolon in my e...
- 27 Jan 2017, 19:01
- Forum: Ask for Help (v1)
- Topic: Add AutoHotkey.dll to Visual Basic as ressource
- Replies: 2
- Views: 1133
Re: Add AutoHotkey.dll to Visual Basic as ressource
Hi, I'm really new it this myself, but I do have a couple of things working. You _might_ try adding either AutoHotkey.Interop.dll or AutoHotKey.dll as a reference (Project -> Add Reference, browse to the appropriate .DLL). In one project I just added AutoHotkey.Interop.dll and added "Imports AutoHot...
- 27 Jan 2017, 18:46
- Forum: Ask for Help (v1)
- Topic: Help with controlling Internet Explorer Topic is solved
- Replies: 7
- Views: 2878
Re: Help with controlling Internet Explorer Topic is solved
You might try "wb.Visible := 1" instead of "wb.Visible := true"; (maybe even (on the same line) if that doesn't work:) wb.Visible := 1, wb.Activate I have had this problem with Word. Using an integer, at least with Word, _does_ work. This link may be of some help. https://gist.github.com/tmplinshi/c...
- 27 Jan 2017, 01:14
- Forum: Ask for Help (v1)
- Topic: Autohotkey.Dll, AutoHotkey.Interop, MS Office com objects Topic is solved
- Replies: 1
- Views: 897
Re: Autohotkey.Dll, AutoHotkey.Interop, MS Office com objects Topic is solved
:superhappy: Success!!!!!!!!!! Add a reference to AutoHotkey.Interop to the VB program. My problem was I was trying to use AHK escape characters within the AutoHotkey.Script. Dumb. As you can see, the "Word.Application" needed to be ""Word.Application"" for Visual Studio to see it. Imports AutoHotke...
- 26 Jan 2017, 18:22
- Forum: Ask for Help (v1)
- Topic: Autohotkey.Dll, AutoHotkey.Interop, MS Office com objects Topic is solved
- Replies: 1
- Views: 897
Autohotkey.Dll, AutoHotkey.Interop, MS Office com objects Topic is solved
Many thanks in advance to all who can help. The code below works, but doesn't do what I want. My goal is to create a Com object either from within an AutoHotKey.dll.ahktextdll script, or to create it with one of the AutoHotkey.Interop functions, or to at least operate on the Com object created in th...
- 24 Jan 2017, 19:31
- Forum: Ask for Help
- Topic: AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
- Replies: 3
- Views: 5030
Re: AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
And here's the code with a few of Amazing-Andrew's samples from https://github.com/amazing-andrew/AutoHotkey.Interop, converted to VB.NET. It's just a form with one button, like the last one. I just built the DLL in VS2015 and dropped it in the project, as advertised. (I haven't gotten to all of the...
- 24 Jan 2017, 19:21
- Forum: Ask for Help
- Topic: AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
- Replies: 3
- Views: 5030
Re: AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
:clap: Thanks so much, and thanks for your most excellent work! I am in awe. I only had to change "var :=" to "var =" and it works great. Here's the code now: Public Class Form1 Dim vbString As String = "Hello AHK World!" Sub SendAHKeys() Dim ahk As Object ahk = CreateObject("AutoHotkey.Script") ahk...
- 23 Jan 2017, 22:19
- Forum: Ask for Help (v1)
- Topic: Send keys to Adobe Acrobat
- Replies: 4
- Views: 1189
Re: Send keys to Adobe Acrobat
#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. If !WinExist("Acrobat") { Run Acrobat } else { WinActivate Acrobat } sleep, 1000 send, !f sleep, 20 send, r sleep, 20 send, s sleep, 20 send, s Return ;This appears to work whether Acrobat is already started...
- 23 Jan 2017, 22:09
- Forum: Ask for Help (v1)
- Topic: Send keys to Adobe Acrobat
- Replies: 4
- Views: 1189
Re: Send keys to Adobe Acrobat
#NoEnv SendMode Input run, acrobat sleep, 1000 send, !f sleep, 20 send, r sleep, 20 send, s sleep, 20 send, s Return The code suggested above didn't work for me. This, however, ran very quickly to the custom scan. I'm an utter novice at this, but it seems Acrobat needs a full second to get ready for...
- 22 Jan 2017, 19:58
- Forum: Ask for Help
- Topic: AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
- Replies: 3
- Views: 5030
AutoHotKeyDLL; use .NET variables in AHK Script Topic is solved
This code works in a WinForm as is. What I want to do is get that string "str" (which is a VB.NET string) into an AHK variable. How can I do that? Sorry if this is old hat, but this is my first day with AHK/AHK.dll. Thanks in advance. Sub SendAHKeys() Dim ahk As Object Dim str As String = "Here goes...