Kodi Community Forum
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC (/showthread.php?tid=85724)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Danell - 2012-12-20

I'm having big poblems with Advanced Launcher togethe with ALL games!
I have tried to synk my Steam-games with XBMC by shortcuts, and also zsnes with Super Mario Bros 3 and some others. I have tried all scrapers but non of them finds any thumbnails o fanarts! I have even went to the scrappers webpages just to check and the games are thee with fanart, thumbnails and eveything! What can I do to make it work?
(I use XBMC Eden and latest Advanced Launcher)


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-12-20

(2012-12-20, 02:03)Danell Wrote: I'm having big poblems with Advanced Launcher togethe with ALL games!
I have tried to synk my Steam-games with XBMC by shortcuts, and also zsnes with Super Mario Bros 3 and some others. I have tried all scrapers but non of them finds any thumbnails o fanarts! I have even went to the scrappers webpages just to check and the games are thee with fanart, thumbnails and eveything! What can I do to make it work?
(I use XBMC Eden and latest Advanced Launcher)
  • Are you sure to have setup correctly the 3 scrappers? There is 3 differents scrapers : 1 for data/info, 1 for covers/thumbs and 1 for screenshots/fanarts? All must be activated to allow you to scrap correctly all the metadata (Collecting method set to Scraper). Be also sure to have checked the "overwrite existing files" options for images scrappers.
  • Are you sure to have sellected the right platform for each launcher (IBM PC Compatible for Steam Games, or Super Nintendo Entertainement System for Super Mario)?
  • Are you sure that you have write acces to the folder you have selected to save scraped thumb and fanart images?
  • Make sure that you do not use nfs:// or smb:// path for your items, thumbas and fanart directories.






RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Danell - 2012-12-20

(2012-12-20, 05:49)Angelscry Wrote:
(2012-12-20, 02:03)Danell Wrote: I'm having big poblems with Advanced Launcher togethe with ALL games!
I have tried to synk my Steam-games with XBMC by shortcuts, and also zsnes with Super Mario Bros 3 and some others. I have tried all scrapers but non of them finds any thumbnails o fanarts! I have even went to the scrappers webpages just to check and the games are thee with fanart, thumbnails and eveything! What can I do to make it work?
(I use XBMC Eden and latest Advanced Launcher)
  • Are you sure to have setup correctly the 3 scrappers? There is 3 differents scrapers : 1 for data/info, 1 for covers/thumbs and 1 for screenshots/fanarts? All must be activated to allow you to scrap correctly all the metadata (Collecting method set to Scraper). Be also sure to have checked the "overwrite existing files" options for images scrappers.
  • Are you sure to have sellected the right platform for each launcher (IBM PC Compatible for Steam Games, or Super Nintendo Entertainement System for Super Mario)?
  • Are you sure that you have write acces to the folder you have selected to save scraped thumb and fanart images?
  • Make sure that you do not use nfs:// or smb:// path for your items, thumbas and fanart directories.

I have went trough all the scrappers, info, thumb and fanarts. I have also picked IBM PCI Compartible on all the steamgames. When AL start working it says "No fanart found" and "No thumbnail found". I have all games and shortcuts on my C drive.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-12-20

(2012-12-20, 19:42)Danell Wrote:
(2012-12-20, 05:49)Angelscry Wrote:
(2012-12-20, 02:03)Danell Wrote: I'm having big poblems with Advanced Launcher togethe with ALL games!
I have tried to synk my Steam-games with XBMC by shortcuts, and also zsnes with Super Mario Bros 3 and some others. I have tried all scrapers but non of them finds any thumbnails o fanarts! I have even went to the scrappers webpages just to check and the games are thee with fanart, thumbnails and eveything! What can I do to make it work?
(I use XBMC Eden and latest Advanced Launcher)
  • Are you sure to have setup correctly the 3 scrappers? There is 3 differents scrapers : 1 for data/info, 1 for covers/thumbs and 1 for screenshots/fanarts? All must be activated to allow you to scrap correctly all the metadata (Collecting method set to Scraper). Be also sure to have checked the "overwrite existing files" options for images scrappers.
  • Are you sure to have sellected the right platform for each launcher (IBM PC Compatible for Steam Games, or Super Nintendo Entertainement System for Super Mario)?
  • Are you sure that you have write acces to the folder you have selected to save scraped thumb and fanart images?
  • Make sure that you do not use nfs:// or smb:// path for your items, thumbas and fanart directories.

