🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #3516

appactivate con id negativo

#3516
From: The_Pianist
Date: Tue, 25 Jun 2002 19:00
18 lines
1655 bytes
Salve a tutti
ho un piccolo problema:

devo far partire un exe tramite il comando R=shell("file.exe",vbNormalFocus)
e va bīŋŊ fin qui ok,
ma siccome devo inviare dei comandi SendKeys devo essere sicuro che il prog
attivo sia proprio lui quindi
Appactivate R

Il problema sorge qui, infatti l'ID del programma ha valore negativo o cmq
non valido  (-1508299 per la precisione) quindi l'istruzione da errore 5.
Come fare ???
In effetti potrei usare il titolo dell'app. ma mettiamo che ci siano 2 app.
con lo stesso titolo (scusate se complico le cose )

Spero che sia chiaro

Grazie
Technical Details
Message-ID: <R43S8.65306$Kt3.1602917@twister2.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-04!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed-east.nntpserver.com!nntpserver.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,28a7526c27215b3f,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-06-25 12:00:32 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-04!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed-east.nntpserver.com!nntpserver.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: "The_Pianist" <xx@xxx.it>
Newsgroups: free.it.visual-basic
Subject: appactivate con id negativo
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <R43S8.65306$Kt3.1602917@twister2.libero.it>
Date: Tue, 25 Jun 2002 19:00:01 GMT
NNTP-Posting-Host: 151.30.173.212
X-Complaints-To: abuse@libero.it
X-Trace: twister2.libero.it 1025031601 151.30.173.212 (Tue, 25 Jun 2002 21:00:01 MET DST)
NNTP-Posting-Date: Tue, 25 Jun 2002 21:00:01 MET DST
Organization: [Infostrada]