Posts: 1,058
Threads: 367
Joined: Oct 2007
I tried to locate the icon in a tooltip created by :
int IconFile=GetIcon("....ico" 0)
mac "ShowTooltip" "" "test[]tooltip" -1 300 100 400 1|2|4 IconFile
using scan, but I failed.
Any advice is mostly welcome. Thanks in advance.
Posts: 1,338
Threads: 61
Joined: Jul 2006
09-28-2018, 02:47 AM
(This post was last modified: 09-28-2018, 03:11 AM by Kevin.)
this works for me no problem on windows 10
mac "ShowTooltip" "" "test[]tooltip" -1 300 100 400 1|2|4 "Test" "shell32.dll,4"
0.3
int w=win("" "tooltips_class32")
scan "image:hF78E7989" w 0 1|2|16
did you forget to add the image as a resource of the function your using? if your create the scan code in a different function need to add image file as a resource of the new function.
what's the error message your getting?
something like this?
Error (RT) in resource not found. ?
or other?
object not found?
needs a slight delay from when ShowTooltip is called and when you start scan
0.3
was as low as i could go anything less would get object not found error.
Posts: 1,058
Threads: 367
Joined: Oct 2007
Dear Kevin,
Thanks for your advice. The message was "object not found". The delay I have used was 3-5 s, nevertheless it did not work. I will try again, and I will let you know accordingly. Best regards.
Posts: 1,058
Threads: 367
Joined: Oct 2007
I am wondering why the above showtooltip command produces a tooltip without an icon.
Posts: 1,338
Threads: 61
Joined: Jul 2006
09-28-2018, 08:26 AM
(This post was last modified: 09-28-2018, 08:30 AM by Kevin.)
you really don't need the mac command when calling
ShowTooltip with flag 2. Flag 2 creates a new thread mac isn't necessary.
can call like this instead
ShowTooltip "test[]tooltip" -1 300 100 400 1|2|4 "Test" "shell32.dll,4"
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thanks, OK, I get the icon, however I have problem with scan:
resource not found.
How can I find the resource (image) name? I check with the "resource" toolbar, but I failed.
Posts: 1,338
Threads: 61
Joined: Jul 2006
09-28-2018, 07:39 PM
(This post was last modified: 09-29-2018, 05:23 PM by Kevin.)
If you are using my example download the attachment then select the function that has the example code in it . Click resources button on qm main window then on resources dialog click add then import from file then scan code should work
download this
Posts: 1,058
Threads: 367
Joined: Oct 2007
I am sorry, but there is nothing to download. Thank you for your attention.
Posts: 1,338
Threads: 61
Joined: Jul 2006
10-01-2018, 04:36 PM
(This post was last modified: 10-01-2018, 04:41 PM by Kevin.)
the attachment is the folder image see picture below
here is zip version if you still have trouble
hF78E7989.zip (Size: 433 bytes / Downloads: 290)
Posts: 1,058
Threads: 367
Joined: Oct 2007
10-01-2018, 04:48 PM
(This post was last modified: 10-01-2018, 04:54 PM by ssimop.)
Thank you, just downloaded, .zip version. Still impossible to download from the picture shown. It is very likely I am doing something wrong.
Just run, successfully. Many thanks indeed !
Posts: 1,338
Threads: 61
Joined: Jul 2006
10-01-2018, 04:54 PM
(This post was last modified: 10-01-2018, 04:58 PM by Kevin.)
When attachment is an image have to right click the image. Then save image
Cool glad you got it working
Posts: 1,058
Threads: 367
Joined: Oct 2007
I understand. Thank you, it works now, following your advice.