x64: scripting command html seems to not work anymore (correctly)

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
autocart
Posts: 1388
Joined: 26 Sep 2013 15:22

x64: scripting command html seems to not work anymore (correctly)

Post by autocart »

This line of script worked fine in the 32 bit version:
html("https://www.xyplorer.com/xyfc/viewtopic.php?f=1&t=4&sd=d",1600,1000);

In the x64 version the view window pops but does not show the website. Instead in only shows black space. see image.
To see the attached files, you need to log into the forum.

autocart
Posts: 1388
Joined: 26 Sep 2013 15:22

Re: x64: scripting command html seems to not work anymore (correctly)

Post by autocart »

Update:
The previous bug report was based on version 28.00.000.

Now, with the latest beta 28.00.0003, it xy pops an error message instead:
Error: 91 (0x0000005B)
Desc: Automation error
Dll: 0
Proc: script_EvalFunction: html

Source:
XY ver: XYplorer 28.00.0003 (64-bit) - Lifetime License Enterprise
OS: Windows 11 Enterprise, 64-bit, ...
Locale: 1031 (de-DE)
ANSI: 1252, ACP: 1252 (ANSI - Lateinisch I)
Font: Segoe UI 12.75, Segoe UI 12, DBCS: No
DPI: 96 (100%), 1920x1080

Date: 2025-09-26 09:15:39

Besides the new beta version, I had also adapted the html string a little bit. New web address:
html("viewtopic.php?f=1&t=28739&sd=d",1600,1000);
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »


kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

admin wrote: 26 Sep 2025 09:59 Yep, known issue. See https://www.xyplorer.com/faq.php#up64
Is there likely to be a fix for this at some point? Or something else we can use?
Windows 10 Pro 22H2

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: x64: scripting command html seems to not work anymore (correctly)

Post by highend »

One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »

Fixed in next beta.

kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

admin wrote: 07 Aug 2026 11:29 Fixed in next beta.
Thanks, Don, it's working now, although I have found an issue.

I only have one script that I use with HTML. It's a find and replace script. It has two input fields - the string to find and the replacement - a Replace button and the HTML dialog Close button. I find now that tab ordering doesn't work properly. The string field is the focused field when running the script. I would usually enter the string, press tab to move to the replacement field, enter the replacement, press the Replace button (or Enter on my keyboard) and the replacement is done. Now when I tab out of the string field, the focus goes straight to the Close button and will not move from there.

If I run the script and place the cursor into the replacement field and press tab, it goes to the Replace button, then to the Close button and will not move from there.

If I run the script and place the cursor into the replacement field, then place the cursor back into the string field, and press tab, it goes to the replacement field, then the Replace button, then to the Close button and will not move from there.

2026-08-08_145332.png
To see the attached files, you need to log into the forum.
Windows 10 Pro 22H2

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »

Can you show the script?

kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

admin wrote: 08 Aug 2026 08:46 Can you show the script?
Oh geez, sorry. I meant to include but quite clearly I forgot 🤦‍♀️

Code: Select all

   end(getinfo("CountSelected") < 1), "Nothing selected!";
   $html = urldecode(html('
	   <html>
		   <body style="font-family:arial;">
			   <form method="get" action="xys:">
				   Replace this: <input type="text" name="NameFieldONE" size="60" value=""><BR>
				   With this: &nbsp;&nbsp; &nbsp; <input type="text" name="NameFieldTWO" size="60" value="">  <BR>
				   <p align="left"><input  type="submit" name="ReplaceButton" value="  Replace  " ></p>   
			   </form>
				<script language="javascript" type="text/javascript">
					document.getElementById("NameFieldONE").focus();
				</script>
		   </body>
		</html>',"700", "350", "Replace With"));

   $result = replace(regexreplace($html, "\?NameFieldONE=|&ReplaceButton=\s+Replace\s+", ""), "&NameFieldTWO=", ":");
   
   $replacethis = gettoken($result, "1", ":");    
   $withthis = gettoken($result, "2", ":");   
   
   rename s, "$replacethis/$withthis";
Windows 10 Pro 22H2

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »

Confirmed. Tried several things but failed. Looks like we have to wait for the others. :)

kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

admin wrote: 08 Aug 2026 10:45 Confirmed. Tried several things but failed. Looks like we have to wait for the others. :)
Thanks for checking it out. Fingers crossed we don't have to wait too long 🤞
Windows 10 Pro 22H2

kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

Hi Don, I realise this might be another "Looks like we have to wait for the others" situation but I just upgraded to v28.30.1904 and when I ran the html code I showed you, it looks like this:

2026-08-22_162106.png
To see the attached files, you need to log into the forum.
Windows 10 Pro 22H2

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »

Yes, fixed in next beta. :tup:

kiwichick
Posts: 701
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: x64: scripting command html seems to not work anymore (correctly)

Post by kiwichick »

admin wrote: 22 Aug 2026 13:52 Yes, fixed in next beta. :tup:
Thanks, Don. Something else that is now not working but also may be a "wait for the others" thing but the focus command isn't working. When I run the script, the field that has the the focus command isn't focused.

Code: Select all

document.getElementById("NameFieldONE").focus();
Windows 10 Pro 22H2

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64: scripting command html seems to not work anymore (correctly)

Post by admin »

Should be fixed in next beta.

Post Reply