Azu Posted February 26, 2006 Posted February 26, 2006 On some programs there is a question mark next to the minimize button.. how do I make one of those and have it so when someone clicks on it, it opens up firefox and goes to, say, www.website.com/helpfile.html ?
cppman Posted February 26, 2006 Posted February 26, 2006 LMAO! I told you! nah, im just playing. Thats an interesting question, i wonder if it has been done. Have you searched the forums for ur answer? Miva OS Project
GaryFrost Posted February 26, 2006 Posted February 26, 2006 look for $DS_CONTEXTHELP in the help file SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
nfwu Posted February 26, 2006 Posted February 26, 2006 Extended Style table Extended Style result $WS_EX_CONTEXTHELP Includes a question mark in the title bar of the window. Cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX. That should help. Look up GuiCreate in the Helpfile. #include <GUIConstants.au3> GUICreate ( "title" , 100 , 100 , 0 , 0 , -1 , $WS_EX_CONTEXTHELP ) That should do the trick #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
Valuater Posted February 26, 2006 Posted February 26, 2006 That should help. Look up GuiCreate in the Helpfile. #include <GUIConstants.au3> GUICreate ( "title" , 100 , 100 , 0 , 0 , -1 , $WS_EX_CONTEXTHELP ) That should do the trick #) i was waiting for someone else to post... it didn't work for me 8)
nfwu Posted February 26, 2006 Posted February 26, 2006 #include <GUIConstants.au3> GUICreate ( "title" , 500 , 500 , 100 , 100 , -1 , $WS_EX_CONTEXTHELP ) GUISetState() Local $msg while $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() ; If $msg<> 0 and $msg <> -11 Then ; MsgBox(0, "", $msg) ; EndIf WEnd Complete demo. The problem is that i can't find the control id for the "?" button #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
GaryFrost Posted February 26, 2006 Posted February 26, 2006 #include <GUIConstants.au3> $Form1 = GUICreate("AForm1", 622, 448, 192, 125, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_BORDER,$DS_CONTEXTHELP),$WS_EX_CONTEXTHELP) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
GaryFrost Posted February 26, 2006 Posted February 26, 2006 #include <GUIConstants.au3> GUICreate ( "title" , 500 , 500 , 100 , 100 , -1 , $WS_EX_CONTEXTHELP ) GUISetState() Local $msg while $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() ; If $msg<> 0 and $msg <> -11 Then ; MsgBox(0, "", $msg) ; EndIf WEnd Complete demo. The problem is that i can't find the control id for the "?" button #) And you probably never will, i tried yours, couldn't get the question mark to work, mine works. I think the only way to get the info will be thru WM_NOTIFY When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Azu Posted February 26, 2006 Author Posted February 26, 2006 Okay but how do I make it so when the question mark is clicked it opens up firefox and goes to a certain page??
Sokko Posted February 27, 2006 Posted February 27, 2006 Probably you can't, since the question mark is intended to be used for context help only (hence the changed cursor, and messages being received by the controls you click on rather than the button itself). Based on the fact that the programs you've seen have had the question mark "next to the minimize button", and it's not possible to use the minimizebox style with contexthelp, those programs are most likely using a much more complicated method to get that button to show up (like programs that insert a "minimize to tray" button in the title bar).
Azu Posted February 27, 2006 Author Posted February 27, 2006 So.. what is the "Much more complicated method" and how do I put it into my program?It would need to be a minimize button to minimize it, a close button to close, and a question mark that opens up firefox to http://www.FreeThePenguins.com/AutoLogin/Help.html
BigDod Posted February 27, 2006 Posted February 27, 2006 So.. what is the "Much more complicated method" and how do I put it into my program?It would need to be a minimize button to minimize it, a close button to close, and a question mark that opens up firefox to http://www.FreeThePenguins.com/AutoLogin/Help.htmlWhy not just place a button at the top right below the close etc and use it as a help button. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Azu Posted February 28, 2006 Author Posted February 28, 2006 How come whenever I ask for help doing something, everyone basically says "That's to hard, why don't you try something else instead"
Moderators SmOke_N Posted February 28, 2006 Moderators Posted February 28, 2006 How come whenever I ask for help doing something, everyone basically says "That's to hard, why don't you try something else instead" Let me make sure I get this in Quotes... Your post tend to like to dissapear...Gary gave you the something to look at, did you try it?... Did it work?... Did it fail?... Can you post what you tried if you did try what he suggested? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Azu Posted March 1, 2006 Author Posted March 1, 2006 It changes the cursor icon.. it didn't open up firefox and go to the help page though.. I don't need the cursor icon to change. Yes it did change the cursor icon but I have no need for that =/
GaryFrost Posted March 1, 2006 Posted March 1, 2006 http://msdn.microsoft.com/library/default....dialogboxes.asphttp://msdn.microsoft.com/library/default....ges/wm_help.asp SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Azu Posted March 3, 2006 Author Posted March 3, 2006 What does that have to do with what I'm asking? 1: That's about dialog boxes not guis 2: That is c++ not autoit
GaryFrost Posted March 3, 2006 Posted March 3, 2006 What does that have to do with what I'm asking?1: That's about dialog boxes not guis2: That is c++ not autoit If you read it you would understand how the messages are sent.AutoIt is written in C++, besides it's not C++ but API. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Azu Posted March 3, 2006 Author Posted March 3, 2006 I want to know how to do it in autoit though not API... x_x
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now