Hi All,

This program is a replacement for those of us that still
like the old M$ Office desktop Toolbar and drop down
Menu to launch programs.

You can use the application icon or choose a different icon
or bitmap for the Toolbar buttons.

I had a hard time getting rid of the flicker in the maint
Listboxes when using the up/down arrows, but it's gone.

Let me know if it works.

Thanks,

Ewayne

Previous downloads (97)

Update 05-02-2004
Posted on 2004-04-27 14:04:03 by Ewayne
Really neat :thumbsup: Works on XP. One thing though:

Could you after adding something could you make the Close button also Update with the changes? I thought it was broken at first :) then I realized I had to Update.

Cheers,
Jimmy
Posted on 2004-04-27 16:54:53 by JimmyClif
Hi Jimmy,

I sort of programed it that way so that if you made some changes
and then decided you did not want to make the changes permanent
you can press close to exit.

I have made a visual indicator showing that changes were made and
I also added a message box for the close button if changes were
made and not updated, it will allow you to go back and do the updates
or exit without updating.

You can go to the first post on this thread for the update.

Thanks,

Ewayne
Posted on 2004-04-28 13:48:57 by Ewayne
Hi Ewayne,

Why not make an Ok and Cancel button? Anyays, the messagebox will be fine for me. I hope you're pleased to hear that I disabled my QuickLoad Bar and instead am running your Appload in my Startup Folder.

Thanks,
Jimmy
Posted on 2004-04-29 11:44:16 by JimmyClif
Hi All,

I added a "y" offset to the Toolbar.

I also SetCurrentDirectory of the directory of the executing program
before I launch it.

I had tested the AppLoad on a couple of my programs that had support
files and they worked ok, but when I looked at the programs I saw
that I got the current directory from the command line, so that was not
a very good test.

Does anyone know how if there is an open application and then launch
a program from AppLoad and then closing it, to set the focus back to
the open application?

You can go to the first post of this thread for the update.

Thanks,

Ewayne


To Jimmy:

Thanks for the support.

I thought about a Update and Cancel button, but the update would
get a little messy if it was not done in it's own dialog, but I could change it.
Posted on 2004-04-29 15:14:34 by Ewayne
No don't worry.. :) No need for it. The Red & Green Update helps me out a lot.

For your question:

Does anyone know how if there is an open application and then launch a program from AppLoad and then closing it, to set the focus back to the open application?

The only way I know is to scan thru all the windows and find the one which is currently enabled. Save the handle and then call SetActiveWindow in combination with SetForegroundWindow. I honestly don't know atm how to figure out how to know when the process you started stopped. :( (maybe using debug mode?)

Here's a little snippet I recently wrote - modified to suit your needs



EnumAllWindows:

invoke EnumWindows, offset EnumWindowCallBack, NULL

ret


EnumWindowCallBack proc handle:DWORD, nada:DWORD

invoke GetParent, handle
.IF eax == NULL ;No parent
invoke IsWindowEnabled, handle
.IF eax != NULL ;If the WIndow has keyboard and mouseinput
m2m LastVisibleWindow, handle
mov eax, FALSE ;FALSE to stop
ret
.ENDIF
.ENDIF
mov eax, TRUE
ret
EnumWindowCallBack endp


and then just

call SetActiveWindow, LastVisibleWindow and call SetForeGroundWindow, LastVisibleWindow
Posted on 2004-04-29 20:27:59 by JimmyClif
Hi Ewayne,

I just realized that when you just change the order of the Toolbar Icons the Update button will not give me green light, so my changes will get discarded unless I modify something else.
Posted on 2004-04-30 16:30:46 by JimmyClif
Also, even though it saves the Top Pos inside the ini file, it still sets itself at ypos 0 when I restart it.

----------

And while I was thinking about it... To see what window was last active, the enumwindow thing hardly would work (realized that a little late:)) But if I understand the WinHelp correctly the last active window handle should get sent to you in form of a WM_ACTIVATE message. If that works - the rest should be a piece of cake.
Posted on 2004-04-30 18:00:34 by JimmyClif
Hi Jimmy,

I fixed the green light when moving a Toolbar or Menu item.

Thanks for the enumerate code, but I was already there plus
I enumerated task and they would work fine if there was only
one user logged on and only one window open, else you don't
know what window you will end up with.

I have also been down the WM_ACTIVATE and WM_ACTIVATEAPP
road and everthing else I can think of.

The problem with WM_ACTIVATE and wParam = WA_ACTIVE is
lParam is always 0??

I'm still playing with the WM_ACTIVATEAPP message.

It's not a big thing, but if the M$ Office program can do it then there
is a way. When I get hung up on a problem like this I don't quit
untill I find a solution.

You can go to the first post on this thread for the update.

