Jump to content

F1 help


Recommended Posts

Hi,

I have my GUI, and I have a little text saying press F1 for help.

And I have this file called help.chm

The problem is that I'm not able to make that work. I have tried

if_IsPressed("70")  then Run("help.chm") ;In a loopoÝ÷ Ù©Ýjëh×6GuiSetHelp("help.chm") ;At the top of my script (after the GUI is created)

but it seems like it cannot load the .chm

Someone could help me with that?

Edited by EliTe_ThuT
Link to comment
Share on other sites

Hi,

I have my GUI, and I have a little text saying press F1 for help.

And I have this file called help.chm

The problem is that I'm not able to make that work. I have tried

if_IsPressed("70")  then Run("help.chm")

and

GuiSetHelp("help.chm")

but it seems like it cannot load the .chm

Someone could help me with that?

Q: Where is your help file located? If it's in your script dir then use:
GuiSetHelp(@scriptdir&"\help.chm")
.
Link to comment
Share on other sites

  • Moderators

HotKeySet('{F1}', '_ExecuteHelp')
HotKeySet('{ESC}', '_ExitNow')

While 1
    Sleep(10000)
WEnd

Func _ExecuteHelp()
    ShellExecute(@ProgramFilesDir & '\AutoIt3\AutoIt3.chm')
EndFunc

Func _ExitNow()
    Exit
EndFuncoÝ÷ Ù.r¥u©l¢ë²¶§X¤y«­¢+ÙIÕ¸¡
½µMÁµÀìÌäì½ÅÕ½ÐìÌäìµÀìAɽɵ¥±Í¥ÈµÀìÌäìÀäÈíÕѽ%ÐÌÀäÈíÕѽ%Ð̹¡´ÅÕ½ÐìÌäì°ÌäìÌäì°M]}!%
instead of ShellExecute (note the double quotes if you use this the Run example)

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

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...