Jump to content

wintitlematch mode bug? or just me :)


st4vr0s
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...