Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Аватара для Creat0R

Must AutoIt


Сообщения: 3054
Благодарности: 1009

Профиль | Сайт | Отправить PM | Цитировать


HORRIBLE,
Цитата:
В TOOLTIP можно задавать шрифт
ToolTip это тоже окно, т.ч в принципе можно:

Код: Выделить весь код
ToolTip("My ToolTip")

$hWnd = WinGetHandle("[CLASS:tooltips_class32]")
$hFont = _GUICtrlSetFont($hWnd, 18, 800, 4, "Comic Sans MS")

Sleep(5000)

DllCall('user32.dll', 'int', 'DeleteObject', 'hwnd', $hFont)

Func _GUICtrlSetFont($hWnd, $nFontSize=8.5, $nFontWeight=400, $nFontAtrribute=0, $szFont="")
    Local $hDc = DllCall("user32.dll", "hwnd", "GetDC", "hwnd", $hWnd)
    Local $nPixel = DllCall("gdi32.dll", "int", "GetDeviceCaps", "hwnd", $hDc[0], "int", 90)
    Local $nHeight = DllCall("kernel32.dll", "int", "MulDiv", "int", $nFontSize, "int", $nPixel[0], "int", 72)

    Local $hFont = DllCall('gdi32.dll', 'hwnd', 'CreateFont', _
        'int', -$nHeight[0], _
        'int', 0, _
        'int', 0, _
        'int', 0, _
        'int', $nFontWeight, _
        'int', BitAND($nFontAtrribute, 2), _
        'int', BitAND($nFontAtrribute, 4), _
        'int', BitAND($nFontAtrribute, 8), _
        'int', 1, _
        'int', 0, _
        'int', 0, _
        'int', 0, _
        'int', 0, _
        'str', $szFont)

    ; Other possibility to select a font to the control:
    ;
    ; $hFont = DllCall('gdi32.dll', 'hwnd', 'GetStockObject', 'int', 11); Get "DEFAULT_GUI_FONT"
    ;
    ;    -> font numbers can be :
    ;    OEM_FIXED_FONT      10
    ;    ANSI_FIXED_FONT     11
    ;    ANSI_VAR_FONT       12
    ;    SYSTEM_FONT         13
    ;    DEVICE_DEFAULT_FONT 14
    ;    DEFAULT_PALETTE     15
    ;    SYSTEM_FIXED_FONT   16
    ;    DEFAULT_GUI_FONT    17
    ;
    ;    !!! Before 'Exit' has to be called:
    ;               DllCall('user32.dll', 'int', 'DeleteObject', 'hwnd', $hFont)

    DllCall('user32.dll', 'int', 'SendMessage', 'hwnd', $hWnd, 'int', 0x0030, 'int', $hFont[0], 'int', 1) ;$WM_SETFONT = 0x0030

    Return $hFont[0]
EndFunc
Цитата:
как вставить получившуюся URL обратно в строку адресса
Код: Выделить весь код
_IENavigate($oIE, $new_link)
korochinskiy,
Цитата:
Как вностить и извлекать информацию из окон у которых класс Internet Explorer_Server?
Смотря какую информацию, для Internet Explorer есть библиотека #include <IE.au3>.

-------
“Сделай так просто, как возможно, но не проще этого.”... “Ты никогда не решишь проблему, если будешь думать так же, как те, кто её создал.”

Альберт Эйнштейн

P.S «Не оказываю техподдержку через ПМ/ICQ, и по email - для этого есть форум. ©»

http://creator-lab.ucoz.ru/Images/Icons/autoit_icon.png Русское сообщество AutoIt | http://creator-lab.ucoz.ru/Images/Ic...eator_icon.png CreatoR's Lab | http://creator-lab.ucoz.ru/Images/Icons/oac_icon.png Opera AC Community

Это сообщение посчитали полезным следующие участники:

Отправлено: 23:49, 23-03-2008 | #314