![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
autoit=shell
ok so i created a prog. that fixes ur internet connection but for it 2 work i have 2 open cmd and do ipconfig /release /renew blah blah yada yada yada is there anyway 2 send the keys while cmd is hidden cuz i tried it and it would enter teh keys but it would keep doing it over and voer
would end up looking like ipconfig /release ipconfig /release ipconfig /realease???? i did Send("ipconfig /release{ENTER}") anyhelp? |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
First of all, "2" isn't a word.
The problem is that in AutoScript, I believe {ENTER} sends the character code 0x0A, or "\n" in C-speak. However, in the Windows console, this is a legitimate character - it's 0x0D ("\r") that actually does the work. Perhaps you could just create a batch file and execute it using the AutoScript application? |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Feb 2005
Posts: 112
Rep Power: 4
![]() |
Hey BETA_SCRIPTER... I see you registered at AutoIt froums. Sorry I haven't been to these forums in a while...
Well, why not just use _RunDos, or Run, or RunWait ? ![]() EDIT: Also, Ooble is right! ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|