Sharing AutoHotkey Variables, Methods, etc between scripts & other programming languages -> with phyton!

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Sharing AutoHotkey Variables, Methods, etc between scripts & other programming languages -> with phyton!

Sharing AutoHotkey Variables, Methods, etc between scripts & other programming languages -> with phyton!

Post by Skywalker » 02 Dec 2022, 08:29

Hi,
as a AHK lover i solve everything with AHK, but now i need a bridge to python:
Have a look at this great video from Joe the Automator, it really works fine and helped me an lot:
https://www.youtube.com/watch?v=VqsKwH1arbo

It works fine between zwei Autohotkey Scripts, i can access the object perfectly from an other AHK Script!

But i would love to access it from python to really have a bridge between the languages.
I cant get it to work, has anybody an idea for me?

Code: Select all

import win32com.client as win32

GUID = "{4F301623-7051-4534-B7D1-9F51AD6A7308}"

#testcomobj = win32.gencache.EnsureDispatch(GUID)
#-> does completely not work with error "This COM object can not automate the makepy process - please run makepy manually for this object"

#testcomobj = win32.dynamic.Dispatch(GUID)
testcomobj = win32.Dispatch(GUID)

print("get value from the object ",testcomobj.test())
Thank you so much for any help!
Sky

Top