Jump to content
Sign in to follow this  
Altainta

Complicated Issue and Question

Recommended Posts

Altainta

This might seems a bit complicated but let me still ask .. i do not expect much but i should clear my doubts...i am sorry if i sound like a noob (that i am)

I have a script in which i do some webpage work (in loop) like submiting forms and other thing...

In that thing i need other application help... (3rd party) like notepad, excel, calc (just and example)

I finished my work and it works great... What it does it pixelget color and other functions..Mu project involves

Mozilla Firefox, and other helping apps etc..

Now my question is.. how can i run this thing multiple time without showing it on the screen... Means how can i do it in the background... ?

I tried to install Virtual Pc and run the app there.. But the problem is in virtual pc it was slow + the mouse cursor doesn't show up and many other things like that..

To explaint better i want to not to show up the task which it does but at the same time it need to PIXEL GET COLOR... now how to do this i want to run multiple instance together...... like 2-3 firefox doing the same task with different visualization...

point is like virtual desktops Different sessions....

edit : Also i tried http://virtuawin.sourceforge.net/ and other stuff but it didn't worked the script stops,pause freeze... because i think it didn't get the pixel color i mainly use it in the script...

Edited by Altainta

Share this post


Link to post
Share on other sites
martin

This might seems a bit complicated but let me still ask .. i do not expect much but i should clear my doubts...i am sorry if i sound like a noob (that i am)

I have a script in which i do some webpage work (in loop) like submiting forms and other thing...

In that thing i need other application help... (3rd party) like notepad, excel, calc (just and example)

I finished my work and it works great... What it does it pixelget color and other functions..Mu project involves

Mozilla Firefox, and other helping apps etc..

Now my question is.. how can i run this thing multiple time without showing it on the screen... Means how can i do it in the background... ?

I tried to install Virtual Pc and run the app there.. But the problem is in virtual pc it was slow + the mouse cursor doesn't show up and many other things like that..

To explaint better i want to not to show up the task which it does but at the same time it need to PIXEL GET COLOR... now how to do this i want to run multiple instance together...... like 2-3 firefox doing the same task with different visualization...

point is like virtual desktops Different sessions....

edit : Also i tried http://virtuawin.sourceforge.net/ and other stuff but it didn't worked the script stops,pause freeze... because i think it didn't get the pixel color i mainly use it in the script...

Have you tried simply moving the app outside of the screen area? Then it can't be seen and it's a simple change to do.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
Altainta

Well actually i want to know that how could i COMPLETELY make it invisible..

Just like we do in the Linux With Sessions.... the work is still going on in session one and another work is running in session TWO.

well if that can't be answered atleast answer one thing...

How can i make a NEW FIREFOX.... which will be totallly separate from the existing one on the same os..

It will manage its OWN cookies... So my pc will have 2 firefox so i can than manage to solve the problem..

Just suppose u have 2 winamp... Both are running at the same time... But their Files (config etc) are managed in different folders

Share this post


Link to post
Share on other sites
Uten

It wan't hide firefox but have you tried to launch it under another acount? Take a look at RunAsSet in the help file.

Apart from that I would use vmware player and create several viritual machines. Just as you did with Viritual PC. But vmware is probably more stable? To have a minimum install in the vmware use nLite or other technique to slipstream and trim down the installation.

Share this post


Link to post
Share on other sites
Altainta

Thank you very much

That is good idea but it will consume a hell lot of system resoursces (3 vmware)... I need smooth going on...

Okay i got the solution for 2 firefox it is Profiling...

Well now my new problem is (The last one...) it might be a Offtopic Question but i think it is very small doubt please help me in this...

How can i read the content of a Message box (i know how to get the title bar text and invoke function but how to get content and invoke function ?)

Greasemonkey scripts where there is one code alert

How can i change this code So that it can display TITLE !

It just display

alert("Your text in the alert function.");

Posted Image

In this condition i can code one thing that will invoke funtion that is

WinWait("The page at http://www.google.com says : ","")
If Not WinActive("The page at http://www.google.com says : ","") Then WinActivate("The page at http://www.google.com says : ","")
WinWaitActive("The page at http://www.google.com says : ","")
Send("{SPACE}")

But

1) How can i change the title of the Alert

Like here in the example "The page at http:// www.google.com says : " To something usefull.."Google Loaded" (Greasemonkey question)

2) If this can't be answered atleast tell me how to read the content of that Message box like in the example "Your text in the alert function." (Autoit Question..)

If Msgbox Content = "Your text in the alert function." than run this and that... (just and example for better understanding.)

Please Answer any of them

Edited by Altainta

Share this post


Link to post
Share on other sites
FreeFry

That MessageBox comes up through javascript, and I do not think the title can be changed.

The text of the MessageBox can be retrived with the WinGetText() function...

But I think that what, requires you to have another look in the helpfile regarding the Win* functions:

All Window related functions take atleast 2 parameters:

First being the title of the window to match.

Second being any text in the window to match.

