phatzilla 0 Posted February 25, 2011 I have scite installed with the latest version of autoit, I downloaded the scripts from here I put them in my includes folder, and when i tried to run the base64test script, it just errors out and asks me to debug. Any ideas? Share this post Link to post Share on other sites
spudw2k 231 Posted February 25, 2011 Are you running the 64bit interpretter? I'm not sure if it's compatible, and I am unable to test on the system I'm typing this on, but I can confirm that the examples work in Windows XP SP3, AutoIt 3.3.6.1 Spoiler Things I've Made: AOT Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Share this post Link to post Share on other sites
Rogue5099 18 Posted February 25, 2011 (edited) First you need to change Include "Base64.au3" to Include <Base64.au3> Right click and Run Script (x86) ????????????? Edit: Now I tried to Run same script Results below... #Include "C:\Program Files (x86)\AutoIt3\Include\Base64.au3" - WORKS #Include <Base64.au3> - Doesn't work??? Edited February 25, 2011 by rogue5099 My projects: Inventory / Mp3 Inventory, Computer Stats Share this post Link to post Share on other sites
phatzilla 0 Posted February 25, 2011 I'm actually on Win XP SP3 32 BIT Share this post Link to post Share on other sites
phatzilla 0 Posted February 26, 2011 Any other ideas guys? Share this post Link to post Share on other sites
Yashied 241 Posted February 26, 2011 expandcollapse popup$Data = 'Hello World!' ConsoleWrite($Data & @CR) $Data = _Base64_Encode($Data) ConsoleWrite($Data & @CR) $Data = _Base64_Decode($Data) ConsoleWrite($Data & @CR) Func _Base64_Decode($sData) Local $Ret, $tData $Ret = DllCall('crypt32.dll', 'bool', 'CryptStringToBinaryW', 'wstr', $sData, 'dword', 0, 'dword', 1, 'ptr', 0, 'dword*', 0, 'ptr', 0, 'ptr', 0) If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, '') EndIf $tData = DllStructCreate('byte[' & $Ret[5] & ']') $Ret = DllCall('crypt32.dll', 'bool', 'CryptStringToBinaryW', 'wstr', $sData, 'dword', 0, 'dword', 1, 'ptr', DllStructGetPtr($tData), 'dword*', $Ret[5], 'ptr', 0, 'ptr', 0) If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, '') EndIf Return BinaryToString(DllStructGetData($tData, 1)) EndFunc ;==>_Base64_Decode Func _Base64_Encode($sData) Local $Ret, $bData, $tData, $tText $bData = StringToBinary($sData) $tData = DllStructCreate('byte[' & BinaryLen($bData) & ']') DllStructSetData($tData, 1, $bData) $Ret = DllCall('crypt32.dll', 'bool', 'CryptBinaryToStringW', 'ptr', DllStructGetPtr($tData), 'dword', DllStructGetSize($tData), 'dword', 1, 'ptr', 0, 'dword*', 0) If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, '') EndIf $tText = DllStructCreate('wchar[' & $Ret[5] & ']') $Ret = DllCall('crypt32.dll', 'bool', 'CryptBinaryToStringW', 'ptr', DllStructGetPtr($tData), 'dword', DllStructGetSize($tData), 'dword', 1, 'ptr', DllStructGetPtr($tText), 'dword*', $Ret[5]) If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, '') EndIf Return DllStructGetData($tText, 1) EndFunc ;==>_Base64_Encode My UDFs:iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL HelperAnimated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF LibraryAppropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignmentMore... Share this post Link to post Share on other sites
phatzilla 0 Posted February 26, 2011 Yashid, Appreciate the reply mate, tried it on another PC and it worked, guess my main pc needs a cleanin' Share this post Link to post Share on other sites