Jump to content

Images don't show after compiling


TanjimReza
 Share

Recommended Posts

Hello everyone! 

I'm writing a script, the code is below 

$Button1 = GUICtrlCreateButton("Button1", 16, 72, 127, 105, $BS_ICON)
GUICtrlSetImage(-1, "C:\Users\Tanjim\Downloads\ICON\start.ico", -1)
GUICtrlSetOnEvent(-1, "Button1Click")

Here the source if the icon file is shown from a local directory that's why it isn't working on other machines. 

My question is how can I embded the 'ico' file in my executable file so that the image shows in other machines too. I'm a newbie & searched a lot about this but didn't find anything like that particular execept the base64 encoding method which I'm not understanding. 

Thanks in advance. 

Link to comment
Share on other sites

Google is your friend, you should have tried first...but here an example :

#AutoIt3Wrapper_Res_Icon_Add=%AUTOITDIR%\Examples\Helpfile\Extras\Soccer.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\Applications\AutoIt\Simple Image\Pixel.ico

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>

Local Const $iHeight = 450, $iWidth = 470
$g_hGUI = GUICreate('Resources Example', $iWidth, $iHeight, Default, Default, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX))

Local $iBall = GUICtrlCreateButton('Click', $iWidth - 168, 72, 68, 71, $BS_ICON)
GUICtrlSetImage($iBall, @AutoItExe, '201')   ; Icon resources added with #AutoIt3Wrapper_Res_Icon_Add, can be directly used without the UDF.

Global $picIcon = GUICtrlCreateIcon(@AutoItExe,202,100,10,32,32)

GUISetState(@SW_SHOW, $g_hGUI)

While True
  Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE
      ExitLoop

  EndSwitch
WEnd

 

Link to comment
Share on other sites

 

37 minutes ago, TanjimReza said:

How to do that? 

See : https://www.autoitscript.com/autoit3/docs/functions/FileInstall.htm

Edit : or a solution from the grandmaster @UEZ himself ;):

https://www.autoitscript.com/forum/topic/134350-file-to-base64-string-code-generator-v120-build-2015-01-20-embed-your-files-easily/

 

Edited by Musashi

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

5 minutes ago, TanjimReza said:

Here's the full code.

Can anyone just embed the files for me? 

Could you please embed the source code directly into your posting - using the code tag <>

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

5 minutes ago, Musashi said:

Could you please embed the source code directly into your posting - using the code tag <>

Sure, here's the code 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <GuiConstants.au3>
#RequireAdmin

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("WinHotspot", 327, 280, 523, 138)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$Label1 = GUICtrlCreateLabel("WinHotspot - Tanjim Reza", 24, 16, 277, 27)
GUICtrlSetFont(-1, 14, 800, 0, "Montserrat")
GUICtrlSetColor(-1, 0x000080)
GUICtrlSetOnEvent(-1, "Label1Click")
$Button1 = GUICtrlCreateButton("Button1", 16, 72, 127, 105, $BS_ICON)
GUICtrlSetImage(-1, "@ScriptFullPath\start.ico", -1)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("Button1", 168, 72, 127, 105, $BS_ICON)
GUICtrlSetImage(-1, "C:\Users\Tanjim\Downloads\ICON\stop.ico", -1)
GUICtrlSetOnEvent(-1, "Button2Click")
$Button3 = GUICtrlCreateButton("Setup Hotspot", 16, 200, 129, 49)
GUICtrlSetOnEvent(-1, "Button3Click")
$Button4 = GUICtrlCreateButton("Reset Settings", 168, 200, 129, 49)
GUICtrlSetOnEvent(-1, "Button4Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    Sleep(100)
WEnd

Func Button1Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan start hostednetwork")
       Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
EndFunc
Func Button2Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan stop hostednetwork")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
EndFunc

Func Button3Click()
   $prompt = MsgBox($MB_OKCANCEL,"Configure Settings","This will remove current settings")

    If $prompt ==1 then
       $name = InputBox("Set Hotspot Name","Enter the name of your hotspot")
       $passwd = InputBox("Set Password","Enter your Password (at least 8 characters)")
       Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan set hostednetwork mode=allow{space}ssid="&$name)
       Send("{space}")
       Send("key="&$passwd)
       Send("{space}")
       Send("keyUsage=persistent")
       Send("{enter}")
       Send("exit")
       Send("{enter}")

   ElseIf $prompt ==2 then
     MsgBox(0,"Good Choice!", "Who wants to mess up things.. Eih?")

   Exit

   EndIf
EndFunc

Func Button4Click()
   Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan refresh hostednetwork key")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")

