Jump to content

Kreatorul

Active Members
  • Posts

    342
  • Joined

  • Last visited

About Kreatorul

  • Birthday 05/20/1990

Profile Information

  • Location
    Constanta
  • Interests
    Guitaring

Kreatorul's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. Using GuiCtrlCreatePic with the same path works but I need it to work with buttons.
  2. Right, my bad with the icons, I copy pasted and example and didn't check it well enough. They now work. The images still don't work though, which is what I actually need. Thanks!
  3. Yes, as I've mentioned I've tried that. The weird thing is that icons don't work either. It just shows a normal button, no errors or anything. Random example: $btn = GUICtrlCreateButton("", 74, 74, 26, 26, $BS_ICON) _GUICtrlButton_SetImage($btn, 'shell32.ico', -3) I really don't know what's wrong. I'm on Windows 7 x64 if it helps
  4. Hi! I'm trying to have some buttons with images but the images don't show up no matter what I do. I've tried everything from absolute paths to other file extensions, compiling it x86, x64. Here's an example #include <GUIConstants.au3> #include <ButtonConstants.au3> #include <GuiButton.au3> $GUI = GuiCreate("test", 222, 222, -1, -1)$piesag = GuiCtrlCreateButton("", 14, 16, 44, 44, $BS_BITMAP) GuiCtrlSetImage($piesag, "\piese\1a.bmp") GUISetState(@SW_SHOW, $gui) While(1) $msg = GuiGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit WEnd
  5. I found this on the forums a while ago, sorry I can't remember who wrote it. Func _GetTextLabelWidth($s_WinText, $s_TextFont, $i_FontSize, $i_FontWeight = -1) Local Const $DEFAULT_CHARSET = 0 ; ANSI character set Local Const $OUT_CHARACTER_PRECIS = 2 Local Const $CLIP_DEFAULT_PRECIS = 0 Local Const $PROOF_QUALITY = 2 Local Const $FIXED_PITCH = 1 Local Const $RGN_XOR = 3 Local Const $LOGPIXELSY = 90 $h_WinTitle = "Get Label Width" If $i_FontWeight = "" Or $i_FontWeight = -1 Then $i_FontWeight = 600 ; default Font weight Local $h_GUI = GUICreate($h_WinTitle, 10, 10, -100, -100, $WS_POPUPWINDOW, $WS_EX_TOOLWINDOW) Local $hDC = DllCall("user32.dll", "int", "GetDC", "hwnd", $h_GUI) Local $intDeviceCap = DllCall("gdi32.dll", "long", "GetDeviceCaps", "int", $hDC[0], "long", $LOGPIXELSY) $intDeviceCap = $intDeviceCap[0] Local $intFontHeight = DllCall("kernel32.dll", "long", "MulDiv", "long", $i_FontSize, "long", $intDeviceCap, "long", 72) $intFontHeight = -$intFontHeight[0] Local $hMyFont = DllCall("gdi32.dll", "hwnd", "CreateFont", "int", $intFontHeight, _ "int", 0, "int", 0, "int", 0, "int", $i_FontWeight, "int", 0, _ "int", 0, "int", 0, "int", $DEFAULT_CHARSET, _ "int", $OUT_CHARACTER_PRECIS, "int", $CLIP_DEFAULT_PRECIS, _ "int", $PROOF_QUALITY, "int", $FIXED_PITCH, "str", $s_TextFont) DllCall("gdi32.dll", "hwnd", "SelectObject", "int", $hDC[0], "hwnd", $hMyFont[0]) Local $res = DllStructCreate("int;int") Local $ret = DllCall("gdi32.dll", "int", "GetTextExtentPoint32", "int", $hDC[0], "str", $s_WinText, "long", StringLen($s_WinText), "ptr", DllStructGetPtr($res)) Local $intLabelWidth = DllStructGetData($res,1) GUIDelete($h_GUI) Return $intLabelWidth EndFunc
  6. The traditional way "WinGetText" of course, doesn't work for text created with GDI+. I need to retrieve it from an application so I can use it in my own. Help please?
  7. I did it using _Winamp_GetCurrentTrackFilePath() and then I used an id3 tag reader.
  8. Updated: live preview function.
  9. Update: Now it has support for Screamer Radio. http://status-revolution.blogspot.com
  10. Small update, statuses were automatically saved with the "show last status" option on, so the statuses list was getting messy. That's fixed and bits of status syntax were left over if no player was open. Can still be found here.
  11. StatusRevolution is the next update after Y!StatusRevolution status changer. StatusRevolution now supports both Yahoo! Messenger and MSN/Windows live Messenger and extracts song info from 3 different media players: Winamp, AIMP & foobar2000. It's very easy to use & supports macros(case sensitive). Just 2 clicks away from a cool status. More info here. I'd like to thank anyone who may find his script in mine. If you'd like the source, just pm me. The program is certified by softpedia but the newest version isn't uploaded there now, yet you can find it at www.status-revolution.blogspot.com
  12. Yep, I got them working on XP. It's a great library. Planning on adding the friend list for the pm example anytime soon? It's needed for a working y!m client and I'm not familiar with the protocol to get it myself.
  13. I'm using Windows 7 and doesn't seem to start the adodb.stream. I know I shouldn't complain as long as I'm using a rc version but if there's a workaround I'd be happy to find it. I tried manually installing mdac but it doesn't seem to work anyway. I'll just switch to xp to test the library for now(hope it works).
  14. The code from weaponx just crashes autoit. I know it's old but maybe someone could update it, I'm not good with dll calls and the script crashes while getting the process id. I got the pid with autoit but still failed to get the song name.
  15. Deci pana la urma omul nu vrea sa dea sursa si are tot dreptul sa faca asta si daca te mai rogi de el o sa iti dea astia ban. So the guy doesn't want to release the source code and he has all the right to do so and if you keep beggin' you'll get yourself banned.
×
×
  • Create New...