I have went trough all the scrappers, info, thumb and fanarts. I have also picked IBM PCI Compartible on all the steamgames. When AL start working it says "No fanart found" and "No thumbnail found". I have all games and shortcuts on my C drive.
Please post the content of your launchers.xml file here using pastebin service




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Danell - 2012-12-21

(2012-12-20, 19:45)Angelscry Wrote:
(2012-12-20, 19:42)Danell Wrote:
(2012-12-20, 05:49)Angelscry Wrote:
  • Are you sure to have setup correctly the 3 scrappers? There is 3 differents scrapers : 1 for data/info, 1 for covers/thumbs and 1 for screenshots/fanarts? All must be activated to allow you to scrap correctly all the metadata (Collecting method set to Scraper). Be also sure to have checked the "overwrite existing files" options for images scrappers.
  • Are you sure to have sellected the right platform for each launcher (IBM PC Compatible for Steam Games, or Super Nintendo Entertainement System for Super Mario)?
  • Are you sure that you have write acces to the folder you have selected to save scraped thumb and fanart images?
  • Make sure that you do not use nfs:// or smb:// path for your items, thumbas and fanart directories.

I have went trough all the scrappers, info, thumb and fanarts. I have also picked IBM PCI Compartible on all the steamgames. When AL start working it says "No fanart found" and "No thumbnail found". I have all games and shortcuts on my C drive.
Please post the content of your launchers.xml file here using pastebin service
http://pastebin.com/RxvnTHmw

I have got some images working with help of the google scraper, but they aren't that good... The two latest games (that I haven't added anything from google with, only tried with the scrapers, but no luck) is PlanetSide 2 and Snapshot. I also saw now that under planetside 2 there is an adress to where the fanart and thumbnail should be but there are no file in that folder for ether of the games



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-12-21

(2012-12-21, 00:38)Danell Wrote:
(2012-12-20, 19:45)Angelscry Wrote:
(2012-12-20, 19:42)Danell Wrote:
Please post the content of your launchers.xml file here using pastebin service
http://pastebin.com/RxvnTHmw

I have got some images working with help of the google scraper, but they aren't that good... The two latest games (that I haven't added anything from google with, only tried with the scrapers, but no luck) is PlanetSide 2 and Snapshot. I also saw now that under planetside 2 there is an adress to where the fanart and thumbnail should be but there are no file in that folder for ether of the games
This is the reason why it is not working :
Quote:...
<romext>lnk|Url</romext>
<platform>PC-Booter</platform>
<thumb>C:\Program Files (x86)\Steam\logo.png</thumb>
...
Seems that your launchers.xml file have been manually edited to replace the IBM PC Compatible plaform value to PC-Booter. That's not really a good idea. Scrapers use the filename and this platform value to identfy and found the corresponding game into the different databases. If you indicate a platform that do not exist, scrapers will not be able to found the corresponding games.

Best move actually for you is to :
  • Restore the platform value of your Steam launcher to IBM PC Compatible. You can do this directly from Advanced Launcher.
  • Then go into Edit Launcher > Manage Items List and Export items data to .NFO files. It will locally save your game information into local NFO files.
  • Then go into Edit Launcher > Manage Items List and Clear items list. It will remove all the listed games for your Steam Launcher.
  • Then go into Add-on Setting > Data & Infos and set Collecting Method to NFO Files. This will avoid to rescrap all the information from Internet.
  • Then go into Add-on Setting > Thumbs, set Collecting Method to Scrapers, Import mode to Semi-automatic and Select a Source (GameFAQ for example), and check Overwrtie existing files.
  • Then go into Add-on Setting > Fanart, set Collecting Method to Scrapers, Import mode to Semi-automatic and Select a Source (GameFAQ for example), and check Overwrtie existing files.
  • Finally go into Edit Launcher > Add Items > Scan for New Items to scrap Thumbs and Fanart images.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - 3dhubiflieger - 2012-12-21

Programm Joystartend / Advanced Launcher

Hi, here again all described in more detail! A video can be found here (german):
http://www.youtube.com/watch?v=brED0i9418A

