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 

filling out online form without opening webpages

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



Joined: 30 Aug 2007
Posts: 60

PostPosted: Wed Aug 06, 2008 4:06 pm    Post subject: filling out online form without opening webpages Reply with quote

Hi,

I was wondering if anyone knew if this could be done. I am making WPs (wordpress). I wanted to know if there is a way to go to one of my sites, sign in, and make a blog user without opening a webpage.

Can autohotkey work with maybe some kind of command line utility that will send and recieve httpd commands to the page. I'm not sure if I said this right.

Basically, can you fill in a form and such through httpd post instead of me having to login to my accounts to make new blog users?

thanks
Chip
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Wed Aug 06, 2008 10:00 pm    Post subject: Reply with quote

try cURL (AHK can call it) or some of the other scripts that work with HTTP POST. Your task sounds a little shady, why are you trying to automate adding users to your blog?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
crxvfr



Joined: 10 Mar 2006
Posts: 55

PostPosted: Fri Aug 08, 2008 12:03 am    Post subject: Reply with quote

An easier way way would be to do it with php and sql, if your site is php.
Not the most secure the way I do it, but only takes a few lines of code. username/password blah blah sql query and voila!

At work we run an old software program on a unix server. They made an interface for windows, but as you could imagine, its so very unfriendly.

I had to write a script that downloads a webpage with keystrokes.
Then parse the downloaded file to get the hundreds of links that are on it. Then open all of those links and download those files.

Parsing those files allows me to rewrite the data from them however I want.

They are orders. I append all the orders into one huge html file that contains page breaks for the printer between each order and click a print button, once. Saves 1000 clicks and several hundred page loads over their way of printing order by order.

Long story short, I would imagine there is a way. I just went one step at a time.

I have another script that spiders a site by downloading the pages, ...hehe, then I make my own pages with their content. It writes 11 websites in about 5 minutes. It ok though because we are selling for them.

A new endeavor brings me to curl.
I need to download an xml file over a secure connection.
This seems hard to me.
I copied their most simple example and it doesn't work.
(I had to change netscape to google)

test.ahk:
run, curl -o thatpage.html http://www.google.com/index.html

I have:
curl.exe
libeay32.dll
libssl32.dll
openssl.exe
test.ahk

Have only seen a quick black system window pop open for a very quick jiffy.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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