Дата: Воскресенье, 03.08.2014, 18:13 | Сообщение # 1
Сообщений: 4223
Статус: Offline
Для начало нам надо эти функции:
Код
AniGif_CreateControl(_guiHwnd, _x, _y, _w, _h, _style="") { local hAniGif, agHwnd local msg, style static $bFirstCall := true
If ($bFirstCall) { $bFirstCall := false ; It will be unloaded at script end hAniGif := DllCall("LoadLibrary", "Str", "AniGif.dll") }
style := 0 If (_style != "") { If _style contains autosize style |= 1 ; WAGS_AUTOSIZE If _style contains center style |= 2 ; WAGS_CENTER If _style contains hyperlink style |= 4 ; WAGS_HYPERLINK } ; WS_CHILD | WS_VISIBLE style := 0x50000000 | style
; http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp agHwnd := DLLCall("CreateWindowEx" , "UInt", 0 ; Style, can be WS_EX_CLIENTEDGE = 0x200 , "Str", "AniGIF" ; Class Name , "Str", "AnimatedGif" ; Window name , "UInt", style ; Window style , "Int", _x ; X position , "Int", _y ; Y position , "Int", _w ; Width , "Int", _h ; Height , "UInt", _guiHwnd ; Handle of parent , "UInt", 0 ; Menu , "UInt", 0 ; hInstance of the module registering the component's class , "UInt", 0) ; User defined style If (ErrorLevel != 0 or agHwnd = 0) { msg = %msg% Cannot create AniGif control (%ErrorLevel%/%A_LastError%) Gosub AniGif_CreateControl_CleanUp Return msg }
Return agHwnd
AniGif_CreateControl_CleanUp: ; In case of error ; Nothing to do here Return }
/** * Function to call before exiting or destroying the GUI. */ AniGif_DestroyControl(_agHwnd) { If (_agHwnd != 0) { AniGif_UnloadGif(_agHwnd) DllCall("DestroyWindow", "UInt", _agHwnd) } }
/** * Probably free memory used by the loaded Gif. */ AniGif_UnloadGif(_agHwnd) { ; WAGM_UNLOADGIF EQU WAGM_BASE+2 ;wParam:N/A, lParam:N/A SendMessage 2026, 0, 0, , ahk_id %_agHwnd% }
/** * Set the URL of the hyperlink called when clicking on the Gif. * The control must be created with the 'hyperlink' style. */ AniGif_SetHyperlink(_agHwnd, _url) { ; WAGM_SETHYPERLINK EQU WAGM_BASE+3 ;wParam:N/A, lParam:lpszHyprelink SendMessage 2027, 0, &_url, , ahk_id %_agHwnd% }
/** * Zoom in (_bZoomIn = 1) or zoom out (bZoomIn = 0) the given Gif by steps of 10%. */ AniGif_Zoom(_agHwnd, _bZoomIn) { ; WAGM_ZOOM EQU WAGM_BASE+4 ;wParam:N/A, lParam:TRUE(Zoom In by 10%)/FALSE(Zoom Out by 10%) PostMessage 2028, 0, _bZoomIn, , ahk_id %_agHwnd% }
/** * Change background color of the Gif (if it has transparency or if it is smaller than the control). * Color is in BGR format (ie. 0xFF8800 sets blue to FF, green to 88 and red to 00). */ AniGif_SetBkColor(_agHwnd, _backColor) { ; WAGM_SETBKCOLOR EQU WAGM_BASE+5 ;wParam:N/A, lParam:BkColor PostMessage 2029, 0, _backColor, , ahk_id %_agHwnd% }
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Gui +LastFound guiID := WinExist() hAniGif1 := AniGif_CreateControl(guiID, 4, 12, 250, 200) AniGif_LoadGifFromFile(hAniGif1, "teleport.gif") Gui, Show, x129 y89 h226 w269, New GUI Window Return
GuiClose: ExitApp
hAniGif1 := AniGif_CreateControl(guiID, 4, 12, 250, 200) Красные это координаты вашей гифки(x,y,w,h) Функций много думаю по их названием можно догадаться что они делают и попробывать пошаманить. Пример с офф.сайта МОЙ ВК - https://vk.com/gospodin_buero
Сообщение отредактировал Artem_Buero - Воскресенье, 03.08.2014, 18:15
MeinSTr1m, пост набил, молодец! НИЧЕГО НЕ ПРОДАЮ / НЕ СКУПАЮ. ТЕПЕРЬ ДЕЛАЮ ТОЛЬКО ФЕЙК ТЕКСТ НА AUTOHOTKEY Урок, создание фейк текста: http://cheat-master.ru/forum/149-359459-1 Фейк Skill, Lic,Showpass, Lic(Arp) - http://cheat-master.ru/forum/150-369595-1 Делаю ФЕЙК СООБЩЕНИЯ НА ЗАКАЗ: http://cheat-master.ru/forum/150-364125-1
Как будто ты не набиваешь посты? :/ И пишешь всегда по теме. Сейчас я тоже можно сказать набил пост. Просто бесят такие еб*аны, как ты, которые сами не лучше тех кого они яко-бы унижают