darksupernova Posted January 29, 2013 Share Posted January 29, 2013 (edited) Hello again! I would like to use the follow script, except I would like to add an operator script. eg use ALT-ESC but I dont know how to code this in? I would also like this script to run two programs and then terminate both with the same key combination, is this easily done? HotKeySet("{ESC}", "Terminate") If $CmdLine[0] == 1 Then ProcessClose ( "XBMC.exe" ) Run ( '"H:\remotedesktop.exe" /e "' & $CmdLine[1] & '"', "H:\" ) While 1 Sleep(100) WEnd EndIf Func Terminate() ProcessClose ( "remotedesktop.exe" ) Run ( '"H:\Interface\xbmc\XBMC.exe"' ) WinWait ( "XBMC" ) WinActivate ( "XBMC" ) Exit 0 EndFunc Thanks for your help! Updated! Edited January 29, 2013 by darksupernova Link to comment Share on other sites More sharing options...
Developers Jos Posted January 29, 2013 Developers Share Posted January 29, 2013 @darksupernova, have you read our forumrules as it seems the script is game related? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kyan Posted January 29, 2013 Share Posted January 29, 2013 XBMC is a media center, dolphin could be a screen saver, idk. But if you think is game related better remove my 1st comment Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 29, 2013 Moderators Share Posted January 29, 2013 DiOgO,if you think is game relatedWe do. better remove my 1st commentThere is an "Edit" button on the post for you to do it yourself. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
darksupernova Posted January 29, 2013 Author Share Posted January 29, 2013 I'm sorry, Im not actually using this for anything game related, I'm just copying a script from somewhere as I have no coding experience! This is what came up on google when I was trying to learn how to terminate something and run something else. I actually want to use it to launch the remote desktop program from within xbmc. Sorry for the confusion! Link to comment Share on other sites More sharing options...
Kyan Posted January 29, 2013 Share Posted January 29, 2013 DiOgO,There is an "Edit" button on the post for you to do it yourself. M23Done (I thought that is only possible edit a comment until 2-5min after being published) Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
darksupernova Posted January 29, 2013 Author Share Posted January 29, 2013 So why doesnt this work? HotKeySet("{ALT}+{ESC}", "Terminate") If $CmdLine[0] == 1 Then ProcessClose ( "XBMC.exe" ) Run ( '"H:\remotedesktop.exe" /e "' & $CmdLine[1] & '"', "H:\" ) While 1 Sleep(100) WEnd EndIf Func Terminate() ProcessClose ( "remotedesktop.exe" ) Run ( '"H:\Interface\xbmc\XBMC.exe"' ) WinWait ( "XBMC" ) WinActivate ( "XBMC" ) Exit 0 EndFunc Link to comment Share on other sites More sharing options...
Developers Jos Posted January 29, 2013 Developers Share Posted January 29, 2013 (edited) You were expected to answer my question.*click*Reopened after having received a pm.Jos Edited January 30, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
darksupernova Posted February 1, 2013 Author Share Posted February 1, 2013 Nobody can help me add in the use of an operator key? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now