AutoHotkey Community

It is currently May 27th, 2012, 11:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 13th, 2012, 4:15 pm 
Offline

Joined: August 30th, 2007, 9:36 pm
Posts: 90
Hi,

Im having a problem. I would like to fill in a textare of a form but the form has no id or tagname.

How would I got about filling this area in with Com_Invoke?

Here is the forms code:
Code:
<textarea dir="ltrc" style="overflow-y: hidden; height: 36px;" class="sNotes Sjournal"></textarea>


Any help on this would be greatly appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2012, 4:53 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
Use the Count property to count how many textarea tags are on the page. If there's only one then all you need to do is send it to the first one:

Code:
; example construction
Com_Invoke(pwb,"document.all.tags["textarea"].item[0].value","Huzzah!")

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2012, 5:14 pm 
Offline

Joined: August 30th, 2007, 9:36 pm
Posts: 90
Hi sinkfaze,

Wow, thanks, very much appreciated, the code worked like a charm! =)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Edd, Exabot [Bot], Google Feedfetcher, HotkeyStick and 12 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