smart choice in imacros for firefox - imacros

I play BiteFight game online , I use imacros to help me playing in adventure mode , it really helping me but the problem is (it had no brain to choose the right button every time)
I have to select one choice every step in the game , and the choices are changing every time
I want imacros to select the exact right selection every time , I tried to write the code line like this :
TAG POS=1 TYPE=A ATTR=TXT:attack
TAG POS=1 TYPE=A ATTR=TXT:kill
TAG POS=1 TYPE=A ATTR=TXT:hide
but the problem comes out , it did`t select the first choice which is the right one this time , and it keeps selecting a random choice every time
please help me with the right codes

Related

Oracle APEX 21.2.6 Interactive Grid - double-click to edit popup LOV shifts data rows over. How to prevent this?

I have an IG display that looks like this without clicking anything else:
Only Supervisor, and Direct Supervisor are editable, and they are both Popup LOV's.
If I double-click the Supervisor data, and immediately type any letter for the Popup LOV search, the data row(s) display shifts to the left like this:
It doesn't matter how wide the window is when I test this. I've been looking for ways to prevent that shift. Do you have any tips to resolve that?
Thank you
I've since learned that this is a known issue, and a bug report was logged: https://community.oracle.com/tech/developers/discussion/4340268/apex-20-1-popup-lov-in-interactive-grid-causing-issue/p1?new=1
I've also noticed that it seems to happen from a single click plus typing to search - not necessarily from a double-click.
Finally, freezing a column or two in place in the IG display appears to prevent the visual shift of the columns.

Save last {{!loop}} value in iMacro script after error

I am running an iMacro script in the free FF Extension format.
This Macro runs all night in a loop and uses the {{!LOOP}} variable. During the night the script might crash and when it does I need a way to see at whatvalue of {{!LOOP}} the script crashed in order to pick off at that part.
How can I save the last {{!loop}} value in iMacro script even after an error?
I use the following code to update the url on the next tab to be !LOOP so when it crashes the value there is exactly what you need. You need the 2nd tab to already be open. This method is very quick!
TAB T=1
'your code goes here
'don't wanna wait long
SET !TIMEOUT_PAGE 1
'don't crash because http://1 doesn't exist
SET !ERRORIGNORE YES
'go to next tab - notice this tab has to already be open
TAB T=2
'update url in tab
URL GOTO={{!LOOP}}
'return to original tab
TAB T=1
'timeout back to normal
SET !TIMEOUT_PAGE 60
'continue failing on error like in default
SET !ERRORIGNORE NO
You can also save to disk for more reliability and tracking of individual loops that failed if you want to continue even when failing.
expending the answer above me you can use your macro just go to url's like : URL GOTO=www.yoururl.com/?nothing={{!LOOP}}
by adding ?nothing={{!LOOP}} most sites won't be affected but the result is the same as opening a new tab to {{!LOOP}} without the new tab

Possible To Enter An Entire List in a Text Field with iMacros?

Is it possible to enter a whole row of data into a text box (1 keyword per line) with iMacros?
Problem:
I have a whole list of keywords (Column A in CSV file) I am trying to paste into a text box with iMacros.
All the solutions I've found involve using !LOOP to reload the whole page and extract the keyword row by row, though with ~800 keywords I'm trying to find a more efficient way.
I know I can integrate iMacros with VBA or javascript, but that would also involve looping data entry row by row [albeit a smaller segment of code], though this still seems inefficient.
Any help would be greatly appreciated.
Let’s suppose that the ‘keywords.txt’ file is like this:
keyword1
keyword2
keyword3
keyword4
keyword5
and placed in the default ‘iMacros’ datasource folder. So you can try to read it at once with the help of the following code:
TAB OPEN
TAB T=2
URL GOTO=file:///{{!FOLDER_DATASOURCE}}/keywords.txt
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=HTML ATTR=* EXTRACT=TXT
TAB CLOSE
'PROMPT {{!EXTRACT}}
Note, if you have a more complicated CSV (not TXT) structure of the file, it’s possible to use the JavaScript Scripting Interface (for Firefox extension) in order to read and process it efficiently as well.

actionRegion makes my labels disappear

The question is quite simple, yet, I'm till' now unable to answer it myself. Is there any solution to stop my label from a selectRadio/selectList/anything from disappearing everytime I use action region? I need to use it due to having required fields whenever one of these radio values is changed but it is breaking my design because it not only does it erase my "label" field but it also moves its location to the left like a "margin-left: 0".
<apex:pageBlockSection id="Info" title="Some Information" columns="2">
<apex:actionRegion >
<apex:selectRadio id="taxType" label="Why does this disappear?" value="{!answer}">
<apex:selectOptions value="{!itemsAnswer}"/>
<apex:actionSupport event="onchange" rerender="Info" status="status"/>
</apex:selectRadio>
</apex:actionRegion>
<apex:outputLabel >Is the Tax paid at the same time as the Cost?</apex:outputLabel>
</apex:pageBlockSection>
Can you try wrapping an output panel and Render the panel on change

SetCurSel in CDateTimeCtrl

Can somebody please tell me how to set the cursor position in an MFC CDateTimeCtrl?
After somebody enters a date and presses an "Add" button, I clear my date control contents with m_Date.SetWindowText( "" ); The problem I have is that when tabbing back onto the control, it still shows the year as being highlighted. My date control is of the format DD/MM/YYYY
All I want to to is make the selected text the date (DD) rather than the last field (YYYY) selected.
Ideally, I would like to be able to get a CEdit* pointer to the control's textbox. That way I could use CEdit::SetCurSel() and everything would be fine.
Cheers
I think its safe to say it can't be done. I ended up writing my own control to do the job as have other people as well.