Search found 136 matches
- 12 Dec 2023, 13:18
- Forum: Scripts and Functions (v1)
- Topic: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)
- Replies: 40
- Views: 19798
Re: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)
Great function. But it doesn't work correctly if Gui, +resize option is added to window. Any idea how to further improve it?
- 30 Nov 2023, 15:13
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thank you so much!
- 30 Nov 2023, 12:36
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Ok, now I see what you mean... like this? Sorry for being slow! html = ( <form> Name1: <input type="text" id="name1" name="name1"><br> Name2: <input type="text" id="name2" name="name2"><br> </form> <script> n1 = document.getElementById("name1") n2 = document.getElementById("name2") n1.addEventListen...
- 30 Nov 2023, 12:22
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
@teadrinker I'm not sure what you mean. The "addEventListener" is listening for the input of name1 and is replicating the value in the name2 while typing so they are always the same. It works well without a form. If the inputs are inside the form then it's not working. Sorry if I'm confusing...
- 30 Nov 2023, 11:47
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
@teadrinker , I know. However, I was trying to find a solution for a whole day today without success - after enclosing the inputs into the <form> the function doesn't work anymore. I admit I have limited html/javascript knowledge. Any tip?
- 30 Nov 2023, 10:24
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
teadrinker or anyone. I tried to combine two things I learned about in this topic. Unfortunately when I enclose the inputs into the <form>, then addEventListener function is not working anymore - error: name1 is undefined. Any idea how to solve this? Thanks. html = ( <form> Name1: <input type="text...
- 06 Nov 2023, 09:11
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Do you mean to move Continue routine out of the Input() function?
- 06 Nov 2023, 08:36
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks teadrinker , you did it again. I think I'm good with html now :) The only thing is that the script is a part of a larger script inside a custom Input() function and there are other functionalities as well - example below. In this case I need to submit the results of the form back to the funct...
- 04 Nov 2023, 13:49
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks garry. However this does not validate the input (name1 is a required field).
Any ideas?
Any ideas?
- 04 Nov 2023, 04:59
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks teadrinker , I'll have to live with that. :) If you allow me another question... In the script below, html submit button submits the form and validates the input. Is it possible to define a ahk button to have the same role without using html submit button? And... how can Submit() function bel...
- 03 Nov 2023, 14:05
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Hello, it's me again :) I tested different form input tags and it generally works. However there are some which cannot be styled properly. For example - <input type="number"> - there are no up/down arrows like in a browser - <input type="range"> - slider looks ugly and very different as in a browser...
- 02 Nov 2023, 14:14
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks for the tip. This works, I hope it's a correct way. html = ( <form id="form"> Name1: <input type="text" name="name1" id="1" ><br> Name2: <input type="text" name="name2" id="2" ><br> Name3: <input type="text" name="name3" id="3" ><br> </form> ) gui, add, ActiveX, w300 h150 vWB, about:<!DOCTYPE...
- 02 Nov 2023, 11:10
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks @teadrinker. Unfortunately I have not enough knowledge to implement this. Any further tip would help...
- 02 Nov 2023, 09:12
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Sorry, I don’t understand what you mean.teadrinker wrote:No corresponding handler?
- 02 Nov 2023, 06:44
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Any idea why is Tab key not working for moving from field to field? Thanks html = ( <form id="form"> Name1: <input type="text" name="name1" id="name1" ><br> Name2: <input type="text" name="name2" id="name2" ><br> Name3: <input type="text" name="name3" id="name3" ><br> </form> ) gui, add, ActiveX, w3...
- 01 Nov 2023, 11:39
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thank you very much
- 31 Oct 2023, 08:52
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks, works great! I may be having many entry fields with different validations. I see in this code I need to create an ahk validation too for each field to prevent closing the window... is there a way to avoid this and only rely on html validation?
- 30 Oct 2023, 15:55
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thanks, corrected and it works now. Any idea about the second question? - I need to add some validation. I added "<form>" tags, "required" attribute and "submit" button but cannot figure out how to connect it with my script - clicking the button should also close the gui window. Or should I somehow ...
- 30 Oct 2023, 11:50
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Thank you so much teadrinker , this is awesome, I've learned a lot. I'm slowly progressing to create a html form. Few more questions. - Is it possible to set the focus on the first field so you can start typing immediately? I tried "autofocus" attribute and "focus" method but it doesn't work. Script...
- 29 Oct 2023, 15:58
- Forum: Ask for Help (v1)
- Topic: HTML Gui - How to retrieve input?
- Replies: 41
- Views: 3119
Re: HTML Gui - How to retrieve input?
Wow, that simple, thanks! And thanks for the links, greatly appreciated!
A small thing: would it be possible to replicate the entry so the same name would appear in both boxes while typing?
A small thing: would it be possible to replicate the entry so the same name would appear in both boxes while typing?