Webapp.ahk - Make web-based apps with AutoHotkey
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Hey. For whatever reason I didn't understand your example using mywindow at the time. Looking at it now it looks great. Just wanted to say thanks for making this. So useful
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Glad it worked out for you! this is just meant as a place to start.
You may also be interested in looking into neutron.ahk if you ever feel you need more advanced features.
You may also be interested in looking into neutron.ahk if you ever feel you need more advanced features.
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 can't for the life of me make winactivate work on a webapp gui window. can anyone make it popup? would be much appreciated thx
Re: Webapp.ahk - Make web-based apps with AutoHotkey
@mmelon I am assuming you are the same that contacted on my website.
So you mean you want to have your window come to the forefront?
Can you provide the code for when you first create or show the window?
If if still doesn't show, maybe you can we do Always-On-top but we can explore that later if need be.
So you mean you want to have your window come to the forefront?
Can you provide the code for when you first create or show the window?
If if still doesn't show, maybe you can we do Always-On-top but we can explore that later if need be.
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,
So I think it is being invoked with the standard webapp.ahk code
Mike
So I think it is being invoked with the standard webapp.ahk code
Code: Select all
__Webapp_AppStart:
;<< Header End >>
;Get our HTML DOM object
iWebCtrl := getDOM()
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Ahh yes... I see. It's been a while...
Try this?
Try this?
Code: Select all
WinActivate,ahk_id %__Webapp_GuiHwnd%
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
@joedf
thanks that works fine. My problem was I was trying to include it in
where it doesn't work.
I have moved it out of that function and now it works fine. You are brilliant.
Mike
thanks that works fine. My problem was I was trying to include it in
Code: Select all
; Our custom protocol's url event handler
app_call(args) {}
I have moved it out of that function and now it works fine. You are brilliant.
Mike
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Oh! Glad it works now!
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. would it be possible to spawn a conventional ahk gui outside of my webapp? i am trying this
I think either the commands are being swallowed by the default webapp, or maybe a clash with the var wb?
Code: Select all
if(InStr(output,"clipboard")) {
MsgBox rendered HTML is in clipboard
gui,margin,0,0
gui, Add, ActiveX, x0 y0 w499 h1080 vWB, about:<!DOCTYPE html><meta http-equiv="X-UA-Compatible" content="IE=edge">
wb.document.write(templated)
gui, Show, , Preview
}
Re: Webapp.ahk - Make web-based apps with AutoHotkey
I think you might need to call Gui, New before you do any GUI calls in this case...
https://www.autohotkey.com/docs/v1/lib/Gui.htm#New
https://www.autohotkey.com/docs/v1/lib/Gui.htm#New
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
thx i've nearly got it. The problem (again) was where i was trying to do it. I think I am inside a function. It works if I gosub out and back. strange.
Re: Webapp.ahk - Make web-based apps with AutoHotkey
Yes make sure you are not recreating it each time. You likely already understand this, but you should be creating each unique GUI only once, then simply show/hide them.
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]