[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 - Angelscry - 2012-07-09 Ok... so we stay into true fullscreen. Another try. Download another small application named NirCmd and also extract if into C:\WINDOWS directory. Then use a script like this : Code: #Include <GUIConstantsEx.au3> Does it fix your XBMC restoring focus problem? RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-09 Nircmd fixed the problem with restoring focus. The only problem remaining is that I can still see the windows taskbar and the mouse cursor flash when closing the application for about a second and sometimes for like... half a second when launching. It's not perfect, but I think it might be as close to perfect as is possible with AutoIt and it's a serious improvement over what it was before. This problem doesn't happen when using the window function of XBMC, but for some reason it becomes really choppy in full screen window. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-09 (2012-07-09, 03:33)chris295 Wrote: Nircmd fixed the problem with restoring focus. The only problem remaining is that I can still see the windows taskbar and the mouse cursor flash when closing the application for about a second and sometimes for like... half a second when launching. It's not perfect, but I think it might be as close to perfect as is possible with AutoIt and it's a serious improvement over what it was before. This problem doesn't happen when using the window function of XBMC, but for some reason it becomes really choppy in full screen window.Try with one : Code: #Include <GUIConstantsEx.au3> I have changed the way to close the application and restore XBMC. In fact, the script first restore XBMC, then wait until XBMC become active, and only after close the application. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-09 Yet another improvement with that script. The mouse pointer no longer shows when exiting the application, but the task bar still flashes and the window title bar at the top of the screen flashes a few times. I can fix the taskbar showing by enabling "Auto Hide the Taskbar" in windows but no idea if it's possible to do anything about the flashing title bar. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-09 (2012-07-09, 04:23)chris295 Wrote: Yet another improvement with that script. The mouse pointer no longer shows when exiting the application, but the task bar still flashes and the window title bar at the top of the screen flashes a few times. I can fix the taskbar showing by enabling "Auto Hide the Taskbar" in windows but no idea if it's possible to do anything about the flashing title bar.I think it will be difficult to fix this. I did not see any task bar or title bar when using this script on my system. It is the title bar of which application ? RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-09 I'm not sure which title bar it is, it's in the shape of a title bar and the same size and position, but it's a solid color bar with no text. I think it's the XBMC window being maximized because it zooms up from the task bar. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-09 (2012-07-09, 04:42)chris295 Wrote: I'm not sure which title bar it is, it's in the shape of a title bar and the same size and position, but it's a solid color bar with no text. I think it's the XBMC window being maximized because it zooms up from the task bar.Could you confirm me that : XBMC video windows settings is set to "True fullscreen" and you launcher "Toogle Fullscreen" option is set to Off? If you invert these 2 following lines into the script : Code: Run("pssuspend -r XBMC.exe", "", @SW_HIDE) does it improve something? RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-09 XBMC Video Window Setting is set to use the true fullscreen, not fullscreen window. Toggle Fullscreen option for the launcher is set to off. If by inverting you mean to put the nircmd line above the xbmc command, doing that didn't seem to change anything. Just to be sure I did what you wanted me to, here is my "inverted" code: Code: #Include <GUIConstantsEx.au3> RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-09 Yes, That's what I mean. I think I will not be able to do better. I have try to play this monitor and screensaver on/off features, but the results where not better than the use of the fullscreen GUI image. I think the title bar you see is the XBMC windows restoring to fullscreen. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-09 Don't worry, I'm surprised you were able to get it as close to perfect as you have using nothing but AutoIt and a few small utilities. I really appreciate all the time you took refining the code. Hopefully in the future a solution can be integrated into advanced launcher (don't know if this is possible or not...?) but either way it's a huge improvement. Thanks again! RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-09 (2012-07-09, 05:04)chris295 Wrote: Don't worry, I'm surprised you were able to get it as close to perfect as you have using nothing but AutoIt and a few small utilities. I really appreciate all the time you took refining the code. Hopefully in the future a solution can be integrated into advanced launcher (don't know if this is possible or not...?) but either way it's a huge improvement. That practically impossible to integrate a script that will work in all the cases. The actual script is working great with SNES9X on your system, but I'm certain that it will not be suitable with all your applications or on another user system. Application softwares have different way to start and display (launcher or not, fullscreen or not, different graphical renderer, etc...). A script will never be able to predict all the possible cases. Advantage of using external scripts (.BAT, .SH or autoit) is that users will be able to do exactly what they want on their system and modify the scripts to add for example controllers selection/activation, display selection, etc... RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-10 I can see where that would be a problem. After thinking about what you said, I wanted to find a universal solution so I don't have to deal with the hassle of modifying the scripts every time, as well as find a solution for the flashing title bar. I think I have come up with a solution that works for me and is perfect, as well as should work with any application on any PC. Also, should be noted that this method will disable the mouse pointer for the whole time you are using XBMC, but most people use remotes, controllers or the keyboard to navigate their HTPC anyway. A few preparations must be made: 1. Set the Desktop Wallpaper to complete black. You can save this as a separate theme if you don't use your machine for an HTPC exclusively. 2. Right click on the desktop, hover over the "view" menu and uncheck "Show Desktop Icons". This is reversable and you can get all your icons back with their current positions by checking "Show Desktop Icons" again. 3. Set the launcher full screen toggle to "Off", otherwise XBMC will minimize when launching and you will see the XBMC window on the desktop. 4. Download "TaskBarHider", extract the program to C:\Windows. 5. Download nomousy and extract it to C:\Windows. Code: HotKeySet("{ESC}", "Terminate") I have used the processclose command because I don't think there is a way to use the suspend/resume command without the title bar showing when the script calls for XBMC to maximize. It's really not a big deal since XBMC starts up so quickly and I actually think I prefer it this way rather than returning to the games menu. It is completely seemless. No mouse pointer, no flashing screens, no taskbar and no title menus are displayed. The only disadventage is the amount of preperation that must be done before launching XBMC each time. To solve this I'm trying to create a custom launcher for XBMC itself, but I'm a little stuck. XBMC seems to use it's own keyboard hook and ignores the hotkeyterminate function from AutoIt, so I can't figure out how to close XBMC with AutoIt. Maybe there is a way to make AutoIt perform the commands from the script when XBMC is closed in the normal way from the exit menu or some way to bypass the keyboard hook? My launcher code is as follows: Code: HotKeySet("{\}", "Terminate") With this code, XBMC launches, the taskbar and mouse pointers are both hidden, but I can't test the rest of the script since XBMC doesn't terminate when I press \. Any tips on how to proceed? Anyhow, I just wanted to post this for anyone who wanted a completely seemless solution. It's not really practical but maybe it can be with a modified launcher for XBMC using AutoIt. I also wanted to thank you again Angelscry for your work on Advanced Launcher and for your great support via the forums. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - chris295 - 2012-07-14 So it's been a few days now and you haven't responded yet. I'm guessing you didn't see my question in the wall of text... sorry about that. I'll repost it here just in case you happen to know the answer. Is there a way to close XBMC with the terminate function, similar to how you close other applications with the terminate function using the Esc key? I have tried using the script I posted above, but it seems as though XBMC ignores the terminate function, similar to how Nestopia ignores it. If there isn't a way with Autoit, is there a way to instruct Autoit to perform the rest of the script when you exit XBMC in the normal way via the menu? That way when using my custom launcher and closing XBMC, XBMC will restore the mouse pointer and taskbar. As it is now, XBMC will not terminate from the script so the rest of my script does not execute when closing XBMC. thanks again RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-07-14 (2012-07-14, 01:42)chris295 Wrote: So it's been a few days now and you haven't responded yet. I'm guessing you didn't see my question in the wall of text... sorry about that. I'll repost it here just in case you happen to know the answer. To be honest, I do not really undestand what you want to do. (2012-07-14, 01:42)chris295 Wrote: Is there a way to close XBMC with the terminate function, similar to how you close other applications with the terminate function using the Esc key? Must be possible, just assing xbmc.exe into the ProcessClose() autoit function. (2012-07-14, 01:42)chris295 Wrote: I have tried using the script I posted above, but it seems as though XBMC ignores the terminate function, similar to how Nestopia ignores it. If it is the case its mean that Nestopia and XBMC take the control on key pressed events over all the other running processes. (2012-07-14, 01:42)chris295 Wrote: If there isn't a way with Autoit, is there a way to instruct Autoit to perform the rest of the script when you exit XBMC in the normal way via the menu? You have the ProcessExist() function into autoit script that allow to tell you if a process is running or not : If XBMC.exe process do not exist -> continue the process. RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2012-07-14 you can use "emerge desktop" instead of "taskbarhider"...it will lighten your script because it remove the taskbar... |