Sign in to follow this  
Followers 0
st4vr0s

wintitlematch mode bug? or just me :)

2 posts in this topic

I have a window that cannot be defined with anything other than Title or colour.

My code that doesnt work is this...

Opt("WinTitleMatchMode", 3)
WinWait ("Steam")
WinActivate ("Steam")
WinMove ("Steam","",5,5)
sleep (2000)
WinWait ("Steam")
while WinExists ("Steam")
Sleep (500)
SplashTextOn ("Login to steam account","Login to steam account",-1,150,10,444,16,"",36,-1)
WEnd

What I want to do is ....

When I click the "Login to steam account" the window title changes to "Steam Login" and I want my splash box to stop then move to next part of script but for some reason Autoit doesnt recognise the window title change even though I've set wintitlematch more to 3.

I can get it to work if i change the code to this

Opt("TrayIconDebug", 1)
Opt("WinTitleMatchMode", 3)
WinWait ("Steam")
WinActivate ("Steam")
WinMove ("Steam","",5,5)
sleep (2000)
WinWait ("Steam")
Do
Sleep (500)
SplashTextOn ("Login to steam account","Login to steam account",-1,150,10,444,16,"",36,-1)
Until WinExists ("Steam Login")

But thats a sketchy fix and I want to know why my code isnt working.

Thanks

Share this post


Link to post
Share on other sites



st4vr0s,

Please read the Forum Rules - particularly the part that says:

"Do not discuss any of the following:

[...]

◦forum or site auto-login methods" :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0