Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Greg Newsgroups: it.comp.lang.visual-basic Subject: Re: FindWindow Date: Fri, 04 Nov 2016 20:07:46 +0100 Organization: solani.org Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: solani.org 1478286473 2616 eJwFwQkRADAIAzBLK08BOYwb/iUscSU4YXSar6+KtOGgUKdz9G1UCC1tyl8i0H4nU3ca0vz7ChBC (4 Nov 2016 19:07:53 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 4 Nov 2016 19:07:53 +0000 (UTC) X-Newsreader: MesNews/1.08.06.00-it Cancel-Lock: sha1:38DpIFjV3r7UZYEKdxr1x98C8zE= X-User-ID: eJwFwYkBABAMA8CVUtJgHPrsP4I7nzLFolz09iYV4lm6PBXD3n0Pe9fADGSCxuy+mtsBQ30TrBC7 X-NNTP-Posting-Host: eJwNyMERwDAIA7CZIGDO49Sl3n+ERk/1QeCdQqPa7VUdnlhpSsm1rGyW9d3zAzASJKIm7fkBM/URpA== Xref: csiph.com it.comp.lang.visual-basic:18898 Il 04/11/2016 16:41:31 Franz_aRTiglio ha scritto: > Il 04/11/2016, Greg ha detto : > >> ee = "Notepad" >> ee = "Internet Explorer" >> twnd = FindWindow(ee, vbNullString) >> nel primo caso funziona, nel secondo fallisce! >> Qualche indicazione per aitarmi a capire? Grazie > > Azzo.. non tocco 'sta roba da una vita, prova con "IEFrame" > > twnd = FindWindow("IEFrame", vbNullString) ieframe è il nome della dll, non ci avrei mai pensato! Ho provato, nonostante fossi scettico, ed effettivamente mi ritorna un handle, ma forse non è quello giusto, perchè quando lo passo a SendMessage: k = SendMessage(vHandle, WM_SETFOCUS, 0&, 0&) non succede nulla. Quindi binario morto pure questo :( -- Greg