Download here:
https://rapidshare.com/files/1218932272/JOYSTARTEND.EXE;F0DA20D26A6CDCF2B784B44F538DC87E;

-> Features:
==========
- Games can be started right / one comes with a Joypad Button back to XBMC!
- It can enter a path for the Scores of the emu and the PC game!
- Fully automatic Score storage and restoration after a backup
- Very easy to configure and upgrade path
- PC games are treated as ROMS! So you can create your own department!
- At startup screen is turned off and (customizable) to break again
- Minimize / maximize problem is that sometimes occurred in XBMC fixed


-> Installation:
===============
-invite you Joystartend.exe down and copy it into a separate directory!
Joystartend.exe-start .. there are 2 files generated here! Infodatei.txt and Programmpfade.txt!
Programmpfade.txt-open the file and write in it from top to bottom inside the directories!
-> The program will later copy the current contents of these directories except the txt files!
Joystartend.exe-start again and press a button on your joypad! With this button you come later
from the program! Also give a path Score!
K-certify with, and my program will copy all files in the specified folders!

XBMC:
=====
-start XBMC
-open the advanced launcher
in application give a (normally path to the emulator or PC program) Joystartend.exe!
at-modify argument you give the actual emulator or PC program including any parameters
-If all goes well, it should work! You can modify the CNF file even further!







RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - harSon - 2012-12-21

(2012-12-18, 20:47)sudopinion Wrote:
(2012-12-18, 20:20)harSon Wrote: It starts, but not because of the batch script. I only starts because I have it set to start upon Windows starting, but when I take that away in the program's settings, it fails to boot up when I launch the batch file.

