FAQ | Points | Add... | Recent posts | Search | Register | Log in


Visual Basic 2008 potrzebna komenda


Post new topic  Reply to topic      Main Page -> Forum Index -> Programming Generally -> Beginners Programming -> Visual Basic 2008 potrzebna komenda
Author
Message
black-11
Poziom 6
Poziom 6


Joined: 04 Nov 2009
Posts: 17
Location: gbw

Post#1 Post from the author of the topic 19 Mar 2010 09:43   

Visual Basic 2008 potrzebna komenda


Witam! Zrobiłem prosty program i wszystko działa Ok ale pojawił się mały z pozoru problem, a mianowicie program powtarza swoją czynność co 6 sekund przez ok 5 min ale za każdym razem trzeba na kliknąć na potrzebny obszar (w tym przypadku webbrowser). Potrzebuję więc komendy (jeśli taka istnieje) która nakieruje myszkę na wybrany obszar i kliknie na niego lewym przyciskiem myszy, bądź ewentualnie komendy uruchamiającej program znajdujący się na dysku C komputera. Proszę o szybką odpowiedź to naprawdę pilne!
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 19 Mar 2010 09:43   





Back to top
   
Dżyszla
Poziom 24
Poziom 24


Joined: 15 May 2005
Posts: 4528
Location: Żory (kiedyś Opole)

Post#2 19 Mar 2010 11:24   

Re: Visual Basic 2008 potrzebna komenda


poczytaj o komunikatach Windowsa
Back to top
   
black-11
Poziom 6
Poziom 6


Joined: 04 Nov 2009
Posts: 17
Location: gbw

Post#3 Post from the author of the topic 19 Mar 2010 16:58   

Re: Visual Basic 2008 potrzebna komenda


A może ktoś po prostu podać komendę uruchamiającą program z danej ścieżki??
Back to top
   
Dżyszla
Poziom 24
Poziom 24


Joined: 15 May 2005
Posts: 4528
Location: Żory (kiedyś Opole)

Post#4 19 Mar 2010 18:40   

Re: Visual Basic 2008 potrzebna komenda


ShellExecute z WinAPI
Back to top
   
black-11
Poziom 6
Poziom 6


Joined: 04 Nov 2009
Posts: 17
Location: gbw

Post#5 Post from the author of the topic 19 Mar 2010 23:32   

Re: Visual Basic 2008 potrzebna komenda


Próbuję, Próbuję i nic za nic nie mogę uruchomić programu autoit
C:\Users\User\Desktop\Autoit
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 19 Mar 2010 23:32   





Back to top
   
Dżyszla
Poziom 24
Poziom 24


Joined: 15 May 2005
Posts: 4528
Location: Żory (kiedyś Opole)

Post#6 19 Mar 2010 23:36   

Re: Visual Basic 2008 potrzebna komenda


podaj kod
Back to top
   
black-11
Poziom 6
Poziom 6


Joined: 04 Nov 2009
Posts: 17
Location: gbw

Post#7 Post from the author of the topic 20 Mar 2010 07:19   

Re: Visual Basic 2008 potrzebna komenda


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("C:\Users\User\Desktop\Autoit")
End Sub
Back to top
   
Dżyszla
Poziom 24
Poziom 24


Joined: 15 May 2005
Posts: 4528
Location: Żory (kiedyś Opole)

Post#8 20 Mar 2010 07:56   

Re: Visual Basic 2008 potrzebna komenda


Po pierwsze - bardziej to zapis katalogu niż programu przypomina.
Po drugie - mówiłem o ShellExecute, a nie Shell.
Back to top
   
black-11
Poziom 6
Poziom 6


Joined: 04 Nov 2009
Posts: 17
Location: gbw

Post#9 Post from the author of the topic 20 Mar 2010 11:58   

Re: Visual Basic 2008 potrzebna komenda


To nie działa chyba na pliki z rozszerzeniem au.3...
Bo painta otwiera notatnik też a tego co potrzebuję nie.
Zna ktoś może komendę poruszającą kursorem myszy??
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 20 Mar 2010 11:58   





Back to top
   
tzok
Poziom 26
Poziom 26


Joined: 13 Sep 2002
Posts: 20223
Location: Bielsko-Biała / Sosnowiec

Post#10 20 Mar 2010 13:28   

Re: Visual Basic 2008 potrzebna komenda


...w/g mnie to chodzi o to, że sam nie wiesz co chcesz uruchomić. Nie chcesz uruchomić programu, tylko chcesz otworzyć plik w skojarzonym z nim programie, uruchamiaj program, podając nazwę pliku których chcesz w nim otworzyć jako parametr.
Back to top
   
Dżyszla
Poziom 24
Poziom 24


Joined: 15 May 2005
Posts: 4528
Location: Żory (kiedyś Opole)

Post#11 20 Mar 2010 14:37   

Re: Visual Basic 2008 potrzebna komenda


Albo korzystaj z shellexecute i podawaj zawsze rozszerzenia!
Back to top
   
Post new topic  Reply to topic      Main Page -> Forum Index -> Programming Generally -> Beginners Programming -> Visual Basic 2008 potrzebna komenda
Page 1 of 1
Similar topics
Visual basic 2008, Jak usunąć spacje i zostawić tekst? (3)
Visual Basic 2008 Jak animować rysunek (6)
liczba losowa w Visual Basic 2008 (4)
[VISUAL BASIC 2008] Odczyt z RS232 (4)
Visual basic 2008 Wykres (7)
Visual Basic, komenda TextBox itp (4)
[VISUAL BASIC]Visual Basic 2008 DataGridView (4)
Visual Basic 2005 - 2008 Jak zrobić buttona z grafiką ? (1)
Jak stworzyć nowy element od strony kodu w Visual Basic 2008 (5)
Rzut ukośny w Visual Basic-potrzebna pomoc. (7)

Page generation time: 0.103 seconds


FAQ || Administrator || Moderators || Widgets and banners || Contact
elektroda.pl topic RSS feed