 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Cereal
Joined: 17 Mar 2007 Posts: 45 Location: San Antonio, TX
|
Posted: Thu Mar 29, 2007 11:09 pm Post subject: Hey same problem lost old topic |
|
|
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 |
|
 |
Cereal
Joined: 17 Mar 2007 Posts: 45 Location: San Antonio, TX
|
Posted: Thu Mar 29, 2007 11:35 pm Post subject: |
|
|
| 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 |
|
 |
Helpy Guest
|
Posted: Fri Mar 30, 2007 8:36 am Post subject: |
|
|
| Use ControlSend? |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Fri Mar 30, 2007 4:45 pm Post subject: |
|
|
This?
| 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
|
Posted: Fri Mar 30, 2007 4:58 pm Post subject: |
|
|
| ty very much |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|