[Outdated] WhatsApp with AHK

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: WhatsApp with AHK

04 Jun 2015, 17:48

Hah, I suspected there was a more elegant way to implement the enter-to-send function other than Enter::SendClick ..., I need to look into webpage interaction more :).
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: WhatsApp with AHK

05 Jun 2015, 01:35

I think he means save the icons as base64 string and use them this way.
ref: Image2Include - #include images in your scripts by just me (using base64)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
joedf
Posts: 8953
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: WhatsApp with AHK

05 Jun 2015, 03:15

Yup! ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

05 Jun 2015, 05:52

Yeah, I could do that, but we are talking about 102 icons.
I was considering using gdi+ to generqte the different numbers on the tray icon. That way I'd only need to include about 3 icons. But I'm not sure if I'm legally allowed to include images in my programs that I don't have the copy rights for.
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

08 Jun 2015, 05:45

You might need a newer version of IE to get this to work.
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

11 Jun 2015, 13:19

Changes for v1.2:
-Fixed a bug where the last letter of each message wasn't sent to the chat (thanks to Pinkfloydd for reporting)
-Fixed a bug where writing a message, deleting it and then pressing enter would still send the deleted message
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: WhatsApp with AHK

11 Jun 2015, 17:06

I figured the missing last typed character (happened also if adding something mid-sentence) was due to some IE compatibility thing. What was the cause of the problem than?

I can't remember if it also happened when clicking the Send-button or only when pressing Enter, because the fix is only for the latter, right?
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

11 Jun 2015, 23:56

Well, I don't know what exactly the problem is/was. If I force it to run in IE directly, there are no such issues. Even enter-to-send works just fine without any modifications.

For the script: It's still happening when you click the send button.
I'll probably write a completely new UI.
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: WhatsApp with AHK

23 Jun 2015, 00:57

@Brutosozialprodukt:
Maybe this is interesting for you (WhatsApp for Desktop)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

23 Jun 2015, 10:24

Yes, this is very interesting, thank you! :)
coolykoen
Posts: 61
Joined: 01 Jun 2015, 06:10

Re: WhatsApp with AHK

30 Dec 2015, 14:50

hey, its me again, this time to tell you that im on windows 10 now, and it works so far :) theres one issue though:
it keeps "loading" the qr code which is needed to connect whatsapp(it doesnt load even on a full IE window):
Image

and this is what i found about the issue online:
Image

so yea.... does the script still work on your side? or is there any workaround?

thanks for any help :)
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

01 Jan 2016, 13:49

Just tried it and I can confirm the script is not working anymore, Unfortunately I don't have the time to fix it atm.
coolykoen
Posts: 61
Joined: 01 Jun 2015, 06:10

Re: WhatsApp with AHK

01 Jan 2016, 13:53

Bruttosozialprodukt wrote:Just tried it and I can confirm the script is not working anymore, Unfortunately I don't have the time to fix it atm.
Thanks for letting me know, and thats fine :)
real_Napster
Posts: 34
Joined: 19 Jan 2016, 13:43
Location: Germany

Re: WhatsApp with AHK

08 Nov 2016, 03:52

Hi there,

Unfortunately it doesn't work behind our business proxy Server (web.whatsapp.com is working).
Could you include a proxy setting? ;)
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: WhatsApp with AHK

22 Nov 2016, 06:47

I just did some debugging and spoofing the user-agent just isn't enough anymore. It seems like whatsapp is checking what functionality the browser is actually supporting in addition to the user agent string check.

Code: Select all

        BROWSER_CAPABILITY: {
            getRandomValues: !(!window.crypto || !window.crypto.getRandomValues),
            localstorage: !!window.localStorage,
            sessionstorage: !!window.sessionStorage,
            url: !!window.URL,
            websocket: !!window.WebSocket,
            worker: !!window.Worker
        },
It might be possible to inject code to hide missing functionality from whatsapp, but it might also render it useless...

A good starting point for debugging and stack tracing would probably be:

Code: Select all

                var t = y.CAPABILITY_URL + "?missing=" + n.join(",");
                window.location.replace ? window.location.replace(t) : window.location.href = t
But IE's debugging tools suck so much... I wasn't able to even get to the code because of the redirect.
And intercepting with Fiddler resulted in certificate issues...

So I give up. It would stop working eventually anways as WhatsApp seems to start relying on more and more modern browser features that IE will never get.

So my advice is to take a look at the project that jNizM mentioned: https://autohotkey.com/boards/viewtopic ... 217#p48217

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 232 guests