[GUI] Use HTML and CSS for your GUIs!

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [GUI] Use HTML and CSS for your GUIs!

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

Post by joedf » 21 Sep 2018, 19:52

Good to know! :+1:

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

Post by Stavencross » 21 Sep 2018, 09:04

Yes Kczx3 was correct. Yesterday I redesigned the whole 1000 line function to utilize a GUI instead for control instead of messagebox. that fixed everything

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

Post by joedf » 19 May 2018, 11:23

ahh yes.. thanks for the clarification.

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

Post by kczx3 » 19 May 2018, 09:54

Has nothing to do with loops. He is probably calling an AHK function from JS which is opening the MsgBox. The JS is in a hold State because the MsgBox is modal and pauses JS execution. This happens with the software that I support where IE is used inside a C# application.

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

Post by joedf » 19 May 2018, 08:26

That’s weird... I don’t know of any loops on webapp.ahk ... :think:

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

Post by Stavencross » 18 May 2018, 11:36

kczx3 wrote:
Stavencross wrote:
joedf wrote: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 and asking if I want to close it.

Is there anything I can do about this?

I'm trying to refractor my code to do away with these message boxes, but I wanted to see if you had any insight as a temp fix

https://support.microsoft.com/en-us/hel ... orer-to-ru



Yes, that seems to be what's happening for sure. I asked in discord and I'll time out the message box to fix

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

Post by kczx3 » 18 May 2018, 08:30

Stavencross wrote:
joedf wrote: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 and asking if I want to close it.

Is there anything I can do about this?

I'm trying to refractor my code to do away with these message boxes, but I wanted to see if you had any insight as a temp fix

https://support.microsoft.com/en-us/hel ... orer-to-ru

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

Post by Stavencross » 18 May 2018, 05:47

joedf wrote: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 and asking if I want to close it.

Is there anything I can do about this?

I'm trying to refractor my code to do away with these message boxes, but I wanted to see if you had any insight as a temp fix

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

Post by Stavencross » 12 May 2018, 09:36

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

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

Post by joedf » 11 Apr 2018, 17:44

Awesome :+1:

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

Post by GeekDude » 10 Apr 2018, 12:40

My socket library also ships with a super bare-bones HTTP server implementation that you could extend.

https://github.com/G33kDude/Socket.ahk/ ... Server.ahk

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

Post by joedf » 10 Apr 2018, 08:08

You could try Sparrow-ahk (https://github.com/ahkscript/awesome-Au ... networking)
or something that is more up to date: AHKhttp (https://github.com/ahkscript/awesome-Au ... networking)

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

Post by Stavencross » 10 Apr 2018, 06:37

joedf wrote: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 AHK opens notepad on my local machine? I don't see how it would be different than opening said web page locally on my computer, as long as I have your webapp.ahk on my computer right?

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

Post by joedf » 12 Mar 2018, 21:12

Oh I see it now, maybe it was a load issue... Very nice work! :+1:

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

Post by jeeswg » 12 Mar 2018, 14:28

By quoting the post, you can find the original link:
https://www.dropbox.com/s/kgyva6i5k3g4v6d/11_03_18_08_09_14.png?dl=1

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

Post by Gicu » 12 Mar 2018, 08:51

do you mean the screenshot in the post?

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

Post by joedf » 12 Mar 2018, 08:27

Seems fancy :+1: but sadly I can’t see the image... :(

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

Post by Gicu » 11 Mar 2018, 02:31

Thank you joedf!

I'm trying to log very long script steps...

Image

Code: [Select all] [Expand]GeSHi © Codebox Plus



Code: [Select all] [Expand]GeSHi © Codebox Plus

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

Post by joedf » 08 Mar 2018, 21:59

Eitherway, nice work! :+1:

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

Post by Stavencross » 21 Feb 2018, 11:29

kczx3 wrote: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 strings, but mostly I use PHP to:
1. Provide context sensitive links
a. If I've built my monthly presentation for client X then it shows a link to pop up the PDF. If I haven't built the presentation, it runs a function that auto-builds said presentation in powerpoint via COM interface.
b. It checks the status of my monthly "client review" case in salesforce and offers me an option to only open the case in salesforce, or to open the case in salesforce + 3 other links, depending upon its' status
2. Consume SalesForce & other APIs
a. Because my SalesForce team won't give me the access to cURL the SalesForce API, I found a pre-built interface for PHP that hits the SOAP API, so I had to build in PHP to use it.

SOQL is used to request information from SalesForce via the SOAP API, it's similar to SQL, but is their own dialect.

JavaScript passes information to AHK, calls AHK functions. I also use it in a few key places for table sorting.

AHK handles all navigation requests, and any/all input required - although I finally figured out what was causing my previous crashing issue, AHK guis/input boxes are still faster than drawing them on the app's page during the page load event.

HTML/CSS used as the basic building blocks

Hit me up via PM if you want to see a video demo I made - We were going to roll it out to the rest of our team but decided not to.

Top