@Capn Odin
Lol, nice one
Webapp.ahk - Make web-based apps with AutoHotkey
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hello Joedf,
thank you for the additional build.
I have been playing about with it and all i can report at the moment is - when I move the links to the top of the page - it seems to work.
Something about where the Go To index links position on the page was made a difference.
Don't know if any of this makes sense - but i'll update should i fall into difficulty.
I do like the web app idea as i can use html and css to make colorful GUI's and buttons - im not very good with the normal ahk GUI's as they seem very complex to program.
And ive seen some very impressive and advanced GUI's but thet get broken when i change the wrong things
cheers
dan
thank you for the additional build.
I have been playing about with it and all i can report at the moment is - when I move the links to the top of the page - it seems to work.
Something about where the Go To index links position on the page was made a difference.
Don't know if any of this makes sense - but i'll update should i fall into difficulty.
I do like the web app idea as i can use html and css to make colorful GUI's and buttons - im not very good with the normal ahk GUI's as they seem very complex to program.
And ive seen some very impressive and advanced GUI's but thet get broken when i change the wrong things
cheers
dan
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hmm weird... Don't worry, it was meant to help people just like you
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hey Joedf, this is pretty awesome.
One question though...any good way to stop that awful clicking coming from the web browser control?
One question though...any good way to stop that awful clicking coming from the web browser control?
Re: Webapp.ahk - Make web-based apps with AutoHotkey
I know... I wanted to find a way to fix that. I haven't found much... just some overly complicated docs....
If you do find something, definitely share it here. I'll integrate it.
However, you can manually turn it off here: http://thebackroomtech.com/2009/01/29/h ... -explorer/
If you do find something, definitely share it here. I'll integrate it.
However, you can manually turn it off here: http://thebackroomtech.com/2009/01/29/h ... -explorer/
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Voila!
Make the DllCall after creation of __WebApp_ COM object.
Make the DllCall after creation of __WebApp_ COM object.
Code: Select all
DllCall("urlmon\CoInternetSetFeatureEnabled"
,"Int", 21 ; FEATURE_DISABLE_NAVIGATION_SOUNDS
,"UInt", 0x00000002 ; SET_FEATURE_ON_PROCESS
,"Int", 1)
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Wow thanks!
I think I actually tried that, but I must have put it before the com object :p
commit: 76ed286
I think I actually tried that, but I must have put it before the com object :p
commit: 76ed286
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Pretty dope, but I realised 'display: *;' doesn't work
Re: Webapp.ahk - Make web-based apps with AutoHotkey
what? what is that supposed to do?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
am i missing a way to eval() some code in the context of the gui/webpage? e.g wb.eval("alert('test');")
Re: Webapp.ahk - Make web-based apps with AutoHotkey
There's no need to use eval. What are you trying to achieve?
If you want to make a js alert message, see this example:
https://github.com/joedf/Webapp.ahk/blob/master/src/page2.html
If you want a message box with AHK, you can do something like:
<a href="#" onclick="AHK('Hello')">Show MsgBox</a> in the HTML file, and
in the ahk file.
Hope this helps
If you want to make a js alert message, see this example:
https://github.com/joedf/Webapp.ahk/blob/master/src/page2.html
If you want a message box with AHK, you can do something like:
<a href="#" onclick="AHK('Hello')">Show MsgBox</a> in the HTML file, and
Code: Select all
Hello() {
MsgBox Hello from AHK :D
}
Hope this helps
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hi,
I wanted to execute JQuery in the UI from AHK events. I thought there would be a way to do execute js in the page from autohotkey. I am currently doing it like this, but i'm sure there is a neater way:
I wanted to execute JQuery in the UI from AHK events. I thought there would be a way to do execute js in the page from autohotkey. I am currently doing it like this, but i'm sure there is a neater way:
Code: Select all
if(buttonsActive == 0) {
wb.Document.getElementById("scriptHolder").setAttribute("onClick","$('.status').html('on');$('.status').removeClass('inactive').addClass('active')")
wb.Document.getElementById("scriptHolder").click()
buttonsActive:=1
} else {
wb.Document.getElementById("scriptHolder").setAttribute("onClick","$('.status').html('off');$('.status').removeClass('active').addClass('inactive')")
wb.Document.getElementById("scriptHolder").click()
buttonsActive:=0
}
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Ahh I see, interesting.
After a little of tinkering, I got this for you. Seems to work pretty well
Say you have a javascript function you want to call (in your case, jQuery):
You can call that function from AHK like so
I presume you could execute jQuery functions using a similar approach.
After a little of tinkering, I got this for you. Seems to work pretty well
Say you have a javascript function you want to call (in your case, jQuery):
Code: Select all
myFunction = function(){
return 13245;
}
Code: Select all
GetSecret() {
window := getWindow() ; built-in function from Webapp.ahk
MsgBox % window.myFunction() ;should display a MsgBox with the return result.
}
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
TBH, I've no clue what this (obviously amazing) tool is about?? Am I'm right, that it would be possible to build an AHK Online Editor with that, eg. based on G33kDude's AHK CodeQuickTester?
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
-
- Posts: 90
- Joined: 22 Jul 2016, 16:28
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hi! I didn't understand what this script is supposed to do.. The purpose is to make guis using html and css? Or to make an app based on a existing website?
Re: Webapp.ahk - Make web-based apps with AutoHotkey
@BNOLI
@leosouza85
This was made in order to facilitate making scripts with html/js UIs. This is the related tutorial:
https://www.autohotkey.com/boards/viewtopic.php?f=7&t=4588
@leosouza85
This was made in order to facilitate making scripts with html/js UIs. This is the related tutorial:
https://www.autohotkey.com/boards/viewtopic.php?f=7&t=4588
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Webapp.ahk - Make web-based apps with AutoHotkey
I guess I've stumbled over some awesome stuff again. Thx for your kind advise
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
Re: Webapp.ahk - Make web-based apps with AutoHotkey
this might be a bit of a #UselessFactOfTheDay, but this works on linux/wine! i just said i'd try it out for shits n giggles and was very surprised it worked considering it uses ComObj (any of the other Com stuff ive tried hasnt worked so far).
the only thing i had to change in example.ahk was full path to the #Include Webapp.ahk, and change the zoomLevel since the text was really big.
this is a great bit of work anyway. its nice seeing a scroll bar for a change as well
the only thing i had to change in example.ahk was full path to the #Include Webapp.ahk, and change the zoomLevel since the text was really big.
this is a great bit of work anyway. its nice seeing a scroll bar for a change as well
Re: Webapp.ahk - Make web-based apps with AutoHotkey
@davebrny
Wow! neat! Thanks for letting me know
Wow! neat! Thanks for letting me know
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: guest3456, KruschenZ, william_ahk and 133 guests