phatzilla Posted February 25, 2011 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?
spudw2k Posted February 25, 2011 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: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
Rogue5099 Posted February 25, 2011 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
Yashied Posted February 26, 2011 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 Helper Animated 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 Library Appropriate 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 alignment More...
phatzilla Posted February 26, 2011 Author Posted February 26, 2011 Yashid, Appreciate the reply mate, tried it on another PC and it worked, guess my main pc needs a cleanin'
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now