Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Nov 26th, 2009, 6:50 AM   #1
kronos.1234
Newbie
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0 kronos.1234 is on a distinguished road
Disabling javascript in Mozilla Firefox with C++

Hi all
I am writing an application allowing my client to send all the contacts/friends on a popular polish social network website the same private message. It's not for spamming purposes - group members are all office collagues and the point is to send them information on certain job-related events.

I wrote function that simulate pressing a keboard key. My plan was to open the browser window, enter the url to composing the message subpage, simulate pressing tab few times (enough to "reach" the textbox where I enter the actual message), paste the message and send it.
And here's the problem: if javascript in mozilla is enabled the number of tabs I have to press isn't constant - it changes depending what ad is beeing displayed at the moment. And that of course is random.
My question: Is there a way to disable javascript in firefox using c++ code? Other than simulating pressing the combination left_alt+t=>left_alt+o=>[reaching the 'content' tab]=>j (that's kinda crazy, but i was desperate =])

For the time beeing let's assume that using Firefox is required. My code opens the given URL in a default browser which is Firefox on clients computer. But I am willing to consider other options if that will prove impossible to do.

Thanks in advance,
Kronos
kronos.1234 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a javascript disabling people to view source or saving a site DBZ JavaScript and Client-Side Browser Scripting 20 Nov 15th, 2006 10:00 AM
JavaScript and Firefox JPS JavaScript and Client-Side Browser Scripting 2 Mar 30th, 2006 10:34 AM
Mozilla JavaScript Troubles crawforddavid2006 JavaScript and Client-Side Browser Scripting 5 Jan 25th, 2006 5:11 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC