Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'ascii': 0.07; 'be:': 0.09; 'investigate': 0.09; 'received:mail-bw0-f46.google.com': 0.09; 'subject:keys': 0.09; 'files.': 0.10; 'pm,': 0.11; 'output': 0.12; 'wrote:': 0.14; 'badly.': 0.16; 'received:209.85.214.46': 0.16; 'subject:function': 0.16; 'winner)': 0.16; 'tue,': 0.20; 'help.': 0.22; 'header:In-Reply-To:1': 0.22; 'further.': 0.23; 'keys': 0.23; 'thus': 0.24; 'somebody': 0.25; 'version': 0.25; "i'm": 0.26; 'instead': 0.26; 'unable': 0.26; 'message- id:@mail.gmail.com': 0.28; 'testing': 0.28; 'probably': 0.30; 'btw,': 0.31; 'subject:send': 0.31; 'functional': 0.31; 'to:addr :python-list': 0.32; 'another': 0.32; 'actually': 0.34; 'legacy': 0.35; 'releases': 0.35; 'trigger': 0.35; 'running': 0.36; 'think': 0.36; "we're": 0.37; 'received:209.85': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'files': 0.38; 'received:209.85.214': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'might': 0.40; 'best': 0.60; 'order': 0.61; '2011': 0.62; 'mar': 0.64; 'subject:program': 0.68; 'press': 0.71; 'alexander': 0.84; 'barcode': 0.84; 'cares.': 0.84; 'fortunate': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=cA+3DFFTYa9xcHyTlOG8Vf97WDIXo4xmDH+BAZNNUh0=; b=cQMFHlYo6Xcdi/7Bun6gOat8FEyPwGP25XfRoqf4WtwDPzM04p82hLUWISpAcTvgxb ycNqXsXSKgwB3WGdGRfkxNCJ/sEbQ4dzMSURFaUwcWHl4w8ArHrmI74Ck5a29PAx+wYf iVZzJ0yKdmLlj1BP1B7JqUa6Kw0bYFuZQ9BBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LndyoTlH25Gu7bCnUpL2p1LTitRrjjnrl2PY5bl+JQjVx/9TRrloiUuEP7Y2vX3mJY kiZZsOoS6UO8o8XYwpBL6JK4wGobgRDxOfvCPJD8dl/2E/BtJqUHGttBhAEHe63/zhWI 1OEd9pNE6pydczAOoMyt8W5H6Votc5eFEx6Hg= MIME-Version: 1.0 In-Reply-To: <20110329135945.GB2784@xrgtn-q40> References: <36dcb36a-1de0-4715-8803-dc7e43c8e94b@dn9g2000vbb.googlegroups.com> <20110319225228.GB30333@xrgtn-q40> <20110329135945.GB2784@xrgtn-q40> Date: Wed, 30 Mar 2011 08:38:36 +0800 Subject: Re: send function keys to a legacy DOS program From: Justin Ezequiel To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1301445518 news.xs4all.nl 81481 [::ffff:82.94.164.166]:44365 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2202 On Tue, Mar 29, 2011 at 9:59 PM, Alexander Gattin wrote: > I'm not sure regarding the ASCII part. I think it > might need to be set to 0x00 for all functional > keys instead of 0x3F/0x3C/0x41, but probably no > application actually cares. > > Another thing is that you may need to send key > release after key press in order for the > application to trigger the F5/F2/F7 event. I'm not > sure what the scan codes for F5/F2/F7 releases > are, but think that they may be: > > F5: 0xBF > F2: 0xBC > F7: 0xC1 > > -- > With best regards, > xrgtn > appreciate all the help. unfortunately, my hard drive crashed and badly. thus was unable to investigate this further. as I was running out of time, we're now going for a reimplementation of the legacy barcode program. was fortunate to find an implementation that gives the same output (we're testing thoroughly and we may have found a winner) oh btw, it was a seagate 250GB drive for my dell laptop may need to pay somebody to try to recover my personal files. all work files are in version control so they're ok