EndFunc
Func Form1Close()
   Exit

EndFunc
Func Form1Maximize()

EndFunc
Func Form1Minimize()

EndFunc
Func Form1Restore()

EndFunc
Func Label1Click()

EndFunc

 

Link to comment
Share on other sites

You need to add the resources like in my example, compile the script and run the EXE.  Just change path, ico name, it will work. Use my example first, so you know it is working then modify yours...

Edited by Nine
Link to comment
Share on other sites

I did compile & tried. But didn't work. For now I've done it using 'FIleInstall'. And I'll try to do again what you've said. Thanks a lot for your cooperation. 
Here's the code- 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <GuiConstants.au3>
#RequireAdmin

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("WinHotspot", 327, 280, 523, 138)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")

FileInstall("C:\Users\Tanjim\Desktop\start.ico", @ScriptDir & "\start.ico")
FileInstall("C:\Users\Tanjim\Desktop\stop.ico", @ScriptDir & "\stop.ico")
$Label1 = GUICtrlCreateLabel("WinHotspot - Tanjim Reza", 24, 16, 277, 27)
GUICtrlSetFont(-1, 14, 800, 0, "Montserrat")
GUICtrlSetColor(-1, 0x000080)
GUICtrlSetOnEvent(-1, "Label1Click")
$Button1 = GUICtrlCreateButton("Button1", 16, 72, 127, 105, $BS_ICON)
GUICtrlSetImage(-1, @ScriptDir & "\start.ico", -1)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("Button1", 168, 72, 127, 105, $BS_ICON)
GUICtrlSetImage(-1, @ScriptDir & "\stop.ico", -1)
GUICtrlSetOnEvent(-1, "Button2Click")
$Button3 = GUICtrlCreateButton("Setup Hotspot", 16, 200, 129, 49)
GUICtrlSetOnEvent(-1, "Button3Click")
$Button4 = GUICtrlCreateButton("Reset Settings", 168, 200, 129, 49)
GUICtrlSetOnEvent(-1, "Button4Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    Sleep(100)
WEnd

Func Button1Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan start hostednetwork")
       Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
       FileDelete("start.ico")
       FileDelete("stop.ico")
EndFunc
Func Button2Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan stop hostednetwork")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
       FileDelete("start.ico")
       FileDelete("stop.ico")
EndFunc

Func Button3Click()
   $prompt = MsgBox($MB_OKCANCEL,"Configure Settings","This will remove current settings")

    If $prompt ==1 then
       $name = InputBox("Set Hotspot Name","Enter the name of your hotspot")
       $passwd = InputBox("Set Password","Enter your Password (at least 8 characters)")
       Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan set hostednetwork mode=allow{space}ssid="&$name)
       Send("{space}")
       Send("key="&$passwd)
       Send("{space}")
       Send("keyUsage=persistent")
       Send("{enter}")
       Send("exit")
       Send("{enter}")
       FileDelete("start.ico")
       FileDelete("stop.ico")

   ElseIf $prompt ==2 then
     MsgBox(0,"Good Choice!", "Who wants to mess up things.. Eih?")
     FileDelete("start.ico")
     FileDelete("stop.ico")
   Exit

   EndIf
EndFunc

Func Button4Click()
   Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan refresh hostednetwork key")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
      FileDelete("start.ico")
      FileDelete("stop.ico")
EndFunc
Func Form1Close()
   FileDelete("start.ico")
   FileDelete("stop.ico")
   Exit

EndFunc
Func Form1Maximize()

EndFunc
Func Form1Minimize()

EndFunc
Func Form1Restore()

EndFunc
Func Label1Click()

EndFunc

 

Link to comment
Share on other sites

  • Developers

The #AutoIt3Wrapper_Res_Icon_Add only works when you have the separate full version of SciTE4AutoIt3 installed.
Show the SciTE outputpane information shown when you compile so we can check whether the resources are actually added.

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Here the version embedding the icons:

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <GuiConstants.au3>
#include <GDIPlus.au3>
#include <SendMessage.au3>
#RequireAdmin

Opt("GUIOnEventMode", 1)
_GDIPlus_Startup()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("WinHotspot", 327, 280, 523, 138)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$Label1 = GUICtrlCreateLabel("WinHotspot - Tanjim Reza", 24, 16, 277, 27)
GUICtrlSetFont(-1, 14, 800, 0, "Montserrat")
GUICtrlSetColor(-1, 0x000080)
GUICtrlSetOnEvent(-1, "Label1Click")
$Button1 = GUICtrlCreateButton("Button1", 16, 72, 128, 128, $BS_Top)
Global $hBmp = _GDIPlus_BitmapCreateFromMemory(_startico(), True)
_WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($Button1), $BM_SETIMAGE, $IMAGE_BITMAP, $hBmp))
_WinAPI_DeleteObject($hBmp)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("Button2", 168, 72, 128, 128, $BS_Top)
$hBmp = _GDIPlus_BitmapCreateFromMemory(_stopico(), True)
_WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($Button2), $BM_SETIMAGE, $IMAGE_BITMAP, $hBmp))
_WinAPI_DeleteObject($hBmp)
GUICtrlSetOnEvent(-1, "Button2Click")
$Button3 = GUICtrlCreateButton("Setup Hotspot", 16, 220, 129, 49)
GUICtrlSetOnEvent(-1, "Button3Click")
$Button4 = GUICtrlCreateButton("Reset Settings", 168, 220, 129, 49)
GUICtrlSetOnEvent(-1, "Button4Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
_GDIPlus_Shutdown()

While 1
    Sleep(100)
WEnd


Func Button1Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan start hostednetwork")
       Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
EndFunc
Func Button2Click()
    Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan stop hostednetwork")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")
