This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/eddat/qh.vi

38 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Description:
# ============
# This script invokes Microsoft's quick help from the editor. I have found
# this to be useful for looking up Windows functions and types.
# To make use of this install qh.exe and the quick help version of the help
# files from the Windows SDK. Then make sure that qh.exe can find the help
# files (you may need to set the HELPFILES environment variable).
# Finally call the script with no parameters to get the windows table of
# contents, or give a topic as the first parameter to look up that topic.
#
# I have found the following mapping to be useful in conjuction with this
# script:
# map SHIFT_F2 \x\e:so qh.vi \n
# With this pressing shift F2 on the first character of a windows function or
# type looks up that function or type in the qh help files.
#
#
# Modified: By: Reason:
# --------- --- -------
# 15 July 92 S.Bosnick created
#
echo off
assign %(len) = strlen %1
if %(len) == 0
assign %(topic) = win31
else
assign %(topic) = %1
endif
set nopauseonspawnerr
set quiet
!qh -u %(topic)
set noquiet
set pauseonspawnerr
if %(Sysrc) == 3
echo 1 /Topic "%(topic)" not found by qh/
endif
echo on