AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hey same problem lost old topic

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Cereal



Joined: 17 Mar 2007
Posts: 45
Location: San Antonio, TX

PostPosted: Thu Mar 29, 2007 11:09 pm    Post subject: Hey same problem lost old topic Reply with quote

it works 1/2 ass some items it works some times it doesn't, and when i finally got it working and took it to work it wouldn't work on the 6.0 IE Xp computer but worked fine on my 7.0 vista any ideas how i can just send the freakin javascript to the address bar so i don't' have to worry about any of this shit
Code:
;Ctel Admin
#!c::
   Run iexplore.exe https://support.centurytel.net/supporttools/index.cfm
   sleep 3500
   IfWinActive, https://support.centurytel.net/supporttools/index.cfm
      {
      sleep 100
      click 500,500
      send {TAB}name{TAB}
      send password{ENTER}
      }
   else
      {
      MsgBox Login Window Not Present
      }
   return
   return
Code:
   ;javascript:void(document.theform.login_username.value='name');
   ;javascript:void(document.theform.login_password.value='password');
   ;javascript:void(document.theform.submit());
Back to top
View user's profile Send private message AIM Address
Cereal



Joined: 17 Mar 2007
Posts: 45
Location: San Antonio, TX

PostPosted: Thu Mar 29, 2007 11:35 pm    Post subject: Reply with quote

ive got it where i can put the scripts in the address bar but when im sending enter for some reason its not taking it any ideas????????
Back to top
View user's profile Send private message AIM Address
Helpy
Guest





PostPosted: Fri Mar 30, 2007 8:36 am    Post subject: Reply with quote

Use ControlSend?
Back to top
n-l-i-d
Guest





PostPosted: Fri Mar 30, 2007 4:45 pm    Post subject: Reply with quote

This? Wink

Code:
F1::
  winName = https://support.centurytel.net/supporttools/index.cfm
  IfWinNotExist, %winName%
  {
    Run, iexplore.exe %winName%, , UseErrorLevel
    If ErrorLevel
    {
      MsgBox, 16, Error!, Can not start window. Script paused.
      Pause
    }
    WinWait, %winName%, , 5
    If ErrorLevel
    {
      MsgBox, 16, Error!, Can not find window. Script paused.
      Pause
    }   
  }
  WinActivate, %winName%
  JS =
  (LTrim Join
    javascript:
    void(document.theform.login_username.value='name');
    void(document.theform.login_password.value='password');
    void(document.theform.submit());
  )
  MsgBox % JS
  ControlSetText, Edit1, %JS%
  ControlSend, Edit1, {Enter}
Return
 
Back to top
Cereal



Joined: 17 Mar 2007
Posts: 45
Location: San Antonio, TX

PostPosted: Fri Mar 30, 2007 4:58 pm    Post subject: Reply with quote

ty very much
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group