WinPenPack's X-Launcher updated

If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.
Message
Author
User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update?

#46 Post by sl23 »

Also, I got this reply on AutoIT forum:
On 6/1/2024 at 11:52 PM, argumentum said: wrote:
On 6/1/2024 at 9:44 PM, sl23 said: wrote: X-Launcher_1.5.5_x64_sources.zip
That:
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_UseX64=Y ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N
#AutoIt3Wrapper_Version=P ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
is for version 3.2.12.1 of AutoIt.
Hence the error on "While @InetGetActive"

That is as far as am going to dig into it. I hope this helps.
... er, not really! :lol:
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update?

#47 Post by sl23 »

Note that I opened SciTE and performed a syntax check to get those errors mentioned on the AutoIT forum. These checks were made on the original source code v1.5.4 supplied on WinPenPack site.

I have just performed the same checks on all files used for my version of X-Launcherx64 listed on page 3 of this topic. These files in the folder _x-launcher had errors:

x-launcher.au3 - 1 error, 0 warnings:

Code: Select all

(420,30) : error: _DefaultInstall(): undefined function.
	_DefaultInstall($Temp, $Lang)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
x-registry.au3 - 12 errors, 13 warnings:

Code: Select all

(506,39) : warning: $Root: possibly used before declaration.
	Func _FullPath($string, $sBase = $Root)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(684,28) : warning: $sJGAppName: possibly used before declaration.
	TraySetToolTip($sJGAppName)
	~~~~~~~~~~~~~~~~~~~~~~~~~~^
(711,62) : warning: $aMessage: possibly used before declaration.
	$iMsgBoxAnswer = MsgBox(49, $AppName, $aMessage[2][$iLang])
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(713,23) : warning: $sJavaURL: possibly used before declaration.
	_Download($sJavaURL,
	~~~~~~~~~~~~~~~~~~~^
(736,20) : warning: $sJBak: possibly used before declaration.
	_JavaBackup($sJBak)
	~~~~~~~~~~~~~~~~~~^
(748,40) : warning: $sJGUnpackDir: possibly used before declaration.
	Local $sJGUDir ='".\' & $sJGUnpackDir &
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1645,37) : warning: $TempLog: possibly used before declaration.
	$_statusfirstrun = IniRead($TempLog,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1650,15) : warning: $Lang: possibly used before declaration.
	Case $Lang =
	~~~~~~~~~~~^
