
molotofc
Active Members-
Posts
23 -
Joined
-
Last visited
molotofc's Achievements

Seeker (1/7)
1
Reputation
-
AgiHammerklau reacted to a post in a topic: ff.au3 mozrepl error
-
I see. How am I able to remove this built in 1 second delay?
-
It seems ff.au3 (or mozrepl I'm not sure which is causing it) is really slow. For example, the below script: _FFStart() Send("^t^t^t^t^t") ; opens 5 new tabs Send("^t^t^t^t^t") opens the 5 new tabs pretty much instantly, whereas: _FFStart() _FFTabAdd(default,true,false) _FFTabAdd(default,true,false) _FFTabAdd(default,true,false) _FFTabAdd(default,true,false) _FFTabAdd(default,true,false) ; opens 5 new tabs is a lot slower, typically around 1.5 seconds between each new tab is created. I thought it may be the third option of _FFTabAdd which is $LoadWait but I've already set that as False as you can see. I don't know what the delay is. Here is the console output if I use _FFTabAdd: __FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "about:blank" "-repl 4242 " _FFConnect: OS: WIN_2008R2 WIN32_NT 7601 Service Pack 1 _FFConnect: AutoIt: 3.3.12.0 _FFConnect: FF.au3: 0.6.0.1b-10 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 452 _FFConnect: Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 __FFSendJavaScripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 13ms [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} __FFSend: try{gBrowser.selectedTab = gBrowser.addTab('about:blank')}catch(e){'_FFCmd_Err';}; __FFRecv: [object XULElement] - {linkedBrowser: {...}, _tPos: 1, closing: false, label: "New Tab", visibleLabel: "New Tab", pinned: false, hidden: false, ...} __FFSend: FFau3.WCD=window.content.top.document; __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} __FFSend: try{gBrowser.selectedTab = gBrowser.addTab('about:blank')}catch(e){'_FFCmd_Err';}; __FFRecv: [object XULElement] - {linkedBrowser: {...}, _tPos: 2, closing: false, label: "New Tab", visibleLabel: "New Tab", pinned: false, hidden: false, ...} __FFSend: FFau3.WCD=window.content.top.document; __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} __FFSend: try{gBrowser.selectedTab = gBrowser.addTab('about:blank')}catch(e){'_FFCmd_Err';}; __FFRecv: [object XULElement] - {linkedBrowser: {...}, _tPos: 3, closing: false, label: "New Tab", visibleLabel: "New Tab", pinned: false, hidden: false, ...} __FFSend: FFau3.WCD=window.content.top.document; __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} __FFSend: try{gBrowser.selectedTab = gBrowser.addTab('about:blank')}catch(e){'_FFCmd_Err';}; __FFRecv: [object XULElement] - {linkedBrowser: {...}, _tPos: 4, closing: false, label: "New Tab", visibleLabel: "New Tab", pinned: false, hidden: false, ...} __FFSend: FFau3.WCD=window.content.top.document; __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} __FFSend: try{gBrowser.selectedTab = gBrowser.addTab('about:blank')}catch(e){'_FFCmd_Err';}; __FFRecv: [object XULElement] - {linkedBrowser: {...}, _tPos: 5, closing: false, label: "New Tab", visibleLabel: "New Tab", pinned: false, hidden: false, ...} __FFSend: FFau3.WCD=window.content.top.document; __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} +>02:01:59 AutoIt3.exe ended.rc:0 +>02:01:59 AutoIt3Wrapper Finished. >Exit code: 0 Time: 11.98 and compare that to of the console output if using Send("^t^t^t^t^t"): __FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "about:blank" "-repl 4242 " _FFConnect: OS: WIN_2008R2 WIN32_NT 7601 Service Pack 1 _FFConnect: AutoIt: 3.3.12.0 _FFConnect: FF.au3: 0.6.0.1b-10 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 448 _FFConnect: Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 __FFSendJavaScripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 16ms [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...} +>02:02:32 AutoIt3.exe ended.rc:0 +>02:02:32 AutoIt3Wrapper Finished. >Exit code: 0 Time: 5.1 I can't use Send because it's a remote machine. Is there anything I can do by getting _FFTabAdd to perform at the speed it should?
-
OutlookEX UDF - Help & Support (III)
molotofc replied to water's topic in AutoIt General Help and Support
I've had a look at the OutlookEX udf but cannot understand much as I'm not so proficient in programming, but I hope I'm in the right place for this. What I basically need is AutoIt to constantly monitor and automatically read every incoming email and search in the email body for a specific string. Perhaps reading the whole email body and put it into a variable? Similar to what something like $var = _INetGetSource() can do perhaps. Then I can do StringInStr on this variable?- 817 replies
-
Hello, I have an .exe made from AutoIT which when run is a simple GUI interface with a few buttons and drop down menus which its functions are that it can interact with files (opens/reads/writes) on the local computer and does Firefox web automation. I was wondering if I could somehow translate this GUI exe into HTML so I could do everything as I could in the exe, but in a HTML format webpage hosted on the world wide web. Thanks
-
Hi all, I hope somebody can help. I have the following _FFXPath code which Firefox will open a new tab with _FFClick on the first instance of the word 'Open' if it's a web link. _FFXPath("//a[contains(.,'Open')]","",9) _FFClick("FFau3.xpath") I'm using _FFXPath because they are onclick javascript links. What do I need to do so instead of it clicking on the first instance of 'Open' on the webpage, but to click on the last instance of 'Open' instead? If there's no easy way, perhaps knowing the number of occurrences of 'Open' before the last instance would help for a different way of tackling this? Many thanks.
-
I amended ff.au3 and rebuilt the exe file and it seems to have done the trick. Thanks
-
Occasionally when running an exe halfway through the exe I'm getting the error ff.au3 error __FFWaitForRepl ==> Error TCPSend /TCPRecv :-1 There seems no consistency, sometimes I do get this but sometimes I don't. What does this mean and how I could rectify it? Problem only seems to only occur on scripts thats been made into an exe file, but when run the script itself by pressing F5 on SCiTE, it is fine there. Is this a connection related issue?
-
Setting @extended value into a variable
molotofc replied to molotofc's topic in AutoIt General Help and Support
I see what you guys mean. Many thanks -
Setting @extended value into a variable
molotofc replied to molotofc's topic in AutoIt General Help and Support
Like this for example from another thread. $String = "one[two[[three[four five] six[ seven[" $String = StringReplace($String, "[", "[") MsgBox(0, "", "Number found = " & @Extended) $Var = @extended MsgBox(0, "", "Number found = " & $Var) From the first msgbox, the output of @extended is 6 as expected, but the output of $Var from the second msgbox is 0. What am I missing? -
I realise there is the SetExtend function, but it only works for hard set values which in my case @extended is not... I have a value in @extended following StringReplace to count the number of occurences of a word, however I cannot set that @extended into a variable that I could use later in my code. Any suggestions?
-
Searching for a string, after the string
molotofc replied to molotofc's topic in AutoIt General Help and Support
Thanks a lot. I agree that sometimes I cannot find the solution myself, but actually I am not clear what I want myself, but realise it would help to do so, in order to get the appropriate help. What Chimp and Mikell have posted is pretty much what I was looking for. Many thanks. -
Searching for a string, after the string
molotofc replied to molotofc's topic in AutoIt General Help and Support
This is great thanks, but how to get it work on words that have mutiple occurrences? for example the word 'Range' -
Dear all, I was wondering if there is any way to return a substring in a string by occurence? e.g. $string = "white,white,white,white" $3white = search for the third occurence of the word 'white' in $string msgbox(0,"",$3white) obviously, $3white should return the word 'white', but it is the 3rd occurence from string $string I tried StringInStr but it doesn't return the substring, it just returns the character count
-
Hello, I was wondering if it's possible open another script within a script. Here's my scenario: I have scripts (call it Script A, Script B, Script C... I have 22 of these) that are very similar to each other, apart from a few lines of code. Those few lines of code I need to change fairly often, and when I need to change it, all 22 of them need to change which I have to do it one by one manually. You can imagine this takes a long time. I was thinking if its possible to put these few lines of code in a separate script, so when Script A, B, C etc. need to run those few lines of code, instead, it would now open this separate script instead. I've read in the forums opening another script within a script is possible, but it would not be able to carry data (like Variables) over from the original script to the separate script - carrying data over to the separate script is essential for me. What can I do?