WinWait("Window Title", "Text in window")

WinActive("Window Title", "Text in window")

WinActivate("Window Title", "Text in window")

WinWaitActive("Window Title", "Text in window")

Judging from that image you attached, a correct usage would be(if you want it to go by the text):

If WinExists("The page at http://www.google.com says:", "You^[H[[Ý[Û][ÝÊH[UÚ[ÛÜÙJ   ][ÝÕHYÙH]÷wwrævöövÆRæ6öÒ63¢gV÷C²ÂgV÷Cµ÷W"FWBâFRÆW'BgVæ7FöââgV÷C² ìe½ÕȽ¡É)¹%
Edited by FreeFry

Share this post


Link to post
Share on other sites
Altainta

Thx for the help dude so much u typed :rolleyes: thx

The conditions are not working in the Java based alert....

It is not working

If WinExists("The page at http://www.google.com says:", "Your text in the alert function.") Then
    WinClose("The page at http://www.google.com says:", "Your text in the alert function.")
; Your code here
EndIf

Not working

WinGetText()

Now working

WinWait("Window Title", "Text in window")
WinActive("Window Title", "Text in window")
WinActivate("Window Title", "Text in window")
WinWaitActive("Window Title", "Text in window")

I think it might be because it is a Java Based alert (window)

So i think it is not working there...

Still if any one can help me please do... Or atleast tell me (I do not know java) a way in which i can change the url via Greasemonkey script By this

When the page is completed the script will redirect to to some http:// dumb.com where i have another script which will alert and show the window with title text "http:// dumb.com says:" than i will trigger function for other window it will be like http:// dumb1.com http:// dumb2.com etc

So it will be different alerts... so different triggers... this will end my trouble kindly suggest a way..

Edited by Altainta

Share this post


Link to post
Share on other sites
Xand3r

WinSetTitle ( "title", "text", "newtitle" )(help file)

btw u don't realy need to put the text just put ""


Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites
FreeFry

WinSetTitle ( "title", "text", "newtitle" )(help file)

btw u don't realy need to put the text just put ""

That's not really what he wants to do.

He has an extension to Firefox, that can modify the code of a page, and he's trying to determine what the page 'says' to him through the MessageBoxes that javascript is opening..

Problem is that it seems you cannot detect the text inside the MessageBox in Firefox.. :S

Share this post


Link to post
Share on other sites
Altainta

Yes u are right FreeFry

Well i got the solution for rerouting will have to set different location for every session...

window.location.href = "http://www.google.com";

Explain : Suppose i set a script on yahoo.com so that when it load it will redirect than i will use this code in greasemonkey script... Well when yahoo load it will redirect to google + i will add a script for google which will display alert by which i will get the title http:// google.com says that...." so trigger function...

Different redirection for different session so that they will not mix up...

Btw thx to all ... the problem is because of firefox i guess not the normal msg box.

I am happy atleast my problem is solved (IN SOME SENSE)

Edited by Altainta

Share this post


Link to post
Share on other sites
FreeFry

Yes u are right FreeFry

Well i got the solution for rerouting will have to set different location for every session...

window.location.href = "http://www.google.com";

Explain : Suppose i set a script on yahoo.com so that when it load it will redirect than i will use this code in greasemonkey script... Well when yahoo load it will redirect to google + i will add a script for google which will display alert by which i will get the title http:// google.com says that...." so trigger function...

Different redirection for different session so that they will not mix up...

Btw thx to all ... the problem is because of firefox i guess not the normal msg box.

I am happy atleast my problem is solved (IN SOME SENSE)

Just a question, is this some kind of surfing filter? To prevent some one to surf to a particular site?

Share this post


Link to post
Share on other sites
Altainta

Okay i think i should explain this throughly

there are two reasons

imp : i will not use IE of autoit for this because i need firefox only because of its greasemonkey support. i can customize it.

1 )Well i have a script (web) which have a membership system..

I was checking it... Throughly so that i will get accurate data...

At the same time i need to log on with several ids (minimum) and use the resources there for checking the effect and log which will be collected...

but the main problem is when the log on and resources using is over it should logout and continue to enter different Ids (completely close the browser.) now here is the main problem... when the system is completed it should inform autoit abt it... so i added alert in the script but it was not working.... (Imagine 4 autoit are search for the same title it mess up alot) So i wanted to keep it Unique for every id...so i routed it to different site so alert title changed automatically like

google.com

faq.com

soandso.com

thisandthat.com

will have different titles like "Soandso.com says" google.com says etc so they will be identified quickly even 4 autoit scripts are running at the same time... No mess up

2) i can't tell abt that. But it is similar to the above

Edited by Altainta

Share this post


Link to post
Share on other sites
FreeFry

Hehe yes, I understood what you meant. :rolleyes: But you didn't answer my question. :x

Is it a surfing filter of some sort? Meaning that you're trying to prevent someone from accessing certain sites?

Just wondering out of curiosity. :rambo:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×