Sign in to follow this  
Followers 0
FaridAgl

Read Tooltip without move mouse over it

11 posts in this topic

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?

Share this post


Link to post
Share on other sites



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


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

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.

Share this post


Link to post
Share on other sites

the problem is here that i move my mouse over it and still can't read.

i just set a hotkey, then move mouse over it and press the hotkey that suppose to read that tooltip.

any idea?

brw tnx for reply.

Share this post


Link to post
Share on other sites

U could try Control() commands, it may success maybe that tooltip is a hidden window

Or if its a game reading the value from its memory is your second option


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

U could try Control() commands, it may success maybe that tooltip is a hidden window

Or if its a game reading the value from its memory is your second option

i tried it with CE but nothing found.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

i really can't understand :mellow:

tooltop is : 12301/18160

and your code is : 1230

i just confused and can't figure out. :)

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