الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

فتح عنوان معين في ملف chm

بدأه ريحانة الاقصى في 6 سبتمبر 2012 · 1 رد · 537 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عيكم ورحمة الله وبركاته

اريد اضافة ايقونة help الى برنامج لدي ولكن عند استخدامي للكود التالي يقوم بفتح الملف من بدايته وبكن انا اريد فتح عناوبن معينة كيف اقوم بذلك

   if(evt.getSource()==help ){
       try
        {//D:\Third year\data project\desin\src
       Desktop.getDesktop().open( new File("D:/Third year/data project/desin/src/a.chm"));
}
        catch (Exception ex)
        {
        ex.printStackTrace();
        System.out.println(ex.getMessage());
        }

    }
#2

جرب هذه الطريقة :

اقتباس

Is it possible to open a specific topic from the Hh.exe command line?

Yes, try:

hh mk:@MSITStore:/path/filename.chm::/path\topicname.htm

For example, with the compiled help file htmlhelp.chm, you can use:

hh mk:@MSITStore:htmlhelp.chm::/api.htm

hh mk:@MSITStore:c:\windows\help\htmlhelp.chm::/flash\browse.htm

المصدر:

http://msdn.microsoft.com/en-us/library/ms669980(VS.85).aspx#7

استخدم :

Runtime.getRuntime().exec("hh.exe file.chm");

لتنفيذ الأمر ..

بالتوفيق،

1

http://informatic-ar.com منصة تعليمية عربية في علوم الحاسب والبرمجة

https://moalfat.com  للكتب الالكترونية والكورسات التعليمية

Everything we see now is just an engineering solution based on old science

مواضيع مشابهة