AutoHotkey Community

It is currently May 24th, 2012, 9:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: March 30th, 2007, 12:09 am 
Offline

Joined: March 17th, 2007, 7:51 pm
Posts: 45
Location: San Antonio, TX
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());


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2007, 12:35 am 
Offline

Joined: March 17th, 2007, 7:51 pm
Posts: 45
Location: San Antonio, TX
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????????


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2007, 9:36 am 
Use ControlSend?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2007, 5:45 pm 
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
 


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2007, 5:58 pm 
Offline

Joined: March 17th, 2007, 7:51 pm
Posts: 45
Location: San Antonio, TX
ty very much


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: [VxE], crazyace, engunneer, Klark92, rbrtryn, Tegno, TheDewd and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group