embed a tweet in ahk gui
embed a tweet in ahk gui
Hi community
is there a way to embed a tweet in the ahk gui ?
thx a lot
is there a way to embed a tweet in the ahk gui ?
thx a lot
Re: embed a tweet in ahk gui
Assuming you use version 1.1.xx
If you have an URL you can put an ActiveX control with Shell.Explorer and navigate to your URL
From the Help:
If you have an URL you can put an ActiveX control with Shell.Explorer and navigate to your URL
From the Help:
Code: Select all
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer ; The final parameter is the name of the ActiveX component.
WB.Navigate("https://www.autohotkey.com/docs/") ; This is specific to the web browser control.
Gui Show
Re: embed a tweet in ahk gui
it says browser to old and not supportet in twitter
gmoises wrote: ↑28 Jan 2023, 21:26Assuming you use version 1.1.xx
If you have an URL you can put an ActiveX control with Shell.Explorer and navigate to your URL
From the Help:
Code: Select all
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer ; The final parameter is the name of the ActiveX component. WB.Navigate("https://www.autohotkey.com/docs/") ; This is specific to the web browser control. Gui Show
-
- Posts: 498
- Joined: 03 Dec 2018, 20:02
Re: embed a tweet in ahk gui
Take a look at Neutron.ahk
Re: embed a tweet in ahk gui
Neutron does not help.
You have 2 variants:
1) Use WebView2.
2) Place any browser as child window in Your gui.
You have 2 variants:
1) Use WebView2.
2) Place any browser as child window in Your gui.
-
- Posts: 498
- Joined: 03 Dec 2018, 20:02
Re: embed a tweet in ahk gui
Found a way how to cheat twitter
For normal rendering search forum for "fixie".
Code: Select all
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer
_SetUserAgent("Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)")
WB.Navigate("https://twitter.com/AutoHotkey/status/927177517420695552")
Gui Show
_SetUserAgent(dwOpt)
{
; Discovered by Inthemist
; AutoIt >> AutoHokey port by TLM
; ANSI fix by GeekDude
DllCall("LoadLibrary", "str", "urlmon.dll")
DllCall("urlmon.dll\UrlMkSetSessionOption"
, uint, 0x10000001
, aStr, dwOpt
, uint, StrLen(dwOpt)
, uint, 0)
}
Last edited by malcev on 03 Feb 2023, 11:34, edited 1 time in total.
Re: embed a tweet in ahk gui
Thanks for your help, but this code gives me same result saying browser not supported
malcev wrote: ↑02 Feb 2023, 08:45Found a way how to cheat twitterFor normal rendering search forum for "fixie".Code: Select all
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer _SetUserAgent("Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)") WB.Navigate("https://twitter.com/AutoHotkey/status/927177517420695552") Gui Show _SetUserAgent(dwOpt) { ; Discovered by Inthemist ; AutoIt >> AutoHokey port by TLM ; ANSI fix by GeekDude DllCall("urlmon.dll\UrlMkSetSessionOption" , uint, 0x10000001 , aStr, dwOpt , uint, StrLen(dwOpt) , uint, 0) }
Re: embed a tweet in ahk gui
There was a bug in function.
I modified code.
I modified code.