cs_shivan
Messages postés363Date d'inscriptionjeudi 20 décembre 2001StatutMembreDernière intervention25 août 2003
-
10 avril 2002 à 10:45
tH3 GuItArIsTe 666
Messages postés58Date d'inscriptionjeudi 12 mai 2005StatutMembreDernière intervention26 août 2006
-
1 juin 2005 à 19:02
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
tH3 GuItArIsTe 666
Messages postés58Date d'inscriptionjeudi 12 mai 2005StatutMembreDernière intervention26 août 2006 1 juin 2005 à 19:02
ca marche pas quand je le met en .vbs
c po en vbs c en koi ?? en .exe en koi ??
si c po le kode pour .vbs komment le faire en .vbs ??
merci de me repondre vite
+++ salut +++
Bladelamerz
Messages postés9Date d'inscriptionlundi 28 avril 2003StatutMembreDernière intervention18 novembre 2003 26 mai 2003 à 15:53
Sympa tous ces commentaires
cs_Nil
Messages postés85Date d'inscriptiondimanche 2 décembre 2001StatutMembreDernière intervention31 décembre 2002 16 nov. 2002 à 15:59
lol forcément l'unité n'est pas la même ! Celle de Screen est comme celle des pages par défault càd elle est en Twips : 1 twips = 15 pixels
If test.X >= Screen.Width / Screen.TwipsPerPixelX - 1 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos Screen.Width - 2, Pos.Y
If test.Y >= Screen.Height / Screen.TwipsPerPixelY - 1 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, Screen.Height - 2
Bon enfin voila pour ce petit détail ridicule ;-) J'ai tenté de faire une accélération souris moi même... mais ca foire un peu, j'aimerais que tu essaies à ton tour plz, envoie moi un message quand tu l'auras finis :)
cs_shivan
Messages postés363Date d'inscriptionjeudi 20 décembre 2001StatutMembreDernière intervention25 août 2003 10 avril 2002 à 13:29
ha effectivement... tu as raison...
alors tu remplace Screen.Width par ScaleX(Screen.Width, vbTwips, vbPixels) et Screen.Height par ScaleY(Screen.Height, vbTwips, vbPixels). La ca marchera je pense
fou volant13
Messages postés55Date d'inscriptionvendredi 29 juin 2001StatutMembreDernière intervention 2 février 2002 10 avril 2002 à 11:04
Merci, j'avais pensé a faire ca, mais je connaissais pas les propriétés screen.????
Seulement je viens d'essayer mais apparemment, l'unité est pas la meme. TAnt pis...
cs_shivan
Messages postés363Date d'inscriptionjeudi 20 décembre 2001StatutMembreDernière intervention25 août 2003 10 avril 2002 à 10:45
ben pour ke ca fonctionne avec toutes les résolutions, tu remplace :
If test.X >= 1151 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos 1150, Pos.Y
If test.Y >= 863 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, 862
par
If test.X >= Screen.Width - 1 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos Screen.Width - 2, Pos.Y
If test.Y >= Screen.Height - 1 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, Screen.Height - 2
1 juin 2005 à 19:02
c po en vbs c en koi ?? en .exe en koi ??
si c po le kode pour .vbs komment le faire en .vbs ??
merci de me repondre vite
+++ salut +++
26 mai 2003 à 15:53
16 nov. 2002 à 15:59
If test.X >= Screen.Width / Screen.TwipsPerPixelX - 1 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos Screen.Width - 2, Pos.Y
If test.Y >= Screen.Height / Screen.TwipsPerPixelY - 1 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, Screen.Height - 2
Bon enfin voila pour ce petit détail ridicule ;-) J'ai tenté de faire une accélération souris moi même... mais ca foire un peu, j'aimerais que tu essaies à ton tour plz, envoie moi un message quand tu l'auras finis :)
10 avril 2002 à 13:29
alors tu remplace Screen.Width par ScaleX(Screen.Width, vbTwips, vbPixels) et Screen.Height par ScaleY(Screen.Height, vbTwips, vbPixels). La ca marchera je pense
10 avril 2002 à 11:04
Seulement je viens d'essayer mais apparemment, l'unité est pas la meme. TAnt pis...
10 avril 2002 à 10:45
If test.X >= 1151 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos 1150, Pos.Y
If test.Y >= 863 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, 862
par
If test.X >= Screen.Width - 1 Then SetCursorPos 1, Pos.Y
If test.X <= 1 Then SetCursorPos Screen.Width - 2, Pos.Y
If test.Y >= Screen.Height - 1 Then SetCursorPos Pos.X, 1
If test.Y <= 1 Then SetCursorPos Pos.X, Screen.Height - 2
je pense ke ca marchera...
A+
$hîv@n