senor pengwin wrote:Whoops! You are correct I probably should have put this in General.
But since we are here, you are correct, the day is being selected from a calendar widget, it seems simple enough but the issue is that days in the same month have different POS.
Let me give you an example, lets say I select days 1-8 without relative positioning, it would look something like this:
Code: Select all
TAG POS=1 TYPE=TD ATTR=TXT:1
TAG POS=1 TYPE=TD ATTR=TXT:2
TAG POS=1 TYPE=TD ATTR=TXT:3
TAG POS=2 TYPE=TD ATTR=TXT:4
TAG POS=2 TYPE=TD ATTR=TXT:5
TAG POS=2 TYPE=TD ATTR=TXT:6
TAG POS=4 TYPE=TD ATTR=TXT:7
TAG POS=4 TYPE=TD ATTR=TXT:8
When I select the widget title before and use R1 relative positioning I can select the numbers from POS 1-2 but once it gets to POS 3 or 4 it wont select the numbers. And, it is completely possible that the POS for each number changes each day.
I have included a zip file of the HTML page. It looks like this line is where the calendar info starts but I am not well versed in HTML:
Code: Select all
<div id="leftPaneBodyCal" class="body row paneleft paneShadeRt"><section id="calWrapper" class="body row scroll-y"><div id="nCalFrom" class="navb mBtnAct bgInTxt" data-bgtxt="From:">...</div>
Thanks!!
Yeah, don't worry about the Sub-Forum, I will ask the Forum Admin to move your Thread to the 'General' Sub-Forum... (I cannot do it myself...)
But..., OK...!, Okay-Okay...! Lots of "things" to say, I need to "organize" my Thoughts, ah-ah...!
(I have a pretty "messy" Mind, I'm afraid..., the "Ransom" of "Creativity", I guess/hope...!
)
Good for the HTML Saveas, except that many external Scripts are missing, + CSS is lost as well, so I don't really get your Calendar(s) to see and play with for the 2 Dates, the 2 'calF'/'calBodyF' + 'cal'/'calBody' Elements (Tables) do not get populated for me, I only see the empty Containers (and in the Source as well)...
I don't see either any ''INPUT' Field like I had mentioned, except some "strange":
Code: Select all
TAG POS=1 TYPE=TEXTAREA ATTR=ID:calFData CONTENT=<Cal><M<SP>b="11304"<SP>e="11331"<SP>p="P1"></M><M<SP>b="11332"<SP>e="11359"<SP>p="P2"></M><M<SP>b="11360"<SP>e="11394"<SP>p="P3"></M><M<SP>b="11395"<SP>e="11422"<SP>p="P4"></M><M<SP>b="11423"<SP>e="11450"<SP>p="P5"></M><M<SP>b="11451"<SP>e="11485"<SP>p="P6"></M><M<SP>b="11486"<SP>e="11513"<SP>p="P7"></M><M<SP>b="11514"<SP>e="11541"<SP>p="P8"></M><M<SP>b="11542"<SP>e="11576"<SP>p="P9"></M><M<SP>b="11577"<SP>e="11604"<SP>p="P10"></M><M<SP>b="11605"<SP>e="11632"<SP>p="P11"></M><M<SP>b="11633"<SP>e="11667"<SP>p="P12"></M>
<M<SP>b="11668"<SP>e="11695"<SP>p="P1"></M><M<SP>b="11696"<SP>e="11723"<SP>p="P2"></M><M<SP>b="11724"<SP>e="11758"<SP>p="P3"></M><M<SP>b="11759"<SP>e="11786"<SP>p="P4"></M><M<SP>b="11787"<SP>e="11814"<SP>p="P5"></M><M<SP>b="11815"<SP>e="11849"<SP>p="P6"></M><M<SP>b="11850"<SP>e="11877"<SP>p="P7"></M><M<SP>b="11878"<SP>e="11905"<SP>p="P8"></M><M<SP>b="11906"<SP>e="11940"<SP>p="P9"></M><M<SP>b="11941"<SP>e="11968"<SP>p="P10"></M><M<SP>b="11969"<SP>e="11996"<SP>p="P11"></M><M<SP>b="11997"<SP>e="12031"<SP>p="P12"></M>
<M<SP>b="12032"<SP>e="12059"<SP>p="P1"></M><M<SP>b="12060"<SP>e="12087"<SP>p="P2"></M><M<SP>b="12088"<SP>e="12122"<SP>p="P3"></M><M<SP>b="12123"<SP>e="12150"<SP>p="P4"></M><M<SP>b="12151"<SP>e="12178"<SP>p="P5"></M><M<SP>b="12179"<SP>e="12213"<SP>p="P6"></M><M<SP>b="12214"<SP>e="12241"<SP>p="P7"></M><M<SP>b="12242"<SP>e="12269"<SP>p="P8"></M><M<SP>b="12270"<SP>e="12304"<SP>p="P9"></M><M<SP>b="12305"<SP>e="12332"<SP>p="P10"></M><M<SP>b="12333"<SP>e="12360"<SP>p="P11"></M><M<SP>b="12361"<SP>e="12395"<SP>p="P12"></M>
<M<SP>b="12396"<SP>e="12423"<SP>p="P1"></M><M<SP>b="12424"<SP>e="12451"<SP>p="P2"></M><M<SP>b="12452"<SP>e="12486"<SP>p="P3"></M><M<SP>b="12487"<SP>e="12514"<SP>p="P4"></M><M<SP>b="12515"<SP>e="12542"<SP>p="P5"></M><M<SP>b="12543"<SP>e="12577"<SP>p="P6"></M><M<SP>b="12578"<SP>e="12605"<SP>p="P7"></M><M<SP>b="12606"<SP>e="12611"<SP>p="P8"></M></Cal>
... editable 'TEXTAREA' (only for the 'From' Date) that is probably used to populate the 'From' Calendar, no idea why it is editable...!?
The Data is very strange, I didn't really/completely understand the "System", it looks like it's taking all the Dates since Jan-2015 until Aug-2018 using some "weird" System with Years of 364(!?) Days divided into 12 "Months" of either 27 OR 34 Days, based on some strange "Post-Gregorian" Calendar, 402 Years later(...!?), or kind of 'POSIX' "Date" (not Time!) based, starting on 1984-01-01... What the F*ck...!?!?
Funny bit is that I managed to crash the Win10 'calc.exe', while doing some "Calculations" with that Data, trying to "reverse" the underlying "System", ah-ah...!! Even the Windows Calculator didn't like it, ah-ah...!, first time ever I see 'calc.exe' crashing, since Win 3.10, ah-ah...!!
But OK, as I cannot "see" the Calendar(s), I cannot really try all the "Things" and "Tricks" I would normally try..., Grrr...!!
But I can think of several (possible) Solutions...:
- If you could find out where the '4' + '5' + '6' are located for 'POS=1', and if '1' always has 'POS=1', maybe you could use R-Positioning x2, first on the '1' and then a 2nd time on your chosen Day, with the 2nd being "Conditional" for when you really want to select '1'. And maybe 'R-Pos' x1 is enough, with Day '1' as the Anchor.
- When the Calendar is opened, I guess either the first Day of the Month => '1', or the Current Day/Date gets automatically the Focus (and you can always force the Focus on the Current Day with the 'calTitle[F]' or 'calCurrent' Button, I guess...), you could then choose your Day relatively using the '-1' or '+1' Buttons, but hum, you might need to hard-code up to 30 times the same 'TAG' Statement, with 30x an 'EVAL()' Statement to decide if your Script is "really" going to click on that '-1'/'+1' Button for each 'TAG' Statement...
Not really-really Best Practice, I would think..., but you could control that Looping from your Main '.vba' Script in your Case..., now that you've "found out" how to use 'For' Loops in '.vba' with iMacros, ah-ah...!
Easier with the same Idea might be to use the 'EVENT' Mode with the Keyboard Arrows (or the 'TAB' Key), where the Nb of 'Arrow+Left/Right' could be computed with only one 'EVAL()' Statement...
But, hum, I'm not completely sure if the 'EVENT' Mode for iMB v12.0 supports the 'KEY' Parameter for the 'KEYPRESS' Command, ah-ah...!
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...