Sign in to follow this  
Followers 0
Jfish

Can't get _FFTabSetTabSelected to work as expected

3 posts in this topic

I recently had issues with the >_FFTableWriteToArray which turned out to be a bug with the function.  I am having troubles again, but with a different FF function for the _FFTabSetSelected.  The documentation for this function is contained in the attached picture (and below).  Again, this is probably on me but I appreciate the help as I can't tell what I am doing wrong.  It seems like the first parameter for this function can be a name or index of the tab and the second can be the parameter type.  I also assume that if there is only one instance of FF open you can leave _FFWindowSelect() void of parameters and still select a tab.  I also expect that if you if the function works it will select the tab and make it the active tab.

My problem: the code only works if I manually select that tab.  If another tab is selected it will crash.  I can't get this function to work.

documentation:

$vTab   
(Optional) Label, index (0-n) or keyword:
0   = (default) index (0-n) of the tab.
prev    = next tab.
next    = previous tab.
first   = first tab.
last    = last tab.

$sMode  
(Optional) Selection mode:
index   = (default) index (0-n) of the tab.
label   = Label (RegExp) of the tab.

I am trying to use the label as the first parameter.  I have tried this approach with the second parameter

$name="3Dcart v6.4.1 Store Manager"
_FFConnect()
_FFWindowSelect()
$setTab=_FFTabSetSelected($name,"label")

and without

$name="3Dcart v6.4.1 Store Manager"
_FFConnect()
_FFWindowSelect()
$setTab=_FFTabSetSelected($name)

No joy.  Any help would be greatly appreciated.

post-24738-0-85928600-1413886686_thumb.j


Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Run your script and post the results from the Scite output window. For a more detailed look, add the following line at the top of your script:

$_FF_COM_TRACE = True

Edit: Looks like this is your issue --

$name="3Dcart v6.4.1 Store Manager"

It doesn't work because the first word should be "3DCart", not "3Dcart".

Edited by Danp2

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  
Followers 0

  • Similar Content

    • dubd83
      By dubd83
      I am trying to click on a tab within an SWT_Window0. The problem is autoit can not see the tab's text and there is no controlid. I have tried using commands to obtain a handle and text with no luck. Any ideas on how to get control of this tab?
    • BlazerV60
      By BlazerV60
      Hello all,
      I've written the code below which launches chrome in incognito mode and then proceeds to go to the autoit website.
      From my understanding, the Run() command is also supposed to output the PID number related to the application that got launched from the Run command.
      However when I run the below lines, it outputs a PID number that is different from the newly launched chrome browser's PID number, does anyone know why and possibly explain how I could retrieve the accurate PID number associated with the newly launched browser?
      Global $iPid = Run(@ComSpec & ' /c start chrome.exe https://www.autoitscript.com/forum/ -incognito' ,"", "") msgbox(0,"",$iPid) Thank you,
      Brian
    • BlazerV60
      By BlazerV60
      Hello all,
      I've been trying to figure out how to launch Google Chrome in the background (hidden) but it doesn't seem possible. I've tried the following methods:
      ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "", "", "", @SW_HIDE) Also I've tried:
      ShellExecute(@ComSpec, "/c start chrome.exe","","",@SW_HIDE) Lastly I tried:
      RunWait('"'&@ProgramFilesDir&'\Google\Chrome\Application\chrome.exe" --silent-launch',@ScriptDir)  
      But all of them launch my chrome browser without hiding it. Does anyone know a workaround for this or if AutoIT just can't Chrome? 
      Bonus points if you know how to make it launch chrome hidden and make it go to https://www.autoitscript.com
       
      Thank you,
      Brian
    • BOUNCER
      By BOUNCER
      I'm trying to get the output data from https://www.guilded.gg but it uses a web app that generates that output on the fly and this doesn't show up in the page source.
      Only in web inspector of each browser does this data show up. How do I read this data in autoit (equivalent to the web inspector)
       
      thank you
    • ur
      By ur
      We can select elements in IE using their IDs as below.
      Local $oDiv = _IEGetObjById($oIE, "x-auto-16-input") But to one button in the webpage, there is no ID to it.
      In selenium we have option to select this element using the CssSelector and clicked the button using below code in c# selenium.
      driver.FindElement(By.CssSelector("button.x-btn-text")).Click(); What is the alternative for this in AUtoIT?