Sign in to follow this  
Followers 0
EliTe_ThuT

F1 help

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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")
.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Q: Where is your help file located? If it's in your script dir then use:

GuiSetHelp(@scriptdir&"\help.chm")
.
Yes it is in the same dir...but this doesn't work...don't know why. Edited by EliTe_ThuT

Share this post


Link to post
Share on other sites

UP!

Share this post


Link to post
Share on other sites

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)


[center]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.[/center]

Share this post


Link to post
Share on other sites

Another option

GUISetHelp("C:\WINDOWS\hh.exe " & @ScriptDir & "\help.chm")


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Another option

GUISetHelp("C:\WINDOWS\hh.exe " & @ScriptDir & "\help.chm")
kk...I'll try this as soon as I can.

Thanks

Share this post


Link to post
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
Sign in to follow this  
Followers 0