EndFunc

Func Button3Click()
   $prompt = MsgBox($MB_OKCANCEL,"Configure Settings","This will remove current settings")

    If $prompt ==1 then
       $name = InputBox("Set Hotspot Name","Enter the name of your hotspot")
       $passwd = InputBox("Set Password","Enter your Password (at least 8 characters)")
       Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan set hostednetwork mode=allow{space}ssid="&$name)
       Send("{space}")
       Send("key="&$passwd)
       Send("{space}")
       Send("keyUsage=persistent")
       Send("{enter}")
       Send("exit")
       Send("{enter}")

   ElseIf $prompt ==2 then
     MsgBox(0,"Good Choice!", "Who wants to mess up things.. Eih?")

   Exit

   EndIf
EndFunc

Func Button4Click()
   Run("cmd.exe")
       WinWaitActive("Administrator: C:\Windows\SYSTEM32\cmd.exe")
       Send("netsh wlan refresh hostednetwork key")
        Send("{enter}")
       Send("title Tanjim Reza")
       Send("{enter}")
       Send("exit {enter}")

EndFunc
Func Form1Close()
   Exit

EndFunc
Func Form1Maximize()

EndFunc
Func Form1Minimize()

EndFunc
Func Form1Restore()

EndFunc
Func Label1Click()

EndFunc

;Code below was generated by: 'File to Base64 String' Code Generator v1.20 Build 2018-02-02

