Jump to content
Sign in to follow this  
FireFox

ControlClick on button...

Recommended Posts

FireFox

Hi,

I want to click on a skype button.

Chat window :

Posted Image

I tried 3 solutions :

ControlClick('[CLASS:TskMultiChatForm.UnicodeClass]', '', '[CLASS:TChatEntryControl; INSTANCE:1]', 'left', 1)
ControlClick('[CLASS:TskMultiChatForm.UnicodeClass]', '', '[CLASS:TChatEntryControl]', 'left', 1)
ControlClick('[CLASS:TskMultiChatForm.UnicodeClass]', '', 67770, 1)oÝ÷ Ø­¶­*ÝÂíÂäj|¦¢·yÆ®±ëayÊ'¶º% 7!jxjׯz¼¬µªí¡ô¤Êz·¢²Ø^±Êâ¦ÖuçRzwLzËèj|¨èZ²'^+ZºÚ"µÍÛØ[ÛÛÝ    ÌÍÕÓWÐÒTHLÚ[ÛYH ÓZØË]LÉÝÂYÝÚ[^ÝÊ  ÌÎNÖÐÓTÔÎÚÓ][PÚ]ÜK[XÛÙPÛÜ×IÌÎNË  ÌÎNÉÌÎNÊH[ÛÛÛÛUÜ]J   ÌÎNÔÚÞHÚ[ÝÈÝ^ÝÈ  ÌÌÎÉÌÎNÈ [ÈÔB^][YÌÍØÙÚHÛÛÛÙ][J    ÌÎNÖÐÓTÔÎÚÓ][PÚ]ÜK[XÛÙPÛÜ×IÌÎNË  ÌÎNÉÌÎNË  ÌÎNÖÐÓTÔÎXÚY]ÑY]IÌÎNÊBÛÛÛÛXÚÊ ÌÎNÖÐÓTÔÎÚÓ][PÚ]ÜK[XÛÙPÛÜ×IÌÎNË  ÌÎNÉÌÎNË  ÌÎNÖÐÓTÔÎÚ][PÛÛÛÈSÕSÑNWIÌÎNË   ÌÎNÛY    ÌÎNËJBßÚ[Ù]Ý]J   ÌÎNÖÐÓTÔÎÚÓ][PÚ]ÜK[XÛÙPÛÜ×IÌÎNË  ÌÎNÉÌÎNËÕ×ÒQJBÚ[HBÜ  ÌÍÛHHÈ
LÔÙ[YÜØYÙJ ÌÍØÙÚ  ÌÍÕÓWÐÒT
PJBYÒÔÜÙY
    ÌÎNÌPÌÎNÊH[^]ÛÜ^^]ÛÜÑ[ßÚ[Ù]Ý]J   ÌÎNÖÐÓTÔÎÚÓ][PÚ]ÜK[XÛÙPÛÜ×IÌÎNË  ÌÎNÉÌÎNËÕ×ÔÒÕÊB[ÈÔÙ[YÜØYÙJ    ÌÍÚÛ    ÌÍÚSÙË ÌÍÝÔ[HH ÌÍÛ[HH   ÌÍÚT]H   ÌÍÝÔ[UHH    ÌÎNÝÜ[IÌÎNË  ÌÍÛ[UHH  ÌÎNÛ[IÌÎNË    ÌÍÜÔ]HH ÌÎNÛ[IÌÎNÊBØØ[  ÌÍØTÝ[HØ[
    ÌÎNÝÙÌ ÌÎNË ÌÍÜÔ]K  ÌÎNÔÙ[YÜØYÙIÌÎNË  ÌÎNÚÛ   ÌÎNË ÌÍÚÛ    ÌÎNÚ[    ÌÎNË ÌÍÚSÙË ÌÍÝÔ[UK ÌÍÝÔ[K  ÌÍÛ[UK   ÌÍÛ[JBYÜ[]Ù]ÜÜ^[Y    ÌÎNÉÌÎNÊBY    ÌÍÚT]    ÝÏH[  ÌÍÚT]    ÏH
[]  ÌÍØTÝ[ÉÌÍÚT]B]  ÌÍØTÝ[[[ÈÏOIÝ×ÔÙ[YÜØYÙ

Thanks for anyhelp :)

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

Hmm..

You can use Spy++ and WinSpy to capture all WM_COMMAND similar to this post, maybe it has something to with this issue.

From what I think that I understand, you send 50 times 'z' and then what?

Edited by Authenticity

Share this post


Link to post
Share on other sites
FireFox

@Authenticity

Its an example, the window is minimized or hidden, I send some caracters (50*Z) and I want to click on send button :)

Thanks for your example, I will take a look :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
FireFox

@Authenticity

I tried all possiblitys to click on the control...

Here is control infos :

Posted Image

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
FireFox

Skype is very hard to click on... I tried to ControlClick on any Skype Control with failure...

Any ideas ? :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
FireFox

Bump...

ControlClick returns 1, but there isn't anyclick...perhaps Skype not allow this ?

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

Read the post in the link again because I'm sure you're missing something or skipping the necessary part. This control probably sends WM_COMMAND even if it's an owner-drawn control... If so, you can send the same (or almost same) message to the correct process's message loop and it'll register the same event. Read again steps 2 through 5, it's probably same concept.

Edited by Authenticity

Share this post


Link to post
Share on other sites
FireFox

@Authenticity

I couldn't find Spy++, only other programs that do almost same thing....

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

http://download.microsoft.com/download/f/2.../ManagedSpy.exe

It's quite capable to do almost the same as Spy++. Anyway it's only the first step to capture the WM_COMMAND that I believe the control is sending, you'll need also WinSpy17 or just find WinSpy and try to find the handle within the process tree view of WinSpy (just click the "More >>" and you'll see a tree view processes list)

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  

×