AutoHotkey Community

It is currently May 27th, 2012, 10:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: July 28th, 2011, 5:45 pm 
Hi, I'm having a hard time implementing this in my gui. Could someone here write a short script that would create a gui with only one gif and show it?


Report this post
Top
  
Reply with quote  
 Post subject: AutoHotKey_L Unicode
PostPosted: September 12th, 2011, 4:52 pm 
Has anyone got this to work for AutoHotKey_L Unicode compiler? If I use AutoHotKey_L ANSI it works.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2011, 3:54 am 
Offline
User avatar

Joined: November 7th, 2010, 2:48 am
Posts: 72
Location: Egret Island
tuna wrote:
For me, AniGif_LoadGifFromFile() fails - not too sure why. For the demo I just get

Code:
---------------------------
AniGIF
---------------------------
Error loading file.
---------------------------
OK   
---------------------------


I've checked all files are there.

Using Vista 32-bit with AHK_L Unicode. Thanks


When I run it with ahk_L 1.1.05.00, I encountered the same problem. So I make some adjustment to AniGif_LoadGifFromFile, now it is:
Code:
AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
   ; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0   ;wParam:N/A,      lParam:lpFileName
   
   VarSetCapacity(var, StrPut(_gifFile, "cp0") * 2)
   StrPut(_gifFile, &var, "cp0")
   SendMessage, 2024, 0, &var, , ahk_id %_agHwnd%
}

It can exactly load the gif file now (Before all maybe you need change the script's codepage to UTF-8).

_________________
Recommended: AutoHotkey_L My code is based on it or similar versions, e.g. AutoHotkey_H.
Image
Together with AutoHotkey, we grow and march forward. No matter how the future will be, this period of days is still epic.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2011, 5:12 pm 
Is it possible to make the gif transparent so it will show the control under it? Is it also possible to make it a gLabel?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], specter333, XX0 and 27 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group