Jump to content

Kickassjoe

Active Members
  • Posts

    418
  • Joined

  • Last visited

Profile Information

  • Member Title
    Kickin' Ass And Takin' Names
  • Location
    MOO
  • Interests
    Autoit3

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Kickassjoe's Achievements

Universalist

Universalist (7/7)

1

Reputation

  1. That's exactly what I was looking for <3 Kind of saw that when I was looking at the _HexToString function, but didn't put 2 and 2 together I guess. Thanks
  2. FF still gave me a termination of the string, but it also gave me an idea. Why not just change the converter to not put the null character (00 in hex) in the string? It's null anyways... Func _HexToString2($strHex) Local $strChar, $aryHex, $i, $iDec, $Char, $iOne, $iTwo $aryHex = StringSplit($strHex, "") If Mod($aryHex[0], 2) <> 0 Then;if not even strlen, error SetError(1) Return -1 EndIf For $i = 1 To $aryHex[0] $iOne = $aryHex[$i] $i = $i + 1 $iTwo = $aryHex[$i] $iDec = Dec($iOne & $iTwo) If @error <> 0 Then SetError(1) Return -1 EndIf If $iDec > 0 Then $Char = Chr($iDec) $strChar &= $Char EndIf Next Return $strChar EndFunc ;==>_HexToString2 It converts fine, anything wrong with doing that?
  3. So, when parsing this: With a _hexToString, I get: But, when I translate that into 2 strings: 32347C35397C32312C300032357C3132393033307C382C32343338367C392C317C39392C35 AND 33307C317C312C302C302E30302C302C312C352C302C317C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C312C302C302C302C302C302C3000 I get: 24|59|21,0 AND 30|1|1,0,0.00,0,1,5,0,1|0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0 Could I get any insight into why this is happening like this, and what I can do to get the _HexToString function to parse the whole string? I've tried BinaryToString as well (The string doesn't seem to be binary, but the function gives the same results) Test: #include <String.au3> $str = '32347C35397C32312C300032357C3132393033307C382C32343338367C392C317C39392C350033307C317C312C302C302E30302C302C312C352C302C317C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C312C302C302C302C302C302C3000' $str2 = '32347C35397C32312C300032357C3132393033307C382C32343338367C392C317C39392C35' $str3 = '33307C317C312C302C302E30302C302C312C352C302C317C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C302C312C302C302C302C302C302C3000' $hex = _HexToString($str) $hex2 = _HexToString($str2) $hex3 = _HexToString($str3) MsgBox(0,0,$hex) MsgBox(0,0,$hex2) MsgBox(0,0,$hex3)
  4. Well, I had to manually change the file name to something other than what the .au3 was named, for the icon to change to the icon file that I used. Could that be a bug?
  5. That would be the Aut2exe.exe file in the Autoit/Aut2Exe directory. >_< Browsing for the .au3 file, the .exe path, and the .ico file, so I'm sure they aren't wrong. Edit: Ah, got it working, I guess I just couldn't name it the .exe the same as the .au3 was named (LSToolbox.au3, and LSToolbox.exe didn't work, changed it to asdf.exe, and all is good)
  6. When I use the compile script to .exe file, the icon doesn't want to change from the default autoit icon, to the icon I browse for in the compilation program. Does anyone know what I have to do to get this to work? http://www.dknightstudios.org/LS/icon.ico <-- set of 5 icons, 16x16 - 64x64 http://www.dknightstudios.org/LS/icon2.ico <-- just a regular 64x64 icon
  7. The first example worked with the transparent labels, and with text, so I just stuck with that, and the program is finished now . The solution really did help a lot! Thanks for multiple options though .
  8. It didn't really fade in for me, don't know if that's just my computer, or what, so I added a 10 ms sleep to the winsettrans loop, and put the max down to 245, and it's almost exactly how transparent it was before >_<. Thanks for the help, I think that's all I need it to do .
  9. So, I am trying to make clickable transparent labels on the controlGUI in this program. The labels are clickable, up until the point that they turn transparent, and I was wondering if it's easily possible to make them clickable while being transparent. There's just 1 big label in the program right now, for testing purposes. If you make the label use the default background color, you will see that a message box pops up when you click it. When it is transparent, that doesn't happen, which is what I'm trying to make happen. #include <Array.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <INet.au3> #include <GDIPlus.au3> #include <GuiComboBox.au3> #include <File.au3> #include <Array.au3> #include <ButtonConstants.au3> #include <StaticConstants.au3> Global Const $AC_SRC_ALPHA = 1 Global $old_string = "", $runthis = "" _GDIPlus_Startup() $pngSrc = @ScriptDir & "\images\bg.png" $hImage = _GDIPlus_ImageLoadFromFile($pngSrc) $width = _GDIPlus_ImageGetWidth($hImage) $height = _GDIPlus_ImageGetHeight($hImage) $GUI = GUICreate("LadderSearch", $width, $height, -1, -1, $WS_POPUP, $WS_EX_LAYERED) GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST") GUISetState() WinSetOnTop($GUI, "", 1) SetBitmap($GUI, $hImage, 0) For $i = 0 To 255 Step 3 SetBitmap($GUI, $hImage, $i) Next $controlGui = GUICreate("ControlGUI", $width, $height, 0, 0, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $GUI) GUICtrlCreatePic(@ScriptDir & "\images\grey.gif", 0, 0, $width, $height) GUICtrlSetState(-1, $GUI_DISABLE) $bigButton = GUICtrlCreateLabel("", 0, 0, 300, 300, $SS_NOTIFY) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT);remove this line and the label will work... GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $bigButton MsgBox(0,0,0) EndSelect WEnd Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam) If ($hWnd = $GUI) And ($iMsg = $WM_NCHITTEST) Then Return $HTCAPTION EndFunc ;==>WM_NCHITTEST Func SetBitmap($hGUI, $hImage, $iOpacity) Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend $hScrDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC) $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap) $tSize = DllStructCreate($tagSIZE) $pSize = DllStructGetPtr($tSize) DllStructSetData($tSize, "X", _GDIPlus_ImageGetWidth($hImage)) DllStructSetData($tSize, "Y", _GDIPlus_ImageGetHeight($hImage)) $tSource = DllStructCreate($tagPOINT) $pSource = DllStructGetPtr($tSource) $tBlend = DllStructCreate($tagBLENDFUNCTION) $pBlend = DllStructGetPtr($tBlend) DllStructSetData($tBlend, "Alpha", $iOpacity) DllStructSetData($tBlend, "Format", $AC_SRC_ALPHA) _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA) _WinAPI_ReleaseDC(0, $hScrDC) _WinAPI_SelectObject($hMemDC, $hOld) _WinAPI_DeleteObject($hBitmap) _WinAPI_DeleteDC($hMemDC) EndFunc ;==>SetBitmap http://dknightstudios.org/files/test1.zip <-- uploaded to a server that I have access to because max file size is 12.15k, and the files are bigger than that, hope it's not a problem.
  10. OK, I actually just got php working on xampp like 10 mins. ago (I had a previous PHP installation before, and it was preventing PHP in xampp from working, for some reason) I guess I'll just configure my script to ask for an xampp directory, and make it a requirement.
  11. I'm trying to make an autoit script to help test PHP scripts, but I can't figure out how to run php scripts in IE that are on my computer. I can see the results of php scripts that are on a server... but not on my computer. It'd be really nice to not have to upload the php script I want to test, and it work without a webserver installed on the computer using this program. (It'd be ok if PHP had to be installed on the system, which I'm pretty sure it does.)
  12. Got it working through the cmd line. should be easy enough to port to autoit. ftp ftp://jrankin3.12gbfree.com username password send c:\file.txt /file.txt is what I put into cmd. AGH, I forget, what's the command to send things to a cmd??? Looked in the help file and couldn't find it... Hmm, seems as though ftp commands aren't working through the cmd on Vista, and they are on XP. Used the IP address instead of the url, everything is working fine now.
  13. DllCall needs 3 parameters, you mean DllOpen? Testing atm. Still not working with a DllOpen("WinINet.DLL") in the beginning.
×
×
  • Create New...