(1655,25) : warning: $ScriptName: possibly used before declaration.
	MsgBox(48, $ScriptName,
	~~~~~~~~~~~~~~~~~~~~~~^
(1659,17) : warning: $Temp: possibly used before declaration.
	DirCreate($Temp)
	~~~~~~~~~~~~~~~^
(1662,50) : warning: $ScriptIni: possibly used before declaration.
	$_firstrunoperations = IniReadSection($ScriptIni,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1811,17) : warning: $Debug: possibly used before declaration.
	If Not ($Debug =
	~~~~~~~~~~~~~~~^
(259,38) : warning: $GlobalConfig: possibly used before declaration.
	$sRegManager = IniRead($GlobalConfig,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(506,39) : error: $Root: undeclared global variable.
	Func _FullPath($string, $sBase = $Root)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(684,28) : error: $sJGAppName: undeclared global variable.
	TraySetToolTip($sJGAppName)
	~~~~~~~~~~~~~~~~~~~~~~~~~~^
(711,62) : error: $aMessage: undeclared global variable.
	$iMsgBoxAnswer = MsgBox(49, $AppName, $aMessage[2][$iLang])
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(713,23) : error: $sJavaURL: undeclared global variable.
	_Download($sJavaURL,
	~~~~~~~~~~~~~~~~~~~^
(736,20) : error: $sJBak: undeclared global variable.
	_JavaBackup($sJBak)
	~~~~~~~~~~~~~~~~~~^
(748,40) : error: $sJGUnpackDir: undeclared global variable.
	Local $sJGUDir ='".\' & $sJGUnpackDir &
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1645,37) : error: $TempLog: undeclared global variable.
	$_statusfirstrun = IniRead($TempLog,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1650,15) : error: $Lang: undeclared global variable.
	Case $Lang =
	~~~~~~~~~~~^
(1655,25) : error: $ScriptName: undeclared global variable.
	MsgBox(48, $ScriptName,
	~~~~~~~~~~~~~~~~~~~~~~^
(1659,17) : error: $Temp: undeclared global variable.
	DirCreate($Temp)
	~~~~~~~~~~~~~~~^
(1662,50) : error: $ScriptIni: undeclared global variable.
	$_firstrunoperations = IniReadSection($ScriptIni,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(259,38) : error: $GlobalConfig: undeclared global variable.
	$sRegManager = IniRead($GlobalConfig,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
x-udf.au3 - 11 errors, 12 warnings:

Code: Select all

(506,39) : warning: $Root: possibly used before declaration.
	Func _FullPath($string, $sBase = $Root)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(684,28) : warning: $sJGAppName: possibly used before declaration.
	TraySetToolTip($sJGAppName)
	~~~~~~~~~~~~~~~~~~~~~~~~~~^
(711,62) : warning: $aMessage: possibly used before declaration.
	$iMsgBoxAnswer = MsgBox(49, $AppName, $aMessage[2][$iLang])
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(713,23) : warning: $sJavaURL: possibly used before declaration.
	_Download($sJavaURL,
	~~~~~~~~~~~~~~~~~~~^
(736,20) : warning: $sJBak: possibly used before declaration.
	_JavaBackup($sJBak)
	~~~~~~~~~~~~~~~~~~^
(748,40) : warning: $sJGUnpackDir: possibly used before declaration.
	Local $sJGUDir ='".\' & $sJGUnpackDir &
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1645,37) : warning: $TempLog: possibly used before declaration.
	$_statusfirstrun = IniRead($TempLog,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1650,15) : warning: $Lang: possibly used before declaration.
	Case $Lang =
	~~~~~~~~~~~^
(1655,25) : warning: $ScriptName: possibly used before declaration.
	MsgBox(48, $ScriptName,
	~~~~~~~~~~~~~~~~~~~~~~^
(1659,17) : warning: $Temp: possibly used before declaration.
	DirCreate($Temp)
	~~~~~~~~~~~~~~~^
(1662,50) : warning: $ScriptIni: possibly used before declaration.
	$_firstrunoperations = IniReadSection($ScriptIni,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1811,17) : warning: $Debug: possibly used before declaration.
	If Not ($Debug =
	~~~~~~~~~~~~~~~^
(506,39) : error: $Root: undeclared global variable.
	Func _FullPath($string, $sBase = $Root)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(684,28) : error: $sJGAppName: undeclared global variable.
	TraySetToolTip($sJGAppName)
	~~~~~~~~~~~~~~~~~~~~~~~~~~^
(711,62) : error: $aMessage: undeclared global variable.
	$iMsgBoxAnswer = MsgBox(49, $AppName, $aMessage[2][$iLang])
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(713,23) : error: $sJavaURL: undeclared global variable.
	_Download($sJavaURL,
	~~~~~~~~~~~~~~~~~~~^
(736,20) : error: $sJBak: undeclared global variable.
	_JavaBackup($sJBak)
	~~~~~~~~~~~~~~~~~~^
(748,40) : error: $sJGUnpackDir: undeclared global variable.
	Local $sJGUDir ='".\' & $sJGUnpackDir &
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1645,37) : error: $TempLog: undeclared global variable.
	$_statusfirstrun = IniRead($TempLog,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(1650,15) : error: $Lang: undeclared global variable.
	Case $Lang =
	~~~~~~~~~~~^
(1655,25) : error: $ScriptName: undeclared global variable.
	MsgBox(48, $ScriptName,
	~~~~~~~~~~~~~~~~~~~~~~^
(1659,17) : error: $Temp: undeclared global variable.
	DirCreate($Temp)
	~~~~~~~~~~~~~~~^
(1662,50) : error: $ScriptIni: undeclared global variable.
	$_firstrunoperations = IniReadSection($ScriptIni,
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
This may be caused by compiling with a newer version of AutoIT? But isn't backwards compatible?
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
rbon
Posts: 398
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: WinPenPack's X-Launcher update?

#48 Post by rbon »

Hi sl23,

In my previous post viewtopic.php?p=107034#p107034 I suggested you to add program icon during compilation using Aut2exe_x64.exe.
After some tests, I say You that this procedure is wrong. :oops:
I recommend You to add program icon to Your x-launcher.exe exclusively with Resource Hacker, and Replace the file x-icon.ico only 1 (one) just once in 'Icon Group'.

This is important.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update?

#49 Post by sl23 »

That's ok. I was using Resource Hacker anyway ;)
I've also been looking at learning some AutoIT, to try and understand why the errors.
I have installed AutoIt and SciTE, and found that when I now Compile the scripts for X-Launcher, it is opening a program that doesn't get opened in the portable versions, ie, Aut3Wrapper.

There is so much that is not included with the portable version for some reason, so I installed the standard version copied the entire SciTE folder to the portable version and working from that.

I have also found the AutoIT 1-2-3 set of instructions that show how AutoIT works, though it does leave out some basics that I don't know.

But now I have the full SciTE package I can compile the X-Launcher vis SciTE/Tools/Compile and it works, so that's something :)

I have a feeling though that th errors in the original source are not errors, but appear that way to the latest AutoIT/SciTE builds. I'm working on figuring it out. Not sure if I will or if I'll get bored, but I'm trying! :lol:
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
Midas
Posts: 6778
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: WinPenPack's X-Launcher update?

#50 Post by Midas »

Mod note: On account of its ongoing nature, I'm moving the current topic to "Development" -- let me know if you disagree.

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update?

#51 Post by sl23 »

Ooh, am I a developer now?! :lol: :lol: :lol:
Maybe just a junior! :mrgreen:
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
rbon
Posts: 398
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: WinPenPack's X-Launcher update?

#52 Post by rbon »

Midas wrote: Thu Jun 06, 2024 4:10 am Mod note: On account of its ongoing nature, I'm moving the current topic to "Development" -- let me know if you disagree.
Midas
thank You very much.

b.t.w.
maybe You must change something in title, like 'winPenPack X-Launcher update' (without question mark).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update?

#53 Post by sl23 »

I can't change it now it's moved :(
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
rbon
Posts: 398
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: WinPenPack's X-Launcher update?

#54 Post by rbon »

sl23 wrote: Wed Jun 05, 2024 7:20 am I have installed AutoIt and SciTE, and found that when I now Compile the scripts for X-Launcher, it is opening a program that doesn't get opened in the portable versions, ie, Aut3Wrapper.
You're right. Aut3Wrapper is missing in portable version of X-SciTE.
When I updated X-SciTE4AutoIt3 (yerar 2023) I started from the version that winPenPack had prepared and I only updated:
- AutoIt3 at version 3.3.16.1 (the latest)
- changed the color scheme in the 'SciTeGlobal.properties' file because it was horrible (and you couldn't read the source code)
sl23 wrote: Wed Jun 05, 2024 7:20 am There is so much that is not included with the portable version for some reason, so I installed the standard version copied the entire SciTE folder to the portable version and working from that.
I have updated the compiler 'X-SciTE4AutoIt3_4.4.6_rev6.zip' as follows:
- replaced 'SciTE4AutoIt3_Portable.zip' that contains the full version of AutoIt3 rel 3.3.16.1 (with Aut3Wrapper)
- updated the SciTE editor from rel. 4.4.6 - 32 bit --> to rel. 5.5.0 - 64 bit
sl23 wrote: Wed Jun 05, 2024 7:20 am I have a feeling though that th errors in the original source are not errors, but appear that way to the latest AutoIT/SciTE builds.
maybe You're right, then I have recompiled my favorite build X-LibreOffice.exe with the updated X-SciTE and.. surprise:
- source code works perfectly
- I have compiled as 64 bit
- details on file -> Properties -> details = now appears.

Here You have two screenshots:

1. compiler dialog box (with SciTE rel 5.5.0 - 64 bit) Image

2. X-LibreOffice.exe: Properties -> Details Image

Final considerations:
when You open X-SciTE4autoIt3 and browse SciTE infos You:
- You saw: SciTE 4.4.6 - 32 bit (before SciTE update)
- now You see: SciTE 5.5.0 (64 bit is implicit)

Now I will try this launcher and, if the icon causes problems, I disable it (from compiling)
Last edited by rbon on Thu Jun 06, 2024 9:46 am, edited 1 time in total.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
rbon
Posts: 398
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: WinPenPack's X-Launcher update?

#55 Post by rbon »

rbon wrote: Thu Jun 06, 2024 9:15 am Final considerations:
when You open X-SciTE4autoIt3 and browse SciTE infos You:
- You saw: SciTE 4.4.6 - 32 bit (before SciTE update)
- now You see: SciTE 5.5.0 (64 bit is implicit)
All perfect? No :cry:
the SciTE's language remains Italian even if:
1. in the 'X-SciTE4AutoIt3.ini' configuration file I have disabled all references to the Italian language
2. the 'locale.properties' file in 'C:\PortableApps\X-SciTE4AutoIt3\Bin\AutoIt\3.3.16.1\SciTe\' is the one for the English language (doesn't have translations)

I'll have to investigate why SciTE language remains italian: I merged new SciTE rel 5.5.0 x64 too quickly.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
rbon
Posts: 398
Joined: Wed Mar 28, 2007 2:16 am
Location: Italy

Re: WinPenPack's X-Launcher update?

#56 Post by rbon »

rbon wrote: Thu Jun 06, 2024 9:42 am I'll have to investigate why SciTE language remains italian: I merged new SciTE rel 5.5.0 x64 too quickly.
Probably I have solved.
I copied from 'C:\PortableApps\X-SciTE4AutoIt3\Bin\AutoIt\3.3.16.1\SciTe\' the file 'locale.properties' with name SciTELocale.properties:
So in the folder 'C:\PortableApps\X-SciTE4AutoIt3\Bin\AutoIt\3.3.16.1\SciTe\' there are now two files: 'locale.properties' and 'SciTELocale.properties'.
This file 'SciTE.locale.properties' is for english language, because the translation is missing.
For details about SciTE translation please see the page Localised SciTE https://www.scintilla.org/SciTETranslation.html and the english language is here: http://www.scintilla.org/locale.properties

All configuration files in 'SciTE' rel. 5.5.0 have name 'SciTE.something'...
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook.

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher update

#57 Post by sl23 »

I have also made my own version using the AutoIT version of SciTE, but updated it to the beta version.
I tried a separate X-installation with the update to SciTE 5.5.0 x64, but it wouldn't recognise AU3 files. So I downloaded the sc550 executable, which does recognise AU3 files.

Then I checked the syntax of all the X-LibreOffice files, and there are more warnings now than before. I expect it is because the updated SciTE means we are getting further away from the original X-source code. I think the X-source needs updating to be error free.

No issues with locale.

Errors:
  • X-Launcher\x-launcher.au3:
    this syntax incorrect - #AutoIt3Wrapper_Splash=graphics\x-splash.jpg
  • _x-launcher\x-launcher.au3:
    1 error - as before
  • _x-launcher\x-registry.au3:
    12 errors - as before
    now with 27 warnings
  • _x-launcher\x-udf.au3:
    11 errors - as before
    but now 32 warnings
Last edited by sl23 on Fri Jun 07, 2024 7:45 am, edited 1 time in total.
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
Midas
Posts: 6778
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: WinPenPack's X-Launcher update?

#58 Post by Midas »

rbon wrote: maybe You must change something in title, like 'winPenPack X-Launcher update' (without question mark).
And done! 8)
sl23 wrote: I can't change it now it's moved :(
Not because it was moved but by forum policy: OPs get locked up 7 days after posting date...

This is due to some unfortunate past events I don't care to recall. Anytime you need to reedit any post of yours, just ask the mod team -- we're here to serve. :)

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher updated

#59 Post by sl23 »

Ok thanks :)
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

User avatar
sl23
Posts: 84
Joined: Fri Jan 02, 2015 6:25 am

Re: WinPenPack's X-Launcher updated

#60 Post by sl23 »

Following argumentum's advice on the AutoIT forum, I recompiled X-Launcher using AutoIT v3.2.12.1 to a 64bit EXE. Compiling from SciTE only gives a 32bit EXE. But if you open Aut2Exe, it works, and guess what?
It fixes the SplashScreen not showing!!!! Woohoo!!!!
X-Launcher_x64 v1.5.4.zip
(466.88 KiB) Downloaded 843 times
Adjusted command to compile as x64.
Set Language to 2057 English.
Latest X-Launcher_x64 update - Compiled with Aut2exe_x64.exe v3.3.16.1
Latest X-Launcher_x64 v1.5.4 update - Compiled with Aut2exe_x64.exe v3.2.12.1

Post Reply