Search found 90 matches

by Stavencross
13 Sep 2018, 10:51
Forum: Ask for Help (v1)
Topic: Capture SendMail event in Outlook COM
Replies: 11
Views: 1931

Capture SendMail event in Outlook COM

I'm trying to figure out how to popup a messagebox when a user clicks Send in an email that was created via outlook COM MessageSubject := "Hello World!" CCAddress := "noreply@noreply.com" ol := ComObjCreate("Outlook.Application") ns := ol.getNamespace("MAPI") ns.logon("","",true,false) newMail := ol...
by Stavencross
28 Jun 2018, 09:09
Forum: Scripts and Functions (v1)
Topic: Remote AHK script execution via Chrome.AHK
Replies: 0
Views: 1382

Remote AHK script execution via Chrome.AHK

Previously, I had posted https://autohotkey.com/boards/viewtopic.php?f=6&t=49331&p=219189#p219189 about creating a webapp with chrome.ahk. Today I wondered "Could I have a page on my webserver that if I visit it from inside my chrome.ahk app, it would allow the server to remotely execute my ahk scri...
by Stavencross
20 May 2018, 11:18
Forum: Ask for Help (v1)
Topic: Opening URL loses focus on browser window
Replies: 5
Views: 1810

Re: Opening URL loses focus on browser window

You're opening the url in the foreground causing it to take focus. Look for a command line switch that opens the Firefox tab in the background.

I did a Google search and found the below, but I'm on mobile and couldn't test.

Code: Select all

 
Run, firefox.exe "http://www.google.com/" &
by Stavencross
20 May 2018, 09:44
Forum: Scripts and Functions (v1)
Topic: Building a web app GUI with chrome.ahk example
Replies: 0
Views: 1832

Building a web app GUI with chrome.ahk example

After talking a lot with GeekDude who made the Chrome.ahk library, I wanted to post a super simple example to show how to use chrome.ahk to build a HTML GUI. This example is extremely simple, and shows how to execute functions based on a javascript callback function. All gratitude should go to Geekd...
by Stavencross
20 May 2018, 08:04
Forum: Ask for Help (v1)
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 3
Views: 1106

Re: WebApp.Ahk crash on key spam

Although I was unable to fix this, I migrated to using geekdudes Chrome.ahk to run my webapp, and the issue isn't present.
by Stavencross
18 May 2018, 12:59
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 455129

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

To start chrome without all the UI buttons, instantiate the class like this
ChromeInst := new Chrome("ChromeProfile", "--app=https://autohotkey.com/")
by Stavencross
18 May 2018, 11:36
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159259

Re: [GUI] Use HTML and CSS for your GUIs!

Awesome :+1: Some of the functions I use pop up a message box that pauses the script while a user works in PowerPoint. However, it seems that webapp.ahk will be looping in the background, once it gets to 5 million loops, internet explorer pops a message box complaining about an unresponsive script ...
by Stavencross
18 May 2018, 11:21
Forum: Ask for Help (v1)
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 3
Views: 1106

Re: WebApp.Ahk crash on key spam

I tried to add a text-area to the AHK installer that I remember webapp.ahk was based on, I am still able to reproduce the error there =/.
by Stavencross
18 May 2018, 11:11
Forum: Ask for Help (v1)
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 3
Views: 1106

[SOLVED] WebApp.Ahk crash on key spam

I'm using Joedf's webApp.ahk library to run an HTML GUI for my AHK app. When trying to type into a HTML textbox/text area, if there are to many keys typed to quickly, autohotkey will experience a fatal error, it will almost completely freeze the entire system. Faulting application name: Eclipse.exe,...
by Stavencross
18 May 2018, 05:47
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159259

Re: [GUI] Use HTML and CSS for your GUIs!

Awesome :+1: Some of the functions I use pop up a message box that pauses the script while a user works in PowerPoint. However, it seems that webapp.ahk will be looping in the background, once it gets to 5 million loops, internet explorer pops a message box complaining about an unresponsive script ...
by Stavencross
16 May 2018, 05:28
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 455129

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Stavencross Really been digging in to this Lib, its so helpful! Just want to see if ya'll have a better way on how to scrape the JSON I've been grabbing from these pages. Here is my code: *snip* If you check jsonGrabber(), you'll see I'm grabbing the JSON from the page DOM. I grab the innerHTML of ...
by Stavencross
16 May 2018, 05:17
Forum: Ask for Help (v1)
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 2522

Re: Code cleanup - PowerPoint COM

nnnik wrote:
Stavencross wrote:
copy-pasta segments indicate possible candidate for extract method
What?
He means that if you repeat specific code almost like it is copy pasted you should put it in a seperate function.
Ah!

Thank you for the insight!
by Stavencross
13 May 2018, 10:57
Forum: Scripts and Functions (v1)
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 391
Views: 244511

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

kczx3 wrote:Very cool. You couldn’t consume the API with just JavaScript XMLHttpRequest calls?
I could, but the Salesforce team wouldn't give me curl access, and the php Api comes pre-built so it was a lot easier than trying to screw with it.
by Stavencross
12 May 2018, 17:33
Forum: Ask for Help (v1)
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 2522

Re: Code cleanup - PowerPoint COM

besides what kzxc3 has already mentioned: do away with vars such as firstReplacement , thats a clear indicator that u need some kind of a data structure however simple it may be. use an array instead Ok, so I need to create an array, good suggestion! stuff those message boxes and long ass strings s...
by Stavencross
12 May 2018, 17:30
Forum: Scripts and Functions (v1)
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 391
Views: 244511

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

https://gph.is/2IdGhMk Here's a GIF of my GUI, I just redesigned the whole app over the last couple days. I use joedf's webapp.ahk to build it in HTML/CSS/JS/jQuery. I drive it with a mixture of AHK and PHP (it comes bundled with a stripped down version of zwamp), the PHP is to allow me to consume ...
by Stavencross
12 May 2018, 16:14
Forum: Ask for Help (v1)
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 2522

Re: Code cleanup - PowerPoint COM

Yes, right now it's all one function, that's kind of what I'm looking for, what parts of this could be broken up into additional functions? Why shouldn't I use compound if statements? This refactorization is the precurser to a full blown app rewrite where I do a lot more notifications via javascript...
by Stavencross
12 May 2018, 13:08
Forum: Ask for Help (v1)
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 2522

Code cleanup - PowerPoint COM

Good afternoon! I've been working on this massive script for about 7 months now, and I'm refactoring all my code to be better/more elegant. I was hoping I could get some smarter people than I to take a look at my below function and help me understand how to write it better. The point of the script i...
by Stavencross
12 May 2018, 09:36
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159259

Re: [GUI] Use HTML and CSS for your GUIs!

I'm curious if you've done anything else with webapp.ahk in the last 6-7 months or if there's been an update to it or anything
by Stavencross
05 May 2018, 09:54
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 455129

grabbing JSON from page

Really been digging in to this Lib, its so helpful! Just want to see if ya'll have a better way on how to scrape the JSON I've been grabbing from these pages. Here is my code: url := reportURL("campaignSpend",ServiceId) ChromeInst := new Chrome("ChromeProfile", "http://google.com" ,"--headless") Pag...
by Stavencross
10 Apr 2018, 06:37
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159259

Re: [GUI] Use HTML and CSS for your GUIs!

Oh I see it now, maybe it was a load issue... Very nice work! :+1: So I had an interesting thought. Do you think it would possible to have a web page on a webserver with the js to run an AHK function written in that would interact with the local computer? For instance I go to a page on the web and ...

Go to advanced search