Thanks again for your help.

Ewayne
Posted on 2004-04-30 19:29:02 by Ewayne
Hi Ewayne,

Bad news, it still doesn't remember the Y-pos.

But good news: (I just save a bunch of money on my car insurance by switch....) I got the API you're looking for :

GetNextWindow using GW_HWNDPREV as search criteria. / You might want to grab the taskbar handle and discard that one in case it comes up as the last window. But I don't see no reason why this shouldn't work.

Cheers,
Jimmy

PS: Yes, afaik lParam is always 0.. It's always 0 if the previous handle wasn't created in the same process. schucks.
Posted on 2004-04-30 23:18:22 by JimmyClif
Hi Jimmy,

The bad news is I have already tried GetNextWindow using GW_HWNDPREV
and my system did not like GetNextWindow, but the GetWindow using GW_HWNDPREV
does the same thing and I still end up with 0 for the handle. Probably a process thing.

I added Tabs to the dialog boxes so you can use the keyboard.

About the "y" position when you open the options dialog box does it show
the proper value in the edit window?

What OS are you using? (It should not make any difference)

If you still have trouble with the "y" thing I will post a test AppLoad so we can
see what's going on.

You can go to the first post on this thread for the update.

Thanks,

Ewayne
Posted on 2004-05-01 02:26:35 by Ewayne
Sorry to hear the GetNextWindow didn't work. Alright - I'm done guessing. :(

>> About the "y" position when you open the options dialog box does it show the proper value in the edit window?

No, it doesn't - only shows 0 in the dialog. Shows 5 inside the ini file though.

I use WinXP.
Posted on 2004-05-01 22:43:31 by JimmyClif
Hi Jimmy,

Thanks for all of your help.

I can return to the proper window most of the time by
sending Alt+Esc when I receive the WM_ACTIVATE message
and wParam = WA_ACTIVE and lParam = 0.

But i'm still not happy with it.

About the "y" thingy, maybe none of the options are being
extracted.

Can you change the "x" position or the Toolbar style and have
the program load with the proper settings?

Do you have the Home or Pro version?

Thanks,

Ewayne
Posted on 2004-05-01 23:49:49 by Ewayne
I have the Home Edition. SP1 installed.

For the options, everything works.. When I change the x position or enable flat toolbars then changes will load correctly on startup.
Posted on 2004-05-02 07:28:06 by JimmyClif
Ewayne nice program. The command line browse button shows .ico etc as the file type when searching for an executable. Shouldn't this be .exe? Also i think it would be better if u put the browse button for the command line where the command line text is. Its kinda confusing a bit having the browse button all the way at the bottom.
Posted on 2004-05-02 07:38:10 by smurf
Hi Jimmy,

Try this test program.

When you load the program you should see four message boxes.

1. Length of the y position in the ini file.
2. Path to the ini file.
3. Ascii value of the y position in the ini file.
4. Value of the y position after converting from ascii.

Let me know what you get.

Thanks,

Ewayne
Posted on 2004-05-02 14:17:36 by Ewayne
Hi smurf,

I fixed the file open filter(It was right at one time).

I agree with you about the browse button confusion, so
I changed that.

You can go to the first post on this thread for the update.

Thanks,

Ewayne
Posted on 2004-05-02 14:28:23 by Ewayne
Ewayne here's what happens with your ApploadT:

First start:

---------------------------
Display Base Values
---------------------------
Dec. 1

Hex. 00000001

Bin. 1
---------------------------
OK
---------------------------


---------------------------
AppLoad
---------------------------
E:\Programs\apploadt\AppLoad.ini
---------------------------
OK
---------------------------


---------------------------
AppLoad
---------------------------
0
---------------------------
OK
---------------------------


---------------------------
Display Base Values
---------------------------
Dec. 0

Hex. 00000000

Bin.
---------------------------
OK
---------------------------


After changing the ypos to 5 it correctly saves to the ini file






FlatButtons=0
AlwaysOnTop=1
ShowToolTip=1
TopPos=5
RightPos=54



But on reloading I get all Messageboxes the same except:

---------------------------
AppLoad
---------------------------
5
---------------------------
OK
---------------------------


Hope this helps.

PS: I CTRL-C'ed the MessageBoxes... The last Msgbox does in fact not show a number for Bin.
Posted on 2004-05-02 19:41:56 by JimmyClif
Hi Jimmy,

Sorry about the bug.

If you would have used a value > 9 you you would not have seen the bug.

For some reason (that I don't know) if the length was not 2 I ignored it.

You can go to the first post on this thread for the update.

Thanks,

Ewayne
Posted on 2004-05-02 21:33:47 by Ewayne
No worries... I'm glad it's solved :)
Posted on 2004-05-02 22:09:09 by JimmyClif