ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦Û¤w¼gªº¥é«öºë¥\¯àvba¡A¦Û°Êµn¤Jºô­¶§@¤@³s¦êªº°Ê§@¡A¥Ø«e¤Ö¤F§PÂ_¸ü¤J§¹¦¨°Ê§@

[µo°Ý] ¦Û¤w¼gªº¥é«öºë¥\¯àvba¡A¦Û°Êµn¤Jºô­¶§@¤@³s¦êªº°Ê§@¡A¥Ø«e¤Ö¤F§PÂ_¸ü¤J§¹¦¨°Ê§@

¥»©«³Ì«á¥Ñ ¥®¸X¶é­¸¤Ñ½Þ ©ó 2010-8-11 13:41 ½s¿è

¬ã¨s¤F1¤Ñ24¤p®É¨SºÎ~~
¥²³º¦Û¤wÀ´ªº¤£¦h~
¥u¦n¤W¨Ó¨D§U~~
¦]¬°¬Y¨Ç­­¨î¥u¯à¥Îvba¨Ó°õ¦æ~~
©ó¬O´N¼g¤FÃþ¦ü«öºëªºvba¨Ó¦Û°Ê°õ¦æ¤@¨Çµ{§Ç~

³o­Ó½d¨Ò¬O·Q¥Î¦Û°Êµn¤Jºô­¶~µn¤J«á·Q­n¦b¥Î¦Û©wÁä½L·Æ¹«¼Ð°Ê§@¥h±o¨ì¦Û¤w·Q­nªº¸ê®Æ
¥Ø«e¥d¦bªº¦a¤è¡A´N¬O·í¹«¼Ð¥hÂI§¹µn¤J«áªººô­¶¡A«o¤£ª¾¤U¤@­Ó­¶­±¦ó®É¥[¸ü§¹~
¤£ª¾¦p¦ó¥[¤Jµ{¦¡½X¨Ó§PÂ_¥[¸ü§¹¦¨¡AµM«á°õ¦æ¤U¤@­Ó·Æ¹«¼Ð°Ê§@
ºô¯¸³¡¤À¥Hyahoo«H½c¬°¨Ò
¥H¤U¬O§Úªºvba

'ºô­¶--------¦¹³B¦³¿ìªk§PÂ_µn¤J§¹¦¨----------------
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate [ºô­¶ºô§}]
Do Until .Readystate = 4
DoEvents
Loop
.Document.Forms(0).All("username").Value = [ºô­¶±b¸¹] 'All("username").§äºô­¶ªº­ì©lÀɦW¤l
.Document.Forms(0).All("passwd").Value = [ºô­¶±K½X]   'All("username").§äºô­¶ªº­ì©lÀɦW¤l
.Document.Forms(0).All(".save").Click   'All("username").§äºô­¶ªº­ì©lÀɦW¤l
End With
'ºô­¶------------------------


µn¤J«á¡A¤£ª¾µn¤J«áªº¥[¸ü¦ó®É§¹¦¨¡A¦]¬°¥H¤U±N¬°¹«¼Ð°Ê§@¡A¹«¼Ð°Ê§@«á­±ÁÙ¦³¹«¼Ð°Ê§@
°ÝÃDÂI¦b©ó
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate [ºô­¶ºô§}]
Do Until .Readystate = 4    ³o¬q½X§Úª¾¬Oµ¥«Ý¥[¸ü§¹¡A¦ý§Ú¹«¼Ð°Ê§@«á­±ªººô­¶¥[¸ü¡A³£¬°¦P¤@µøµ¡¡A¦Ó¥B¤]¤£»Ý·s¶}ºô­¶¡A§Ú¸Ó¦p¦ó­×§ïÅý¥L§PÂ_¥[¸ü§¹¦¨¡A¦b±µ¤U¹«¼Ð°Ê§@DoEvents
Loop
.Document.Forms(0).All("username").Value = [ºô­¶±b¸¹] 'All("username").§äºô­¶ªº­ì©lÀɦW¤l
.Document.Forms(0).All("passwd").Value = [ºô­¶±K½X]   'All("username").§äºô­¶ªº­ì©lÀɦW¤l
.Document.Forms(0).All(".save").Click   'All("username").§äºô­¶ªº­ì©lÀɦW¤l
End With
Sleep 3000



For r = 3 To [¦h¤Ö«ü¥O] + 2
'·Æ¹«°Ê§@-------------------------------------------------
m = Cells(r, 1)
If m = "" Then
AppActivate [µ{¦¡¦W¤l]
GoTo noms
Else
AppActivate [µ{¦¡¦W¤l]
   
    SetCursorPos Cells(r, 2), Cells(r, 3)
    Sleep 200
    '·Æ¹«°Ê§@-§PÂ_¥ª¥kÁä
    If Cells(r, 1) = "¥ªÁä1" Then
            ¥ªÁä1
        ElseIf Cells(r, 1) = "¥ªÁä2" Then
            ¥ªÁä2
        ElseIf Cells(r, 1) = "¥kÁä1" Then
            ¥kÁä1
    End If
    '·Æ¹«°Ê§@-§PÂ_¥ª¥kÁä
'·Æ¹«°Ê§@-------------------------------------------------
End If
noms: '·Æ¹«°Ê§@¬°ªÅ¥Õ¸õ¨ì³o

'Áä½L°Ê§@-------------------------------------------------
    x = Cells(r, 6)
    If x = "" Then
    Sleep [¼È°±]
    GoTo nokey
    Else
        'Áä½L°Ê§@¦¸¼Æ-------------------------------------------------
        y = Cells(r, 5)
        If y = "" Then
        Sleep 150
        Application.SendKeys Cells(r, 6), True
        Else
        For n = 1 To Cells(r, 5)
        Sleep 150
        Application.SendKeys Cells(r, 6), True
        Next n
        End If
        'Áä½L°Ê§@¦¸¼Æ
    Sleep [¼È°±]
    End If
'Áä½L°Ê§@-------------------------------------------------
nokey: 'Áä½L°Ê§@¬°ªÅ¥Õ¸õ¨ì³o
Next r

auto.rar (34.89 KB)

¥u¤í§PÂ_¡A«Ý°ª¤â«ü¾É¤F

½Ð±Ð¤@¤U ¤°»ò¬O"ºô­¶¥[¸ü"?
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

½Ð±Ð¤@¤U ¤°»ò¬O"ºô­¶¥[¸ü"?
Min µoªí©ó 2010-8-11 20:58


¦bŪ¨ú¤@­Óºô­¶®É
¤£¬O·|¹Ï¤ù¤°»ò¦³ªº¨S¦³ªº¦b¶]¡A´N¦bieªº©³¤U·|¦³ª¬ºA¦C
·|¤@ª½¶]¡A¶]¨ìÅܦ¨§¹¦¨¡A´N¬O¤U¸ü§¹¦¨³o­Óºô­¶

TOP

ÁÂÁ ¶{ ¤j±`±`¬°§Ú¸Ñµª
¬Q¤Ñ§ÚªF·Q¦è·Q¡A²×©ó·Q¥X¨Ó¤F

ÆZ²³æªº¡A¦ý§Ú«o§b¨ì·Q¤£¨ì

§Ú¦b¨C¦¸§ÚªºÁä½L«ü¥O¤U­±¥[¤@­Ó§PÂ_¥[¸üªºµ{§Ç½X¡AµM«á¦bÁä½L¨º¤U­Ó§PÂ_¡A«e­±«Dhttpªº¦r¤¸®É¤£°õ¦æ§PÂ_¡C
^^

¹ï¤F¡A¶{¤j§AÀ³¸Ó¦³¬ã¨sapi§a¡A·Q°Ý§A¤@­Ó«Ü©Çªº°ÝÃD

§Ú¥ÎapiÅX°Ê¤F·Æ¹«¡AµM«á¥ÎApplication.SendKeys Åý§Úªº¥¨¶°¦Û°Ê°õ¦æ¤@³s¦êªº°Ê§@

¤£ª¾¦³¨S¦³½X¡A´N¬OÅý§Ú¦b°õ¦æ¤@³s¦êªº·Æ¹«©MÁä½L©R¥O®É¡A¨Ï¥ÎªÌ°Ê·Æ¹«©MÁä½L³£¬O¥¢®Äªº¡Aª½¨ì§Úªº°Ê§@§¹¦¨¤~¯à¦^´_¥¿±`

TOP

Declare Function EnableWindow Lib "user32" (hwnd As Integer, fEnable As Boolean) As Boolean
Call EnableWindow(hwnd, True) '«ü©wµøµ¡©Î±±¨î¶µ¬O§_²£¥Í§@¥Î¡C(True¦³§@¥Î / FalseµL§@¥Î)
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

­ü§r~­èµù¥U³£¬Ý¤£¨ì¡A¦n¥i±¤¡C§Ú·Q¾Ç¬Ý¬Ýªü

TOP

Declare Function EnableWindow Lib "user32" (hwnd As Integer, fEnable As Boolean) As Boolean
Call En ...
Min µoªí©ó 2010-8-13 22:55



    ¤£¦n·N«ä¡A¤p§Ì¤£¤~
¦³ÂI¤£À´¤W­±ªº·N«ä
¥i¯à¬O§Úªº»¡©ú¤]¦³ÂI¤£²M·¡~

°²³]¡A§Ú²{¦b¹ï[µ{¦¡A]§@°Ê§@  AppActivate [µ{¦¡A]
°µ¤FÂI·Æ¹«¥ªÁä¦n´X­Ó°Ê§@¡AÁä½L¦n´X­Ó°Ê§@~²ºÙ"SUB ¦Û°Ê°Ê§@()"¤j¬ù­n20¬í~
¦b³o20¬í¤º¡A§Ú­Ì«öÁä½L¡A°Ê·Æ¹«³£¬O¤ÏÀ³ªº~¤@ª½¨ì§Úªº"SUB ¦Û°Ê°Ê§@()"µ²³t«á~¤~¥i¥H¨Ï¥ÎÁä½L©M·Æ¹«~
³o¼ËÀ³¸Ó»¡ªº¤ñ¸û²M·¡

¨º¥i¥H¤j¬ù¼g²M·¡¤@ÂIªº½d¨Ò~¤W­±¯u¦³ÂI¬Ý¤£¬O«ÜÀ´~
¹ï©ó³o¥y¦³ÂI¤£À´--> '«ü©wµøµ¡©Î±±¨î¶µ¬O§_²£¥Í§@¥Î¡C(True¦³§@¥Î / FalseµL§@¥Î)
¨º§Ú¬O¤£¬O­n¹ï[µ{¦¡A]µL§@¥Î?
¨º§Úªº"SUB ¦Û°Ê°Ê§@()"¤£´NµL®Ä¤F?

TOP

­ü§r~­èµù¥U³£¬Ý¤£¨ì¡A¦n¥i±¤¡C§Ú·Q¾Ç¬Ý¬Ýªü
luckyguys227 µoªí©ó 2010/8/14 01:54 AM


¥[ºò¥[¤J¤j®aªº°Q½×
´£¨Ñ±zÄ_¶Qªº·N¨£¤Î¤À¨É±zªº§Þ¥©....
«Ü§Ö´N·»¤J³Â»¶¤F³á^^"
   


¤£¦n·N«ä¡A¤p§Ì¤£¤~
¦³ÂI¤£À´¤W­±ªº·N«ä
¥i¯à¬O§Úªº»¡©ú¤]¦³ÂI¤£²M·¡~

°²³]¡A§Ú²{¦b¹ï[µ{¦¡ ...
¥®¸X¶é­¸¤Ñ½Þ µoªí©ó 2010/8/14 09:07 AM

·í§Aµ{¦¡¦b°Ê§@ªº®É­Ô ¤~»Ý­n§âÂê¦íÁä½L·Æ¹«ªü!
¤£¬O¾ã­Ó­«ÀYÂê¨ì§À~

¥t ÃD¥~¸Ü~ §Ú»{¬°sendkey¨Ã«D¦n¤è¦¡! ¦]¸ÓÁÙ¦³§ó¨Îªº¤è¦¡¹F¨ì¥Øªº.
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

Declare Function EnableWindow Lib "user32" (hwnd As Integer, fEnable As Boolean) As Boolean
Call En ...
Min µoªí©ó 2010-8-13 22:55

¤p§Ì¯uªº¤£¬O«ÜÀ´
m¤j¡A§Ú¯uªº¤£·|¥[¡Avba§ÚÁÙºâ¬Oªì¾Ç
¦]¬°¬Y¨Ç»Ý¨D¡A»Ý­n¦¹¥\¯à¡C¥i§_¥Î§Úªºªþ¥ó°µµ¹§Ú¬Ý
©ÎªÌ¥Î¤@¤p¬q½X¥Ü½d¤@¤U@@
   
«ç»¡¥Îsendkey¨Ã«D¦n¤è¦¡~?¦³¨ä¥L¤è¦V?

¤£ª¾m¤j¥i©âªÅ±Ð¾É¤@¤U^^

TOP

¨þ¨þ¨þ~ ­¸¤Ñ¥S ±z¹LÁ¾¤F!
°O±o¤W¦¸ §Úª±³o­Óapi §â¹q¸£Âê¦í¦n´X¦¸...

§Ú¨Ã¤£½Ð²M·¡±z©Ò­n¹B¥Îªº¥Øªº¬°¦ó! ¤@¼Ó±z¤]¥u¬O"½d¨Ò"
¦pªG¬O­n§ì¨úºô­¶ªº¸ê®Æ ¨º¥i¯à­n½Ð¨F©Ôªo³oÃþªº°ª¤â¨Ó«üÂI ¦n¹³¬O¥Îwmiªº¤è¦¡...
¦pªG§A­n­n§ì¨úapplication¨º­n¬Ý¬Ý¥L¬O§_¦³outputªºapi¥i¥H¥Î...
¦pªG¯uªº­n¥Îsendkeyªº¤è¦¡ ¨º¶¶§Ç¦p¤U

²¾°Ê·Æ¹«
ÂIÀ»·Æ¹«©ÎÁä½L
call enablewindow Âê©w
µ¥«Ýwab or application
call enablewindow ÄÀ©ñ
.....

¤j·§¬O³o¼Ë...

¦pªG±zªºcase¤£¤è«K¦b½×¾Â°Q½×
¨º¬Ý¬O§_op°T®§µ¹§Ú ¤p§ÌÄ@±N©Òª¾¹Dªº¤è¦¡»P±z°Q½×~
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD