Search found 82 matches
- 06 Jan 2020, 11:11
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
I created a mixed JS/AHK script that you can use to confirm from the browser that you're still connected to autohotkey, and inform your users if not (so they don't get confused when things stop working. Let me know if ya'll have suggestions on how to make this better! JAVASCRIPT/JQuery var interval ...
- 05 Jan 2020, 11:49
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
After fruther, in depth review, my previous post was wrong. I discovered that I was creating several instances of the pageInst, each with their own keep alive timers. After creating a couple of them, chromeInst would die. Within EACH function that you want to Call/Evaluate against the page, you MUST...
- 04 Jan 2020, 18:53
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Thanks to Tre4shunter for helping out with this! Discovered that somehow, the PageInst is loosing its reference, so we add reconnectToPage() with each callback to ensure it doesn't die. This should help solve the endless sleeps on response. (again it was because you couldn't connect to the page and ...
- 04 Jan 2020, 16:11
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Consider the following: HTML PAGE <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <button onclick="console.log('AHK:getState')" id="TEST">TEST ME</button> </body> </html> AUTOHOTKEY SCRIPT #Persistent #include Chrome.ahk FileCreateDir, ChromeProfile...
- 02 Jan 2020, 13:26
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
I have actually run into that - but to be honest I'm not 100% certain what i actually did to overcome it. I make sure i trigger PageInst.WaitForLoad() after doing any sort of javascript eval which modifies the page, etc - and have the interval set to 100(Not sure if i changed it from what it is ori...
- 02 Jan 2020, 12:13
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Hey @Stavencross, I have no problem showing you, but there are just quite a few pieces to it. Here is the main Script. Obviously, i wrote alot of CSS/HTML for it as well. The ahk is really just displaying my HTML/CSS and using Chrome.ahk to display and attach to it so i can 'Control' Everything wit...
- 21 Dec 2019, 12:15
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
A project ive been working on which is fully built around Geekdudes Chrome.ahk Class. Its amazing! The interface is fully designed with HTML/CSS/Javascript. I use AHK to tie in Excel - where the data is populated from, as well as other resources like internal databases, config files, and do things ...
- 02 Sep 2019, 08:10
- Forum: Scripts and Functions
- Topic: read CSV to Associative Array
- Replies: 3
- Views: 1769
Re: read CSV to Associative Array
Yes, I use that as well! However, I use it for a few other things, in this specific instance I needed exactly to read a csv into a assoc array to work with it, and I thought others might benifit in the future =)
- 21 Aug 2019, 15:58
- Forum: Scripts and Functions
- Topic: read CSV to Associative Array
- Replies: 3
- Views: 1769
read CSV to Associative Array
Needed to read a bunch of info from a CSV to an assoc. array. Found https://www.autohotkey.com/boards/viewtopic.php?t=5251 but it didn't handle commas very well so I updated it and reposted it. ;CSVtoDict(file) takes a csv and outputs a dictionary. Took ages as i didn't understand that array.Insert(...
- 31 May 2019, 14:37
- Forum: Scripts and Functions
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
- Replies: 367
- Views: 158453
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Today I figured out how to exit the script when you exit the browser, useful for running cleanup functions, or if you wanted to run another script when you close the browser. See below. This also shows you how to run chrome.ahk with callbacks & in app mode. It also shows you how you can call AHK fun...
- 31 May 2019, 14:24
- Forum: Ask For Help
- Topic: ChromeInst.GetPage seems to be failing (Chrome.ahk)
- Replies: 12
- Views: 2007
Re: ChromeInst.GetPage seems to be failing (Chrome.ahk)
Hello! I am trying to use g33kDude's Chrome.ahk library and I can't seem to instantize the page. Here is my code: #Persistent #SingleInstance, force #NoEnv SetBatchLines, -1 SetTitleMatchMode, 2 SetWorkingDir, %A_ScriptDir% #Include Chrome.ahk SetTimer, createChromeObj, 1000 SetTimer, waitForClose,...
- 09 May 2019, 07:03
- Forum: Ask For Help
- Topic: Goto meeting automation
- Replies: 14
- Views: 1425
Re: Goto meeting automation
You need to describe a little better what you want help with. (is "goto meeting" a program or...) Is the invite on the computer or on internet or.. Do you want to make a AHK-script to write an email and send it automatically? Gotomeeting is a video conferencing system. When you install, you can cli...
- 09 May 2019, 06:15
- Forum: Ask For Help
- Topic: Goto meeting automation
- Replies: 14
- Views: 1425
Goto meeting automation
I've been trying to figure out how to automate some functionality from goto meeting, but I haven't seen anything in my searches so I thought I'd ask around. Does anyone know of any script examples that use AHK to start a meeting, or collect the invite and are able to generate the email invite from g...
- 27 Mar 2019, 10:18
- Forum: Ask For Help
- Topic: Accessing Word COM events from within a function Topic is solved
- Replies: 3
- Views: 663
Re: Accessing Word COM events from within a function Topic is solved
In your function, the variable '"wdApp" is cleared as soon as the function returns. You need to save that reference somewhere. You could return it from the function. Or if you are only going to have one instance of word open then you can just make wdApp static so that it will keep its contents afte...
- 27 Mar 2019, 08:46
- Forum: Ask For Help
- Topic: Navigating drop down menus
- Replies: 1
- Views: 375
Re: Navigating drop down menus
I am attempting to create a simple script for work that fills out SalesForce cases. As seen in the attachment, I'm able to get the text boxes filled out, but cannot seem to work a command that completes the "category" and "status" drop down menus. I've tried {Down} arrow and {Enter} commands, but w...
- 27 Mar 2019, 08:27
- Forum: Ask For Help
- Topic: Accessing Word COM events from within a function Topic is solved
- Replies: 3
- Views: 663
Re: Accessing Word COM events from within a function Topic is solved
Thank you, in advance, for any assistance that can be offered!
- 27 Mar 2019, 08:27
- Forum: Ask For Help
- Topic: Accessing Word COM events from within a function Topic is solved
- Replies: 3
- Views: 663
Accessing Word COM events from within a function Topic is solved
Good morning. Yesterday I was finally able to figure out how to access COM events connected to a word document. However, when I wrap the code into a function, the events don't seem to trigger any more. I'd like to be able to make the first codeblock work correctly and create an event listener from w...
- 27 Mar 2019, 08:18
- Forum: Ask For Help
- Topic: Word COM on Close event capture Topic is solved
- Replies: 6
- Views: 1043
Re: Word COM on Close event capture Topic is solved
1. beg a question 2. get an answer code from someone else 3. check its own comment as an answer 4. conveniently not using the basic word ' thanks ' Brilliant !!! Apologies, I had written a response with a thank you in it and forgot to click submit on my way to a meeting. Thank you very much for you...
- 26 Mar 2019, 11:27
- Forum: Ask For Help
- Topic: Word COM on Close event capture Topic is solved
- Replies: 6
- Views: 1043
Re: Word COM on Close event capture Topic is solved
I was able to take part of the replies to make the following: #Persistent wdApp := ComObjCreate("Word.Application") ;create a word app wdApp.Visible := true oConnect := ComObjConnect(wdApp,"wd_") ;connect to events wdApp.Documents.Add() ;add a new document wd_NewDocument(Doc,App) { ;when creating a ...
- 26 Mar 2019, 07:09
- Forum: Ask For Help
- Topic: Word COM on Close event capture Topic is solved
- Replies: 6
- Views: 1043
Word COM on Close event capture Topic is solved
I'm trying to pop up a message box when the word app is closed, but I can't seem to figure out what the event is named. If possible, I'd also like to figure out how to pop up a message box when the doc has been saved. wdApp := ComObjCreate("Word.Application") ;create a word app wdApp.Visible := true...