CustomBoxes: a collection of helper functions

Post your working scripts, libraries and tools
wolf_II
Posts: 2446
Joined: 08 Feb 2015, 20:55

Re: CustomBoxes: a collection of helper functions

08 Jan 2019, 12:19

Thx, :D
I was not sure if I would need to think about DPIscale. Thinking hurts :( DPI also hurts :(

edit: i noticed your edit
DPIscale is a problem then, is it a problem for all my CustomBoxes I wonder ... :problem:
I should test, or blindly put in -DPIscale and hope. I am not used to swich back and forth DPI :roll:
wolf_II
Posts: 2446
Joined: 08 Feb 2015, 20:55

Re: CustomBoxes: a collection of helper functions

08 Jan 2019, 12:38

Your latest pic shows the size of browser matches the size of buttons, that's good. :)
I have hard-coded the drawing in javascript, which also seems to work as expected.:D
DRocks
Posts: 400
Joined: 08 May 2018, 10:20

Re: CustomBoxes: a collection of helper functions

08 Jan 2019, 16:24

and this looks like windows 7 rather than windows 10
burque505
Posts: 866
Joined: 22 Jan 2017, 19:37

Re: CustomBoxes: a collection of helper functions

08 Jan 2019, 18:30

@DRocks, @wolf_II, I am indeed using Win7 :)
DRocks
Posts: 400
Joined: 08 May 2018, 10:20

Re: CustomBoxes: a collection of helper functions

08 Jan 2019, 20:43

burque505 wrote:
08 Jan 2019, 18:30
@DRocks, @wolf_II, I am indeed using Win7 :)
yes I thought so and this is why the GUI is looking slightly different. I know cause I was shoked when I saw my win10 script on Win7 with the big blue title bar, I was like dohhh :D
wolf_II
Posts: 2446
Joined: 08 Feb 2015, 20:55

Re: CustomBoxes: a collection of helper functions

12 Jan 2019, 20:42

Try this:
  • No more mass-writing of HTML-code via plugging into Format(Template, ...)
  • Now using static Html, loaded ONCE into the browser.
  • AHK-buttons send clicks to browser buttons.
  • Browser buttons are off-screen (to see them, I used scrolling via Ctrl + Wheel).
  • On my system, resizing is working.
  • Uses a html file and a java-script file
Cube Meshes.ahk
Cube Meshes.html
Cube Meshes.js
burque505
Posts: 866
Joined: 22 Jan 2017, 19:37

Re: CustomBoxes: a collection of helper functions

13 Jan 2019, 08:45

@wolf_II, that's impressive! :bravo:
Everything works for me on Win7 64-bit, AHK_L 1.1.30.01 64-bit, 125% scaling.
Regards,
burque505
wolf_II
Posts: 2446
Joined: 08 Feb 2015, 20:55

Re: CustomBoxes: a collection of helper functions

13 Jan 2019, 19:00

:thumbup: Thx for feedback
wolf_II
Posts: 2446
Joined: 08 Feb 2015, 20:55

Re: CustomBoxes: a collection of helper functions

17 Jan 2019, 21:33

Here is the new member of the family: HtmlBox.ahk
But the magic lies in the test script.
There I use WebBrowser and HTMLWindow2 object.
(using javascript variables and functions from AHK)

HtmlBox.ahk

Here is an example which manipulates the background picture in canvas:
Test.HtmlBox.ahk
HtmlBox.html
JScript.js
burque505
Posts: 866
Joined: 22 Jan 2017, 19:37

Re: CustomBoxes: a collection of helper functions

18 Jan 2019, 09:09

@wolf_II, that's great, thank you! Just for fun, I mangled the test script to show - well - the horizon from horseback? :D
(I changed the file paths in it, "HTML Box.html" is in the same folder as the main script, and my #Include has HTML Box.ahk in the same folder also.
Spoiler
html box.gif
html box.gif (127.19 KiB) Viewed 289 times
PS: I might have to remove this GIF, it's making me dizzy :eh:

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 117 guests