News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Animated Taskbar and tray icons

Started by Mihail, January 24, 2012, 04:05:03 PM

Previous topic - Next topic

Mihail

Hi guys, I'm new to programming. problem in anything, I created a program with the aid of GUI in masm editor and uploaded to the resources of 25 icons, please help, how to animate them in the tray and taskbar. I apologize for my bad English (it's all Google is guilty, he translated)))
I will be very grateful for help=)


Mihail

i want animate this icons without  dial inet conection :D , easy  with invoke SetTimer  with 200 ms delay :D

Mihail

i have this project on Flat asembler, but i can't  convert syntax or disasemble exe >masm  :(

ragdog

Quotei have this project on Flat asembler

::) your project.zip  say what other

\MASM32\BIN\Rc.exe /v rsrc.rc
\MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res

i want animate this icons without  dial inet conection :D , easy  with invoke SetTimer  with 200 ms delay :D

This is coding  :bg

Look in to source and you can found this part to create the Notify Icon,Load the icons and the Timer part for Blinking icons



Mihail

no , this project.zip  im created in masm )) but i have  working programm writed at fasm =)

Mihail

i can't find animation function with timer at this  post :(

Mihail

this project in fasm   . . .

Mihail

so  . . . someone has ideas how to implement it on masm32 ?

Gunner

Uh, the same exact way you did it in FASM.  You have no code in your MASM zip.  Where is SetTimer, Shell_NotifyIcon and the rest of your FASM code?
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

Mihail

I do not know how to implement this  in masm  . . .

dedndave

should be pretty easy   :P
i will have a look at it, tomorrow

dedndave

i started out by examining the icons
there are 25 icons in the project
however, only 10 are unique   :P
we can use icons 1 through 5 and 16 through 20 - only need 10
of course, we'll have to add a little code to select the right icon at the right time
but it will eliminate ~36 Kb from the resource section

eyes open:
1 = 6 = 11
2 = 7 = 12
3 = 8 = 13
4 = 9 = 14
5 = 10 = 15

eyes closed:
16 = 21
17 = 22 (22 has a flaw)
18 = 23
19 = 24
20 = 25

we could probably reduce it further by creating a single icon file with the 10 icons
we'll worry about that later

Mihail


dedndave

it's ok - it's a matter of efficiency   :bg