This is an AutoHotkey script that will do what you're looking to do, but seriously, look into Rom-Jacket. It's built to do this kind of stuff.

Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
}
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m controller1.xpadderprofile controller2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Process_Resume("xbmc.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}

Hey, I need help with this script you posted. I managed to get things working before, but my XBMC was corrupted and I had to redo everything. This is the only thing I can't get to work again. XBMC minimizes and the game launches, but I get an error from Xpadder saying the controller cannot be opened. Any ideas? Also, if possible, I'd like to put in a command to suspend/kill eventghost when the game is started and resume/start eventghost when I exit the game, since the program messes with my video game controls.

The path to my eventghost is C:\Program Files (x86)\EventGhost\eventghost.exe

Thanks!
Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
}
Run, "C:\Xpadder\xpadder.exe" /m controller1.xpadderprofile controller2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Process_Resume("xbmc.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - sudopinion - 2012-12-22

(2012-12-21, 21:26)harSon Wrote: Hey, I need help with this script you posted. I managed to get things working before, but my XBMC was corrupted and I had to redo everything. This is the only thing I can't get to work again. XBMC minimizes and the game launches, but I get an error from Xpadder saying the controller cannot be opened. Any ideas? Also, if possible, I'd like to put in a command to suspend/kill eventghost when the game is started and resume/start eventghost when I exit the game, since the program messes with my video game controls.

The path to my eventghost is C:\Program Files (x86)\EventGhost\eventghost.exe

Thanks!

No problem.
The reason you get the xpadder issue is because it is trying to load controller1.xpadderprofile & controller2.xpadderprofile which don't exist in your "C:\Xpadder" directory.

Follow these steps:

1: For the xpadder issue, create a profile with no mapped keys. Name it nolayout1.xpadderprofile & save it in "C:\xpadder".
(this will clear the xpadder keys when you quit the game. You may choose to remap this layout to something that will control xbmc if you're feeling fancy.)

2: Make or rename the blackops xpadderprofile to CODBO2.xpadderprofile and put it in your "C:\xpadder" directory.

3: Ajust the script with the following changes to fix the xpadder issue and enable eventghost suspension:

Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
Process_Suspend("EventGhost.exe")
}
Run, "C:\Xpadder\xpadder.exe" /m CODBO2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Run, "C:\Xpadder\xpadder.exe" /m nolayout1.xpadderprofile
Process_Resume("xbmc.exe")
Process_Resume("EventGhost.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}

...




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - harSon - 2012-12-22

I've used the code and compiled it into an exe, and when I launch it, XBMC does minimize and the game starts up but eventghost does not close and my xpadder keys don't work (it's open, but I'd imagine ghostevent is overriding it):

Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
Process_Suspend("eventghost.exe")
}
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m CODBO2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m nolayout1.xpadderprofile
Process_Resume("xbmc.exe")
Process_Resume("eventghost.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - sudopinion - 2012-12-22

(2012-12-22, 03:42)harSon Wrote: I've used the code and compiled it into an exe, and when I launch it, XBMC does minimize and the game starts up but eventghost does not close and my xpadder keys don't work (it's open, but I'd imagine ghostevent is overriding it):

You might try changing eventghost.exe to EventGhost.exe in the script above,however you probably just want to kill the process.

The previous script suspends the eventghost.exe. this one kills it:

Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
run, taskkill /F /IM EventGhost.exe
}
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m CODBO2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m nolayout1.xpadderprofile
Process_Resume("xbmc.exe")
Run, "C:\Program Files (x86)\EventGhost\EventGhost.exe"
Process_Resume("EventGhost.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Tuxon86 - 2012-12-22

Thanks for the good work on this addon!

I seem to have a little problem with it and I don't know if it's normal or not.
The games and emulators launch fine but when I exit the game I don't go back to xbmc, i'm dropped on the desktop and I have to either click on the taskbar icon or do an alt-tab to return to xbmc. Is this normal?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - harSon - 2012-12-22

(2012-12-22, 05:36)sudopinion Wrote:
(2012-12-22, 03:42)harSon Wrote: I've used the code and compiled it into an exe, and when I launch it, XBMC does minimize and the game starts up but eventghost does not close and my xpadder keys don't work (it's open, but I'd imagine ghostevent is overriding it):

You might try changing eventghost.exe to EventGhost.exe in the script above,however you probably just want to kill the process.

The previous script suspends the eventghost.exe. this one kills it:

Code:
#NoEnv
#Singleinstance force
DetectHiddenWindows, On
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
Autotrim, off
MouseMove, 9999,-9999
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
WinMinimize, XBMC
Process, Exist, xbmc.exe
xbmc_pid=%errorLevel%
If (xbmc_pid = 0)
{
{
If ! errorLevel
{
}
}      
}
else
{
Process_Suspend("xbmc.exe")
run, taskkill /F /IM EventGhost.exe
}
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m CODBO2.xpadderprofile
Runwait, "C:\Program Files (x86)\Activision\Call of Duty Black Ops II\t6sp.exe" "%1%"
Run, "C:\program files (x86)\xpadder\xpadder.exe" /m nolayout1.xpadderprofile
Process_Resume("xbmc.exe")
Run, "C:\Program Files (x86)\EventGhost\EventGhost.exe"
Process_Resume("eventghost.exe")
WinShow, ahk_class Shell_TrayWnd
WinShow, Start ahk_class Button
WinRestore, XBMC
exitapp
esc::
exit
ProcExist(PID_or_Name=""){
Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
Return Errorlevel
}
Process_Resume(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtResumeProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}
Process_Suspend(PID_or_Name){
PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
If !h  
Return -1
DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
DllCall("CloseHandle", "Int", h)
}

That did the trick.

This is sort of off-topic now, but for some reason when I launch the game this way, the button I have mapped to ESC as well as the ESC key on the keyboard itself cease to work. Any ideas what can cause this?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-12-22

(2012-12-22, 06:18)Tuxon86 Wrote: Thanks for the good work on this addon!

I seem to have a little problem with it and I don't know if it's normal or not.
The games and emulators launch fine but when I exit the game I don't go back to xbmc, i'm dropped on the desktop and I have to either click on the taskbar icon or do an alt-tab to return to xbmc. Is this normal?
First make sure that you have activated the Use a fullscreen window rather than true fullscreen option that is present into XBMC system settings. Next, into Advanced Launcher, go into the context menu ("C" key) > Edit launcher > Advanced Modifications > and set Toggle XBMC Fullscreen option to OFF. It may solve your problem.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - ultradodger - 2012-12-22

Hello, Angelscry.

I am looking for the toggle option you are referring to, but can't seem to locate it. Under "Programs" I highlight Advanced Launcher, press "C", Add-on Settings, and go to the advanced options but there doesn't appear to be this option there. Am I looking in the wrong location? Thanks!