Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Windows Start Button


Hello everyone.


I need your help to beta test my start button program. It can change the caption, tooltip and icon of the button. Hope you try it!

Here's the new link for the file :
http://members.fortunecity.com/rbnwa...oads/sbeta.zip (160 Kb)

I attached a screenshot.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Please Help Me About Windows Start Button
Hallo, All The Guru In This Forum

How to change the Windows Start Button Text/Image with using the API ?

Someone who have or known this code, please help me.
I really need all of your advice.
Thank's A Lot

TianVB



I'm the ones of the Visual Basic Programmer, and I really love this Programming Language.

SendKey For Windows Start Button
I originally wanted to start up an executable using either


Code:
Shell


or


Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "E:myProgprog.exe"


But neither of these appear to work for some reason, but the executable will run from:

Windows Start button -> Run... -> "EmyProgprog.exe" -> OK

Anyhow, the only way I can think of starting the app. automatically now is by using "SendKeys"...

e.g.

Code:
WshShell.SendKeys "{ENTER}"


Does anybody know how to "SendKeys" the Windows Start button?

(by the way, the WshShell.Run code above will work with some other executables - e.g. cmd or notepad)

Thanks!

Windows Start Button/Status Bar
Or you can simply, hide the taskbar .


Code:
Declare Function findwindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long

Declare Function showWindow Lib "user32" Alias "ShowWindow" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Public Const SW_HIDE = 0
Public Const SW_SHOW = 5

Dim tray&
Dim shtray&

Private Sub Command1_Click()
'hide
tray& = findwindow("Shell_TrayWnd", vbNullString)
shtray& = showwindow(tray&, SW_HIDE)
End Sub

Private Sub Command2_Click()
'Show
tray& = findwindow("Shell_TrayWnd", vbNullString)
shtray& = showwindow(tray&, SW_SHOW)
End Sub

Hide Start Button In Windows NT
I am unable to hide start button under windows NT the same code runs under win95/98/2000. any one knows how to do it?

-Sanjay kattimani

How To Call A Start Button Of Windows In Status Bar
hi friends i wan'nt to put the start button of the Windows Operating system in my Vbasic Application how can i do that......

How To Change The Windows Start Button Text/Image
I want to make a program that can change the Windows Start Button Text / Image. But I dont know how to do it.

I ever hear, we can do that with API, but how ?

Please someone who knows this code, may help me...I'll be waiting for you...Thank's

Tian Zega

How Do I Make A Button That Will Open Up The Windows Start Up Menu?
There is ample code at VBNET. Cut & paste the button subroutine for 'Show Start Menu' into your code

http://www.mvps.org/vbnet/code/screen/keybd_event.htm

Enabling/Disabling Start Button On Windows 2000
I am looking for the API(s) and sample code that I can use that will allow me to enable and disable the windows start button.  The reason is I am helping a friend of mine whose primary tech support person recently passed away, and he disables the start button upon loging (I assume).  I was hoping to:

1) understand how that can happen
2) have a temp solution to enable it to perform some admin task - such as backup the server

Any help would be appreciated.  Thank you.

How Do Have A Program Start At Windows Start Up In Windows Vista
this is the code I use for xp and it work great but doesn't work in vista

f Code:
Dim SScript
Set SScript = CreateObject("WScript.Shell")
SScript.RegWrite "HKLMSoftwareMicrosoftWindowsCurrentVersionRun" & App.EXEName, App.Path & App.EXEName


I'm think mybe this part change in vista "HKLMSoftwareMicrosoftWindowsCurrentVersionRun" if this is the case does any one know the right place?

Anyone With An Api To Disable Start Menu? Not Start Button
please

anyone with an api to disable start menu? Not start Button

On To Make A Program Start On Windows Start Up
A few days ago I posted a question about a clock, well the clock it finished and I need to make it start when windows starts. How do I do that? I know I have to add it to the registry somehow, but I don't know how to.


Thanks,
Sir Loin

Start A Program At Windows Start Up
is there anyway to start an exe or anything for that matter when windows starts up??? also can somoe tell me how to make a batch file that will run the desired application when an application of certain file name/type is started

Start Program On Windows Start Up
How can I start my program on windows start up but I want to be able to add the program so it only starts up for the current person that is logged in to windows.

