Jump to content

Read Tooltip without move mouse over it


Recommended Posts

guys i know there are some topics about reading tooltips, i read them but i could not find what i'm serching for.

it's a control:

when i move my mouse on it this will appear:

It's my control's summary:

>>>> Window <<<<
Title:  Garena
Class:  SkinWindow
Position:   0, 0
Size:   1360, 738
Style:  0x970B0000
ExStyle:    0x00000000
Handle: 0x00060530

>>>> Control <<<<
Class:  msctls_progress32
Instance:   1
ClassnameNN:    msctls_progress321
Name:   
Advanced (Class):   [CLASS:msctls_progress32; INSTANCE:1]
ID: 1132
Text:   
Position:   1117, 157
Size:   103, 22
ControlClick Coords:    41, 5
Style:  0x50000001
ExStyle:    0x00020004
Handle: 0x00050514

>>>> Mouse <<<<
Position:   1158, 162
Cursor ID:  0
Color:  0xCF1B00

i want to read without moving my mouse on control, or even read .

can anyone help me?

Link to comment
Share on other sites

  • Moderators

D4RKON3,

Please do not bump your posts within 24 hours. :mellow:

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. :)

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

  • Moderators

I second the bumping.

As far as the tooltip, it's probably not created until the mouse if over it.

So yes, it's improbable.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Maybe this works:

Global $hControlHandle = ControlGetHandle("Garena", "", "msctls_progress321")

MsgBox(0, "", "Percent: " & _Progress_GetPos($hControlHandle))


Func _Progress_GetPos($hWnd)
 Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0)
 Return Number(StringReplace($ret[0], ",", "."))
EndFunc   ;==>_Progress_GetPos

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

Maybe this works:

Global $hControlHandle = ControlGetHandle("Garena", "", "msctls_progress321")

MsgBox(0, "", "Percent: " & _Progress_GetPos($hControlHandle))


Func _Progress_GetPos($hWnd)
 Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0)
 Return Number(StringReplace($ret[0], ",", "."))
EndFunc   ;==>_Progress_GetPos

Just return 1200% when it's actually 66% ! I don't know why.
Link to comment
Share on other sites

You have to scale the value. Look what value has 100% and then you know what value stands for maybe 66%.

I think 100% is 1816 or 18160, like the tooltip says.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
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
 Share

  • Recently Browsing   0 members

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