Func _stopico($bSaveBinary = False, $sSavePath = @ScriptDir)
    Local $stopico
    $stopico &= '/LJIAAABABBgYAFwIAAAqJQAABYAAMwAKAAYAJAAwAAYAVzBAgCQAAATCwMMcQCoJB+uDQMBAAMDEBeqHgADNwADVwADhwADqq4AA8oAA+AAA/8cA/+BEYEVgRmBHYEhgSWBKY0zv4E9gUGKC38Az7nIAgLEAFXJPAbAAETAAHnAAKf9wADZ4FntAMEUwRbBGMEa/8EcySDGJc0tPwA/AP+7wjZVyboFwAA6wACWwADSVcAA9cxL/sAA/MAA/f/EAMEDwQDdWeUE5QZhCO0G/2ENYQ5hD2EQYRFpYupDHwC/HwAfAB8AHwDyLuF7BOgBuiFgAGhkhGEj6SL6YAD+++gt/1p/AGUyYQphC2EM/2kDYRBhEWESYRPlFGEWapN/HwAfAB8AHwD/LuYu6Ugq9WAAimAA43Qj9S1tWWUF/2UC6WNpBH8K7wNhE2EUYRX/6Xb/MB8AHwAfAH8vtyO5dPqUMADmPCe/EXtHcSr9Mf8/AD8APQC5BD8HOwf1ALEK/zELOXs5DQ8QDwAPAA8ADwCPDwAPAH8XvxcfrgwwAPprMADn/EVxJz8QPxC5Wqrh9FrDMACoMACTMAD+lTQSMQCxADEBsQExArEC/zEDPWW/HzsAsQn5SbELMQz/sQy1Yb+SDwAPAA8ADwAPAK8PAL8XeTq1AEUwAL58DVd/Fz9ANRrJMACXMABp+7SKcVkIvx4/ADQAsQIxA/+xAzEEsQQxBb1fdUh/CXsB/7EMMQ2/Dj8YDwAPAA8ADwDvDwC/Fz0v8SGFeCfxbr8mqzMouS75MADFtBIuMAD+Ej8VdgYxAHEGPwD3Ab8D/zMFsQUxBrEGMQf/CP8ZMQz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ABFgwfARak5MABFgMnARbbA4gq2wELpAMLJQE62ABAAB/4AAAbADz8ACAAA+AHwAAEAD////tAABwXAOg4AALf///0AIAA4X/+hwABAC///+kAAw//AP/wwACX///SAAAMn///+TAAQGv//6AAMgFNjIAABf//SABBAWUAggAS//4QAbcBAQvtgAh//6ACAk+BBfJABf/8QAQEv4EF/SACP/gDgQ0BHhABH/QAFgL+gWt/aAAv8QAEK/QBUy/UAI/qCABHgYERgeIAVxDgAL9OgQty/QAgB9QBTpCBBQlwQIArwAA9IIEFBIC6AAOoArpAgQWAAl1AFcAEeAApgQAqHiADAAF5g31AnoAAgAjwgwUPIBABIAP6gwVfwAgEQBWFC4gCAAeC5IMFJ+AAQC+FCxLUigsAZ4UF5gCAwg+FBfABAB+FBYCvrl+FBcAZyQU/xQL8ywXKv8UC/coIAX/FAoBJ/9QF+QLhGsom4TLUPspKyFAl01z0yFzAAMdoqAKfyW7JdMl6yYDKhgBdxoz41AEOxpLJmMmeyaTJqsfAsEPiwLD8QAUA0MO2r8m8ysJoZGBnM2EBTGFn/WZqS2ttaXBpc2l2aXlpfD9qf2mCaYVpiGmLZ44='
    $stopico = _WinAPI_Base64Decode($stopico)
    If @error Then Return SetError(1, 0, 0)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($stopico) & ']')
    DllStructSetData($tSource, 1, $stopico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 38078)
    If @error Then Return SetError(3, 0, 0)
    $tSource = 0
    Local Const $bString = Binary(DllStructGetData($tDecompress, 1))
    If $bSaveBinary Then
        Local Const $hFile = FileOpen($sSavePath & "\stop.ico", 18)
        If @error Then Return SetError(2, 0, $bString)
        FileWrite($hFile, $bString)
        FileClose($hFile)
    EndIf
    Return $bString
