Search found 48 matches

by Stavencross
20 May 2018, 11:18
Forum: Ask For Help
Topic: Opening URL loses focus on browser window
Replies: 5
Views: 100

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. Run, firefox.exe "http://www.google.com/" &
by Stavencross
20 May 2018, 09:44
Forum: Scripts and Functions
Topic: Building a web app GUI with chrome.ahk example
Replies: 0
Views: 150

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
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 2
Views: 57

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
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 98
Views: 10418

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
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 2
Views: 57

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
Topic: [SOLVED] WebApp.Ahk crash on key spam
Replies: 2
Views: 57

[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
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 98
Views: 10418

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
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 174

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
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 240
Views: 64506

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
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 174

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
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 240
Views: 64506

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
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 174

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
Topic: Code cleanup - PowerPoint COM
Replies: 8
Views: 174

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
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 98
Views: 10418

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://googl...
by Stavencross
10 Apr 2018, 06:37
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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 ...
by Stavencross
21 Feb 2018, 11:29
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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

I’d be curious how you’re using PHP and what JavaScript framework you’re using, if any. Sorry about the delayed response here. I use a mixture of php/ahk as my main drivers, I'll list the languages used and how below. PHP runs on page load, it does some INI read/write so I don't have crazy long URL...
by Stavencross
26 Jan 2018, 19:05
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45460

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

Thought I would share what I've been building for the last 5 months. I keep it for myself as....well I won't lie, it makes me look REALLY good at work to be done with most my work within a week when everyone else takes 25 days. I'm an account manager for a website company and I built an app using we...

Go to advanced search