Help With A START Button
I have a project with 5 forms (form1, form2, form3,form4,form5). In forms1-4 each has a listbox(listbox1, listbox2, listbox3, listbox4) along with a load button. With the load button i'm able to load .txt files into the listbox's For instance i can load names into forms 1 and 2. In forms 3 and 4 I can load phone numbers. Now on form5 i have 4 labels (label1. label2, label3, label4) In label1 I would like the first word from listbox1 in form1 to appear, and the same thing for the other 3 forms, I would like the first word or number from the other listbox's to appear in the other 3 labels , and continulousy rotate through the text in the listboxes into the labels, until it gets to the last text in the listbox's. BUT I only want this to be done when the "start" button is clicked. (meaning i only want the information from the listbox's to apper in the labels when the start button is clicked) if the start button is not click then the labels on form4 should remain blank until it is clicked.

If anyone could provide me with some help with this coding it would be appreciated.

Start Button
Is there a API message that can be sent to engage the Start button on the task bar.
Thanks

Start Button
hey..how can i hide the start button and make it re-appear using 2 command buttons? e.g.
---------------------------
Private Sub cmdHide_Click()

End Sub
---------------------------
Private Sub cmdShow_Click()

End Sub
---------------------------

The Start Button
Hwo would i change the text of the start button? Once i had a program that changed it for y ou, the graphic too, but i had to reformat =(. So is it stored in the registry or is it someplace else, and how can i change it from my prorgam?

Start Button
Does anyone knoe hoe to make a popup buttin popup when the start button is clicked??

Start Button
I've been searching previous posts for the past 3 hours and haven't found the solution so i'm posting myself

I wish to use the Windows startkey to popup my own menu as I have designed my own task bar

How can't I disable the start button but detect the button being pressed

I can allready disable it I just need to detect if someone presses it

I'd appreciate any help

The Start Button
I'm not too sure, but I think the newest version of Icon Forge can do this.
http://www.cursorarts.com

New Start Button
Hi!

I have this code:


Code:
Const WS_CHILD = &H40000000
Const WM_LBUTTONDOWN = &H201
Const WM_LBUTTONUP = &H202
Const SW_HIDE = 0
Const SW_NORMAL = 1
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long
Dim tWnd As Long, bWnd As Long, ncWnd As Long
Private Sub Form_Load()
Dim R As RECT
'Get the taskbar's window handle
tWnd = FindWindow("Shell_TrayWnd", vbNullString)
'Get the start-button's window handle
bWnd = FindWindowEx(tWnd, ByVal 0&, "BUTTON", vbNullString)
'Get the start button's position
GetWindowRect bWnd, R
'Create a new button
ncWnd = CreateWindowEx(ByVal 0&, "BUTTON", "Start", WS_CHILD, 0, 0, R.Right - R.Left, R.Bottom - R.Top, tWnd, ByVal 0&, App.hInstance, ByVal 0&)
'Show our button
ShowWindow ncWnd, SW_NORMAL
'Hide the start button
ShowWindow bWnd, SW_HIDE
End Sub
Private Sub Form_Unload(Cancel As Integer)
'show the start button
ShowWindow bWnd, SW_NORMAL
'destroy our button
DestroyWindow ncWnd
End Sub



Can anyone tell me how i can run code when the new start button is clicked??

Thanx for any help

About The Start Button...down There
I'm here again....

StartButton has lots of bugs before...I have already fix that. Here try my improved StartButton.

Tell me what happens if u use that on your OS okay? I know I haven't yet tried this on WinME/2000/NT. Whew...keeping your program to be compatible is not just so easy.

About the icon...it only accepts icons and bitmaps 16x16 pixels with 16 colors only. Don't ask why, you know why.
He He He...

Start Button
In a program i saw recently, the start button was moving from left to right.Can we do it with vb?If yes then how?Thanks in advance for any reply.

Start Button
how can I disable the start button through a VB program?

Start With Windows
Here is an example I put together of how to properly impliment the ability for your program start when windows starts. The module in the attached zip file does all the work, the rest is just there to show you how to use it.

With this module it is just as easy to set a program to run with windows as it is to remove it. By making it easy to use my hope is that you will use this instead of the many examples out there that show how to add your program to startup but not remove it or verify if it is there in the first place.

Please note that this is not something you should be doing in all your programs. You should only add this to your programs if you really need it and the user should always have a place in your program to control this functionality. Be good to your users!

Please report any problems or concerns via PM

How To Run APP Before Windows Start ?
My application set some of the regional setting values (like date format, Time Format) in registry.
This changes should reflect when windows starts.

Is there any way to start my application before windows start ?

Windows Start
How can I can do the following

User click command1 the following happens
the windows startmenu shows

see picture for details

Pic1

How Do You Get Something To Run At Start Up Of Windows
How do you get someting to run at start up

Start Up With Windows
no matter how hard i try it puts it in the wrong place in the registry can some one eather make me a small demo or give me the whole code becuase it jsut dont work for me

Start Up With Windows
how do you make a visual basic prgram make itself start out with windows :P like something with registry now i know one way its putting a shortcut or program in to the startup folder but thats unsafe so please explain fully

Windows Start/end
I guess that one way to start a program when windows starts is to lay it in autostart. But there must be other ways to? The other thing I want to do is run a program when windows is shuting down. The only thing I want to do in theses two programs is contacting a database thrue ADO and write some things in it and then end the program. Any surgestions how to launch these two programs in a nice way.

How Did Windows Start
Is is possible to tell how Windows started?

Start UP With Windows 98
I want to know the methods of how to start a program when Windows starts up. The effect is exactly like having the programs shortcut in the Start Up folder but I'm sure there are other ways that are less tedious.

ie. Registry, etc

Please provide logic for solutions or coding (preferred)

thanx in advance

Run On Windows Start
apart from putting a shortcut in the startp folder, is there any way of making an app load on windows startup?

Start With Windows
How would you start a program with windows from the registry? I want it so that if a checkbox is clicked it will start with windows and if its not clicked it won't start with windows. Please help me. =)

How To Run APP Before Windows Start ?
I am updating the system regional settings of a system through my application.

Is there any way to run my application before windows loads the setting informations from registry ?

Will adding my application in autoexe.bat solve the problem ?

Windows - Start - Run
When we click on the start button, then click on Run, a dialog box will be opened. We then will browse
or type a filename with or without the full path and click OK.

That file gets opened.

Now, the question is which windows exe/utility will take the file name (with or wthout full path) that
we have entered, as a parameter and opens that file depending on the extension??

Please get back to me as soon as possible.

Thank you very much for your response in advance.


Yamini

Start And Stop With One Button?
This is probally a dumb question and easy to do.. Im tryign to get a command button to start and stop.

sub_command1()
command1.caption="Stop"
end sub

but how would i make it do a start and stop function with one button?

Keyboard Start Button
Hi,
How can I be able to disable and enable the start button on the keyboard (between Ctrl and Alt)? Can you please send me a example?
Thank you,

HTML Button Start OCX
Is there a way I can start an OCX control from an HTML button... here's a sample..


Code:
<input type="button" value="start" onclick="javascript:progress();">

<form id="scannerform">
<OBJECT CLASSID="clsid:E70CAD52-48BA-40DC-A417-9EE3693F1954"
CODEBASE="http://10.10.1.48/MemoryContorl.ocx" HEIGHT=100 WIDTH=125 ID=Cmd1>
</OBJECT>
</form>

<SCRIPT LANGUAGE = VBScript>
Sub Page_Initialize
End Sub
</SCRIPT>
I need to run a javascript and then run the ocx.. how can i start it. I can't do the Page_Initalize when the button is pressed.

Can I do this?

Thank you.

Getting Position Of Start Button
How could i get the position of - lets say the start button?

I have created a function, that makes the mouse move over screen to a control of my choice, then it can write something, or click it. But i can't seem to find a way to make the function work outside my own program.


Code:
Public Sub AnalogMovement(Form As Form, C As Control, Optional TextToWrite As String)
Dim i As Integer
Dim BRight As POINTAPI
Dim pCoords As POINTAPI

GetCursorPos pCoords
BRight.X = C.Left + C.Width / 2
BRight.Y = C.Top + C.Height / 2

ClientToScreen Form.hwnd, BRight
SetCursorPos BRight.X, BRight.Y

If pCoords.X > BRight.X Then
Do Until pCoords.X = BRight.X
DoEvents
pCoords.X = pCoords.X - 1
SetCursorPos pCoords.X, pCoords.Y
Sleep 5
Loop
ElseIf pCoords.X < BRight.X Then
Do Until pCoords.X = BRight.X
DoEvents
pCoords.X = pCoords.X + 1
SetCursorPos pCoords.X, pCoords.Y
Sleep 5
Loop
End If

If pCoords.Y > BRight.Y Then
Do Until pCoords.Y = BRight.Y
DoEvents
pCoords.Y = pCoords.Y - 1
SetCursorPos pCoords.X, pCoords.Y
Sleep 10
Loop
ElseIf pCoords.Y < BRight.Y Then
Do Until pCoords.Y = BRight.Y
DoEvents
pCoords.Y = pCoords.Y + 1
SetCursorPos pCoords.X, pCoords.Y
Sleep 10
Loop
End If


mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
If Not TextToWrite = "" Then
SimulateText TextToWrite
End If
End Sub

Keycode, Start Button
does anyone know the the vb Constant for the start button key or even is charactor number (if it has one), i know most key code and constants for most the other keys, or can figure out of to do it, but the start key, and i need it now for programing im going to be writting tonight (send keys type)

Start/stop Button
This is an easy 1 but i can't remember how to do it. I want a single button to start sumthing when clicked and to stop it when clicked again and repeat start/stop
Thanks!

XP Start Button Any Ideals?
How do you edit the start button on your computer? i know everyone uses ResHack to do it but you have to boot into dos and all kinds of crap before you can edit anything. i dowloaded a program called avoid start button, when you go to click on it it runs from you. after seeing that i wondered why you have to boot to dos to edit the button?

can you not edit any files ? i would like to learn to design my new start button and text, change the color of the taskbar etc,,, Thanks.

Start Button Text
Hi!
I know that it is possible
to change the text in the Start Button
'Click here to start" in the registry.
But where???

/ CyberCarsten [^Cc^]

Start Menu Button
I found this code some time ago here in the forums. It works fine, except I would like to be able to add an Icon to the start menu button, like what windows already has.. Any ideas??



VB Code:
Option Explicit Private Const WS_CHILD = &H40000000Private Const SW_HIDE = 0Private Const SW_NORMAL = 1 Private Type RECT    Left    As Long    Top     As Long    Right   As Long    Bottom  As LongEnd Type Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As LongPrivate Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As LongPrivate Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As LongPrivate Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As LongPrivate Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long Dim lngButtonWnd        As LongDim lngTaskBarWnd       As LongDim lngNewButtonWnd     As Long Private Sub Form_Load()Dim udtRect As RECT    lngTaskBarWnd = FindWindow("Shell_TrayWnd", vbNullString)    lngButtonWnd = FindWindowEx(lngTaskBarWnd, ByVal 0&, "BUTTON", vbNullString)    GetWindowRect lngButtonWnd, udtRect    lngNewButtonWnd = CreateWindowEx(ByVal 0&, "BUTTON", "Woof", WS_CHILD, 0, 0, udtRect.Right - udtRect.Left, udtRect.Bottom - udtRect.Top, lngTaskBarWnd, ByVal 0&, App.hInstance, ByVal 0&)    ShowWindow lngNewButtonWnd, SW_NORMAL    ShowWindow lngButtonWnd, SW_HIDEEnd Sub Private Sub Form_Unload(Cancel As Integer)    ShowWindow lngButtonWnd, SW_NORMAL    DestroyWindow lngNewButtonWndEnd Sub


Rudy

(Re)loading The START Button
Greetings !
Suppose i terminated the START button (first i figure out the hWnd of the START button, then i terminate it just like a normal window), my problem is not in that, my problem is that at some point in my program i should show the START button again, and i have NO IDEA AT ALL how to reload the START button !
If anyone is thinking that i could hide the START button instead of terminating it, then show it again, well, this will not work in my case.
Thanks in advance

Disable Start Button
Is it possible in VB to disable the start button and the task bar? I want the user should be able to use only my program on this computer.

Thanks.

Do The Start Button (Resolved Somewhat)
Would anyone know how to emulate the windows 9x start button? i'm creating a "replacement" start button for my lap top cause it doesn't have a start button.

Thanks in advance

Copyright © 2005-08 www.BigResource.com, All rights reserved