🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #131688

[dialog] scripting help needed

#131688
From: matija
Date: Mon, 25 Aug 2003 20:45
28 lines
2064 bytes
i was transferring my world-famous x-now-playing script v1.0 from
delphi to dialog, but, you guessed it right, i can't make it work.
the scripting engine does not support pointers, and i can't think
of any workaround for the code fragment below. can anyone help?


var hwndWinamp, pIDHandle : cardinal;
    buffer : array[0..500] of char;
    numBytesRead : cardinal;

...

  hwndWinamp := findWinampHWND;

  getWindowThreadProcessId (hwndWinamp, pIDHandle);
  hwndWinamp := openProcess (PROCESS_ALL_ACCESS, false, pIDHandle);

  readProcessMemory (hwndWinamp, pointer(getWinampSkinNameAddr), @buffer, 500, numBytesRead);
  // getWinampSkinNameAddr is a function which returns a cardinal



-- 
there is a cheer. the gnomes have learned a new way to say hooray.   [-shpongle]

address is scrambled - remove SPAMISEVIL to reply
Technical Details
Message-ID: <s8139uib77li$.dlg@shpongle.604>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!CARNet.hr!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <s8139uib77li$.dlg@shpongle.604>
Subject: [dialog] scripting help needed
Date: Mon, 25 Aug 2003 22:45:52 +0200
From: matija <mSkPrAnMic@jaIgSor.srEcVe.IhLr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!CARNet.hr!not-for-mail
Newsgroups: news.software.readers
Organization: 604
Lines: 27
NNTP-Posting-Host: cmung694.cmu.carnet.hr
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: bagan.srce.hr 1061844347 1865 193.198.130.186 (25 Aug 2003 20:45:47 GMT)
X-Complaints-To: abuse@carnet.hr
NNTP-Posting-Date: Mon, 25 Aug 2003 20:45:47 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.5.126hr (ad67f670.437.109)
X-Afraid-Of: spiders
X-Face: %/hQHc<X^N[1hE8@c3IA1is_0%IC5pCJ%3T5\(Joy<h;qu(:5*G(^tWLul(%XEQ\V"6}v"M -5_(:lMW{a=2%}+T8Im3admbtmH{jf,R[(\X.RfPQ8NWj`Wa86r7wVPE!_\/
X-Mastered: the art of pizza making
X-Searching-For: GMT soundtrack (guy sigsworth)