Jump to content
Sign in to follow this  
L3G3NdKillEr

GuictrlTab_clicktab

Recommended Posts

L3G3NdKillEr

hi,

I'm Just Trying to change the tab with _GUICtrlTab_ClickTab() Everthing done well..

but now there is something which getting me into trouble, is that _GUICtrlTab_ClickTab() moves mouse n clicks. instead of mouse move how can i do it..?

is it possible..?


i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites
L3G3NdKillEr

Any solution..?


i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites
PsaltyDS

hi,

I'm Just Trying to change the tab with _GUICtrlTab_ClickTab() Everthing done well..

but now there is something which getting me into trouble, is that _GUICtrlTab_ClickTab() moves mouse n clicks. instead of mouse move how can i do it..?

is it possible..?

Did you check that function in the help file? The parameter '$f_move = False' is the default. What version of AutoIt are you running? Post your complete line for _GuiCtrlTab_ClickTab().

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
L3G3NdKillEr

I'm using the latest version of autoit. And i didn't try it by using mouse $f_move = False. by the way i've used that:

$tabnow = _GUICtrlTab_GetCurSel($tab)
    $tabnew = $tabnow + 1

    If $tabnew < _GUICtrlTab_GetItemCount($tab) Then
        _GUICtrlTab_ClickTab($tab, $tabnew)

i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites
PsaltyDS

I'm using the latest version of autoit. And i didn't try it by using mouse $f_move = False. by the way i've used that:

$tabnow = _GUICtrlTab_GetCurSel($tab)
    $tabnew = $tabnow + 1

    If $tabnew < _GUICtrlTab_GetItemCount($tab) Then
        _GUICtrlTab_ClickTab($tab, $tabnew)
I don't understand that sentance. Did you try this?
_GUICtrlTab_ClickTab($tab, $tabnew, "left", False, 1)

:lmao:

Edit: I'm being a little dense. Those should be the default values, so you shouldn't have to specify, but try it explicit anyway. Seems to work fine with the defaults using a modified version of the help file example:

#include <GuiConstantsEx.au3>
#include <GuiTab.au3>

Opt('MustDeclareVars', 1)

; Create GUI
GUICreate("Tab Control Click Tab", 400, 300)
Global $hTab = GUICtrlCreateTab(2, 2, 396, 296)
GUISetState()

; Add tabs
_GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
_GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
_GUICtrlTab_InsertItem($hTab, 2, "Tab 3")

; Click Tab
Sleep(2000)
_GUICtrlTab_ClickTab($hTab, 1, "left")

; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

:)

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×