EliTe_ThuT Posted February 5, 2007 Share Posted February 5, 2007 (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 February 5, 2007 by EliTe_ThuT Link to comment Share on other sites More sharing options...
BrettF Posted February 5, 2007 Share Posted February 5, 2007 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"). Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted February 5, 2007 Author Share Posted February 5, 2007 (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 February 5, 2007 by EliTe_ThuT Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted February 9, 2007 Author Share Posted February 9, 2007 UP! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 9, 2007 Moderators Share Posted February 9, 2007 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 More sharing options...
BigDod Posted February 9, 2007 Share Posted February 9, 2007 Another option GUISetHelp("C:\WINDOWS\hh.exe " & @ScriptDir & "\help.chm") 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 Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted February 9, 2007 Author Share Posted February 9, 2007 Another option GUISetHelp("C:\WINDOWS\hh.exe " & @ScriptDir & "\help.chm") kk...I'll try this as soon as I can. Thanks Link to comment Share on other sites More sharing options...
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