2009-12-19, 23:19
Interesting post. I was hoping to find something like this. I'm not familiar with python, but I'm wondering why you used a python script to call another script... why not just use a python script to do everything?
Quote:Since these directions require ahk scripts and exe's, do you (or anyone else watching this thread) have a python script that would do the same thing and play nice with Linux? My programming experience is limited to copy paste and scratching my head online, so any suggestions would be great, thanks
Quote:Thanks for the script... finally got all the components working great...You should really emphasize Downloading the AutoHotKey Program and running the text file through there to make you launcher executable. Other than that I really appreciate it.
Quote:I'm not familiar with python, but I'm wondering why you used a python script to call another script... why not just use a python script to do everything?
Quote:This is the new error message:
"C:\PROGRA~1\XBMC\HULULA~1.EXEThe NTVDM CPU has encountered an illegal instruction.
CS:0dea IP:0241 OP:62 72 65 65 6e Choose 'Close' to terminate the application."
Now what's wrong?
Quote:I'm launching beyondtv. After exiting that program there is a 20 seconds pause at a blank screen before xbmc launches again. Is this something that can be shortened in the code somewhere?
winactivate
ifwinnotactive
<favourites>
<favourite name="HyperSpin">XBMC.RunScript(C:\program files\XBMC\launcher.py)</favourite>
</favourites>
Josefin Wrote:Hello,
I stumbled into this thread when looking for information about Minimizing XBMC.
I know there can be a hotkey assigned to Minimize and I did so
But I wonder something and hopefully someone can help me out.
I want something like this in Windows:
- Lauch XBMC
- Launch another application + run hotkey combination
In XBMC:
- On minimize or on keypress (depending on what kind of behaviour are supported), run hotkey combination
Outside XBMC, which is now minimized
- On Maximize, run hotkey combination.
With "run hotkey combination", I mean that the script/tool simulates a key-combination-press.
Is this something that can be done with your technique? Please lead me to the right direction.
Background info:
1. I got help with a system that starts directly with XBMC (My children will use this computer and they cant handle something more complicated than a remote).
2. XBMC is started through a launcher software which starts XBMC and another tool.
3. That other tool can be hidden through CTRL-ALT-R but unfortunately it isnt hidden on start - I want to hide it.
4. When minimizing XBMC using a button on a remote controller, I want "something" to listen to this and trigger a hotkey. I understand that AutoHotkey can be triggered to listen to hotkeys (like minimize-hotkey). But can it also "send" a hotkey, eg CTRL-ALT-R?
5. Men maximizing XBMC again, I need "something" to notice that and send the hotkey CTRL-ALT-R.
So I need it to
Quote:I've gotten it to work up to the point where it actually launches Boxee, but for some reason, whenever I launch it from within XBMC I get an error from Boxee stating "No Suitable Skin version found, we require at least 2.1000" or something very similar.
Quote:SophT: Can you run AHK files without running Autohotkey in the background? I dont want to run any additional software if possible.
<favourites>
<favourite name="Hulu">XBMC.RunScript(C:\Users\SR\AppData\Roaming\XBMC-BOXEE\HuluLauncher.py)</favourite>
<favourite name="Boxee">XBMC.RunScript(C:\Users\SR\AppData\Roaming\XBMC-BOXEE\BoxeeLauncher.py)</favourite>
</favourites>
import os, subprocess
subprocess.Popen(["C:\Users\SR\AppData\Roaming\XBMC-BOXEE\HuluLauncher.exe"], shell=False)