Jump to content

buttons opening files?


iHonda
 Share

Recommended Posts

ok i'm trying to make a GUI with a button that opens a help file. i know that u guys are gonna say to look in the help file but i looked and i only found stuff that opens a message box and stuff. all i need to know is the code that will allow me to do that or even a hint on where i can find it. thanx

A great place to start Autoit 1-2-3

Link to comment
Share on other sites

  • Moderators

o i didnt know that the run() command could open stuff like that i thought it only opened .exe stuff

Every time I look at your Avatar, I feel like getting a banana split!

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.

Link to comment
Share on other sites

Every time I look at your Avatar, I feel like getting a banana split!

$Hlp = @ScriptDir & "\my_file.chm"
Run ("hh.exe " & $Hlp)
Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

or an alternative so you can run any file

$Hlp = @ScriptDir & "\my_file.chm"
Run(@comspec & " /c start " & $hlp, @scriptdir, @SW_HIDE)

~cdkid

AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
Link to comment
Share on other sites

hmm ok thats a little too complicated for my simple mind i think ill just have an online help file and have the button open the browser to that page. whats a good free host?? smoke_n why does my avitar make u want a banana split???

Edited by Zmaster

A great place to start Autoit 1-2-3

Link to comment
Share on other sites

hmm ok thats a little too complicated for my simple mind i think ill just have an online help file and have the button open the browser to that page. whats a good free host?? smoke_n why does my avitar make u want a banana split???

Fry http://www.freewebs.com or http://t35.com

I prefer freewebs.

#)

Link to comment
Share on other sites

What about this?

GUISetHelp

--------------------------------------------------------------------------------

Sets an executable file that will be run when F1 is pressed.

GUISetHelp ( helpfile [, winhandle])

Parameters

helpfile - file that will be run if F1 is pressed when the GUI is active.

winhandle - [optional] Windows handle as returned by GUICreate (default is the previously used window).

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...