EndFunc   ;==>_stopico

Func _startico($bSaveBinary = False, $sSavePath = @ScriptDir)
    Local $startico
    $startico &= 'ErRIAAABABBgYAFwIAAAqJQAABYAAMwAKAAYAJAAwAAYAVzBAgCQAADDDgMMfQA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A/APdcsQR6sLQFNfAWMhf0avXLAsCJqjIAkq6wCjAX+JmwM48MDwAPAA8ADwD/DwAPAA8ADwAPAA8A/WGwDcexJvIv92EEl7NwezEAVbKdMzEABbAAIzAAR1UwAGswAIswAKUwALhVMADGMADPMADUMADTf7QAMQGxATECsQIxA7EDJOWwXAZ0UACYcAcxADQX/zJR8i+/vA8ADwAPAA8ADwD/DwAPAA8ADwAPAA8ADwC0ScfxDvBJMBeZzhm5enIRAKa2QACftDoAXpm/'
    $startico &= 'hj1+f9C5HrYwALoHch22BbEGgPIgAJjmsLABMAKYsT8GDwAPAAEDACqxAgA6AP////5Behhegn8AEAAA+hQACAAoXwMWyEAAAFQCCwMWIgFWQgIU/FKIARYRPwJcIAEWBEkCMOiAAQsBFwEL0lUDXEsBCyQDCyQBaZC1AwsJAG39AjoAPL8ARmsAaQEAAgBI9AJGAAAvQwBSBaVX///QBQsrCP//oAULFf//SCEFCwL//xCFBQj/Yv6GEQV//QQvgBG/QvwFLwABP/iHBR+S9QeJr/KHBU/ihwUkR+SHBSfEhwUjyP2HBROJBYR2gniJBYR8gn7/lQUGWQBaoQWGMgAz/wL/Av//AtsC7UfhXNVr1XfJgMmG/8mMyZLJmMmeyaTJqsmwybb1x7wSyMIFa2RmZwByaWr/aW1pcGlzaXZqeWl8aX9pgtT/YmEBRmiIE2+LZo4='
    $startico = _WinAPI_Base64Decode($startico)
    If @error Then Return SetError(1, 0, 0)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($startico) & ']')
    DllStructSetData($tSource, 1, $startico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 38078)
    If @error Then Return SetError(3, 0, 0)
    $tSource = 0
    Local Const $bString = Binary(DllStructGetData($tDecompress, 1))
    If $bSaveBinary Then
        Local Const $hFile = FileOpen($sSavePath & "\start.ico", 18)
        If @error Then Return SetError(2, 0, $bString)
        FileWrite($hFile, $bString)
        FileClose($hFile)
    EndIf
    Return $bString
EndFunc   ;==>_startico

Func _WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>_WinAPI_Base64Decode

Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize)
    $tOutput = DllStructCreate("byte[" & $iBufferSize & "]")
    If @error Then Return SetError(1, 0, 0)
    Local $aRet = DllCall("ntdll.dll", "uint", "RtlDecompressBuffer", "ushort", 0x0002, "struct*", $tOutput, "ulong", $iBufferSize, "struct*", $tInput, "ulong", DllStructGetSize($tInput), "ulong*", 0)
    If @error Then Return SetError(2, 0, 0)
    If $aRet[0] Then Return SetError(3, $aRet[0], 0)
    Return $aRet[6]
EndFunc   ;==>_WinAPI_LZNTDecompress

 

Tested on Win10 only.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...