Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: StreetDeck Functions

  1. #1
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960

    StreetDeck Functions

    StreetDeck exposes close to 300 functions that can be bound internally to keyboard events, gesture events, girder events, or voice recognition events. To bind an event within StreetDeck goto Settings | General | Input Methods and select the appropriate input method then follow the onscreen instructions to bind the events. Voice Recognition events can be remapped only through the external tool in the tools shortcuts folder.

    NOTE: Some functions are only valid when the program is in a certain state and will do nothing if certain conditions are not present. I.e. eFunctionPlay will only begin playing if a media item is selected.

    Functions are also used in the skin editor to bind control events to trigger functions. For example, every button has a function property that can be set to a function to execute when the user presses the button.

    Additionally, any function can be sent to StreetDeck from an external program using the windows SendMessage API.

    //Send a function to streetdeck
    #define WM_APP 0x8000
    #define SD_WM_FUNCTIONNOTIFY WM_APP + 12
    //This is a simple way to find the window, but it can fail if there is another window with StreetDeck for the title, like windows
    //explorer, for a more robust way, see the end of the next thread
    HWND hWndInstance = FindWindow(NULL, "StreetDeck");
    //Use PostMessage, rather then SendMesssage which could cause SD to crash
    PostMessage(hWndInstance, SD_WM_FUNCTIONNOTIFY, <Function Id>, 0);



    The following is the list of supported functions as of version 1.0.3.9 of StreetDeck. In the format:
    <Function Name> = <Function Id>, <Function Description>
    Letters
    eFunctionA = 1, The letter A
    eFunctionB = 2, The letter B
    eFunctionC = 3, The letter C
    eFunctionD = 4, The letter D
    eFunctionE = 5, The letter E
    eFunctionF = 6, The letter F
    eFunctionG = 7, The letter G
    eFunctionH = 8, The letter H
    eFunctionI = 9, The letter I
    eFunctionJ = 10, The letter J
    eFunctionK = 11, The letter K
    eFunctionL = 12, The letter L
    eFunctionM = 13, The letter M
    eFunctionN = 14, The letter N
    eFunctionO = 15, The letter O
    eFunctionP = 16, The letter P
    eFunctionQ = 17, The letter Q
    eFunctionR = 18, The letter R
    eFunctionS = 19, The letter S
    eFunctionT = 20, The letter T
    eFunctionU = 21, The letter U
    eFunctionV = 22, The letter V
    eFunctionW = 23, The letter W
    eFunctionX = 24, The letter X
    eFunctionY = 25, The letter Y
    eFunctionZ = 26, The letter Z

    Numbers
    eFunction0 = 27, The number 0
    eFunction1 = 28, The number 1
    eFunction2 = 29, The number 2
    eFunction3 = 30, The number 3
    eFunction4 = 31, The number 4
    eFunction5 = 32, The number 5
    eFunction6 = 33, The number 6
    eFunction7 = 34, The number 7
    eFunction8 = 35, The number 8
    eFunction9 = 36, The number 9

    Other Char
    eFunctionSpace = 37, Space
    eFunctionBackSpace = 38, Backspace
    eFunctionPeriod = 39, A period
    eFunctionMinus = 40, A minus sign
    eFunctionSharp = 281, A sharp
    eFunctionAsterisk = 282, An asterisk


    Module
    eFunctionHome = 41, eFunctionHome
    eFunctionMusic = 42, eFunctionMusic
    eFunctionVideo = 43, eFunctionVideo
    eFunctionPicture = 44, eFunctionPicture
    eFunctionDVD = 45, eFunctionDVD
    eFunctionTV = 46, eFunctionTV
    eFunctionXMRadio = 49, eFunctionXMRadio
    eFunctionRadio = 50, eFunctionRadio
    eFunctionSettings = 51, eFunctionSettings
    eFunctionHelp = 52, eFunctionHelp
    eFunctionVehicle = 53, eFunctionVehicle
    eFunctionNavigation = 54, Show the fullscreen navigation module Navigation start page
    eFunctionFullScreenVideo = 55, eFunctionFullScreenVideo
    eFunctionScripts = 330, eFunctionScripts

    eFunctionRipMediaStatus = 56, eFunctionRipMediaStatus
    eFunctionExternalApps = 57, eFunctionExternalApps

    eFunctionCurrentMediaOverlay = 58, eFunctionCurrentMediaOverlay
    eFunctionCurrentExtendedMediaOverlay = 59, eFunctionCurrentExtendedMediaOverlay

    eFTWindowControl
    eFunctionPageUp = 60, eFunctionPageUp
    eFunctionPageDown = 61, eFunctionPageDown
    eFunctionTopItem = 62, eFunctionTopItem
    eFunctionBottomItem = 63, eFunctionBottomItem
    eFunctionUp = 64, eFunctionUp
    eFunctionDown = 65, eFunctionDown
    eFunctionLeft = 66, eFunctionLeft
    eFunctionRight = 67, eFunctionRight
    eFunctionOk = 68, eFunctionOk
    eFunctionBack = 69, eFunctionBack
    eFunctionDetails = 70, eFunctionDetails
    eFunctionClear = 71, eFunctionClear
    eFunctionVolumeModule = 264, eFunctionVolumeModule
    eFunctionEjectCD = 242, Causes the cd to eject from the drive
    eFunctionToggleGestureMode = 243, Switches between letter, number, and function gestures. This function can only be used in keyboard enabled modules.
    eFunctionToggleVoiceMode = 74, eFunctionToggleVoiceMode

    eFunctionToggleShuffle = 265, eFunctionToggleShuffle
    eFunctionToggleRepeat = 266, eFunctionToggleRepeat
    eFunctionToggleQueueing = 267, eFunctionToggleQueueing
    eFunctionClearPlaylist = 268, eFunctionClearPlaylist
    eFunctionMuteMedia = 283, eFunctionMuteMedia
    eFunctionUnMuteMedia = 284, eFunctionUnMuteMedia
    eFunctionToggleMuteMedia = 285, eFunctionToggleMuteMedia
    eFunctionPlayModuleMedia = 286, eFunctionPlayModuleMedia
    eFunctionShuffleOn = 287, eFunctionShuffleOn
    eFunctionRepeatOn = 288, eFunctionRepeatOn
    eFunctionShuffleOff = 289, eFunctionShuffleOff
    eFunctionRepeatOff = 290, eFunctionRepeatOff

    eFunctionToggleAllOverlays = 76, eFunctionToggleAllOverlays Shows or hides all overlays depending on what there is more of
    eFunctionShowAllOverlays = 77, eFunctionShowAllOverlays Shows all user overlays
    eFunctionHideAllOverlays = 78, eFunctionHideAllOverlays Hides all user overlays

    eFunctionToggleListView = 79, eFunctionToggleListView Toggle between large and small list views

    Window Control
    eFunctionToggleFullscreen = 80, eFunctionToggleFullscreen
    eFunctionFullscreen = 81, eFunctionFullscreen
    eFunctionWindowed = 82, eFunctionWindowed
    eFunctionMinimize = 83, eFunctionMinimize



    Transport controls
    eFunctionPlay = 84, eFunctionPlay
    eFunctionFF = 85, eFunctionFF
    eFunctionRW = 86, eFunctionRW
    eFunctionStop = 87, eFunctionStop
    eFunctionPause = 88, eFunctionPause
    eFunctionTogglePause = 89, eFunctionTogglePause
    eFunctionRecord = 90, eFunctionRecord
    eFunctionReplay = 91, eFunctionReplay
    eFunctionSkip = 92, eFunctionSkip
    eFunctionVisualize = 93, eFunctionVisualize
    eFunctionSearchMusic = 94, eFunctionSearchMusic
    eFunctionSearchVideos = 361, eFunctionSearchVideos
    eFunctionSearchPictures = 362, eFunctionSearchPictures
    eFunctionToggleNightMode = 350, eFunctionToggleNightMode
    eFunctionSetNightMode = 351, eFunctionSetNightMode
    eFunctionSetDayMode = 352, eFunctionSetDayMode
    eFunctionCycleModules = 355, eFunctionCycleModules
    eFunctionCycleModulesReverse = 356, eFunctionCycleModulesReverse
    eFunctionShowModuleSwitcher = 357, eFunctionShowModuleSwitcher
    eFunctionToggleKeypadMode = 360, eFunctionToggleKeypadMode
    eFunctionDeleteCurrentMedia = 95, eFunctionDeleteCurrentMedia

    eFunctionNext = 96, eFunctionNext
    eFunctionNextSimilar = 97, eFunctionNextSimilar
    eFunctionPrevious = 98, eFunctionPrevious
    eFunctionPreviousSimilar = 99, eFunctionPreviousSimilar

    Sound Control
    eFunctionMute = 100, eFunctionMute
    eFunctionUnMute = 101, eFunctionUnMute
    eFunctionToggleMute = 102, eFunctionToggleMute
    eFunctionVolUp = 103, eFunctionVolUp
    eFunctionVolDown = 104, eFunctionVolDown

    eFunctionEqualizer = 105, eFunctionEqualizer

    eFunctionBalanceLeft = 106, eFunctionBalanceLeft
    eFunctionBalanceRight = 107, eFunctionBalanceRight
    eFunctionBalanceReset = 108, eFunctionBalanceReset


    Shutdown options
    eFunctionShutdownOption = 115, eFunctionShutdownOption
    eFunctionShutdownDefault = 116, eFunctionShutdownDefault
    eFunctionHibernate = 117, eFunctionHibernate
    eFunctionStandby = 118, eFunctionStandby
    eFunctionSaveSettings = 119, eFunctionSaveSettings
    eFunctionPowerOff = 120, eFunctionPowerOff
    eFunctionClose = 121, eFunctionClose
    eFunctionRestart = 272, eFunctionRestart

    GPS Navigation
    eFunctionNAVFindLocation = 122, eFunctionNAVFindLocation Navigation Find page
    eFunctionNAVReroute = 123, eFunctionNAVReroute Reroute from current location to current destination
    eFunctionNAVRerouteQuickest = 124, eFunctionNAVRerouteQuickest
    eFunctionNAVRerouteShortest = 125, eFunctionNAVRerouteShortest
    eFunctionNAVAvoidHighways = 126, eFunctionNAVAvoidHighways
    eFunctionNAVFavorHighways = 127, eFunctionNAVFavorHighways
    eFunctionNAVZoomIn = 132, eFunctionNAVZoomIn
    eFunctionNAVZoomOut = 133, eFunctionNAVZoomOut
    eFunctionNAVPanLeft = 134, eFunctionNAVPanLeft
    eFunctionNAVPanUp = 135, eFunctionNAVPanUp
    eFunctionNAVPanRight = 136, eFunctionNAVPanRight
    eFunctionNAVPanDown = 137, eFunctionNAVPanDown
    eFunctionNAVTrackGPS = 138, eFunctionNAVTrackGPS
    eFunctionNAVCurrentStatus = 140, eFunctionNAVCurrentStatus
    eFunctionNAVCreateRoute = 234, Show the starting module for creating / modifying a route
    eFunctionNAVToggleMapView = 235, Change the current view the map is shown in
    eFunctionNAVResetTripDistance = 244, Resets the mileage counter for the current trip.
    eFunctionNAVRouteHome = 245, Creates a route to the destination set as the home address.
    eFunctionNAVCycleMapViewReverse = 353, eFunctionNAVCycleMapViewReverse
    eFunctionNAVAddCurrentLocationToFavorites = 354, eFunctionNAVAddCurrentLocationToFavorites
    eFunctionNAVRouteToClickedLocation = 241, Only available in the CNAVFullScreenModule
    eFunctionNAVResetDestination = 269, eFunctionNAVResetDestination
    eFunctionNAVClearClickedLocation = 363, Only available in the CNAVFullScreenModule
    eFunctionNAVSpeakNextDirection = 271, eFunctionNAVSpeakNextDirection
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Camera
    eFunctionCamera1 = 142, eFunctionCamera1
    eFunctionCamera2 = 143, eFunctionCamera2
    eFunctionCamera3 = 144, eFunctionCamera3
    eFunctionCamera4 = 145, eFunctionCamera4


    Presets
    eFunctionPreset1 = 146, eFunctionPreset1
    eFunctionPreset2 = 147, eFunctionPreset2
    eFunctionPreset3 = 148, eFunctionPreset3
    eFunctionPreset4 = 149, eFunctionPreset4
    eFunctionPreset5 = 150, eFunctionPreset5
    eFunctionPreset6 = 151, eFunctionPreset6
    eFunctionPreset7 = 152, eFunctionPreset7
    eFunctionPreset8 = 153, eFunctionPreset8
    eFunctionPreset9 = 154, eFunctionPreset9
    eFunctionPreset10 = 155, eFunctionPreset10

    Relay sets
    eFunctionActivateRelaySet1 = 156, Activate Relay Set 1
    eFunctionActivateRelaySet2 = 157, Activate Relay Set 2
    eFunctionActivateRelaySet3 = 158, Activate Relay Set 3
    eFunctionActivateRelaySet4 = 159, Activate Relay Set 4
    eFunctionActivateRelaySet5 = 160, Activate Relay Set 5
    eFunctionActivateRelaySet6 = 161, Activate Relay Set 6
    eFunctionActivateRelaySet7 = 162, Activate Relay Set 7
    eFunctionActivateRelaySet8 = 163, Activate Relay Set 8
    eFunctionActivateRelaySet9 = 164, Activate Relay Set 9
    eFunctionActivateRelaySet10 = 165, Activate Relay Set 10
    eFunctionActivateRelaySet11 = 166, Activate Relay Set 11
    eFunctionActivateRelaySet12 = 167, Activate Relay Set 12
    eFunctionActivateRelaySet13 = 168, Activate Relay Set 13
    eFunctionActivateRelaySet14 = 169, Activate Relay Set 14
    eFunctionActivateRelaySet15 = 170, Activate Relay Set 15
    eFunctionActivateRelaySet16 = 171, Activate Relay Set 16

    eFunctionDeActivateRelaySet1 = 172, DeActivate Relay Set 1
    eFunctionDeActivateRelaySet2 = 173, DeActivate Relay Set 2
    eFunctionDeActivateRelaySet3 = 174, DeActivate Relay Set 3
    eFunctionDeActivateRelaySet4 = 175, DeActivate Relay Set 4
    eFunctionDeActivateRelaySet5 = 176, DeActivate Relay Set 5
    eFunctionDeActivateRelaySet6 = 177, DeActivate Relay Set 6
    eFunctionDeActivateRelaySet7 = 178, DeActivate Relay Set 7
    eFunctionDeActivateRelaySet8 = 179, DeActivate Relay Set 8
    eFunctionDeActivateRelaySet9 = 180, DeActivate Relay Set 9
    eFunctionDeActivateRelaySet10 = 181, DeActivate Relay Set 10
    eFunctionDeActivateRelaySet11 = 182, DeActivate Relay Set 11
    eFunctionDeActivateRelaySet12 = 183, DeActivate Relay Set 12
    eFunctionDeActivateRelaySet13 = 184, DeActivate Relay Set 13
    eFunctionDeActivateRelaySet14 = 185, DeActivate Relay Set 14
    eFunctionDeActivateRelaySet15 = 186, DeActivate Relay Set 15
    eFunctionDeActivateRelaySet16 = 187, DeActivate Relay Set 16

    eFunctionToggleRelaySet1 = 188, Toggle Relay Set 1
    eFunctionToggleRelaySet2 = 189, Toggle Relay Set 2
    eFunctionToggleRelaySet3 = 190, Toggle Relay Set 3
    eFunctionToggleRelaySet4 = 191, Toggle Relay Set 4
    eFunctionToggleRelaySet5 = 192, Toggle Relay Set 5
    eFunctionToggleRelaySet6 = 193, Toggle Relay Set 6
    eFunctionToggleRelaySet7 = 194, Toggle Relay Set 7
    eFunctionToggleRelaySet8 = 195, Toggle Relay Set 8
    eFunctionToggleRelaySet9 = 196, Toggle Relay Set 9
    eFunctionToggleRelaySet10 = 197, Toggle Relay Set 10
    eFunctionToggleRelaySet11 = 198, Toggle Relay Set 11
    eFunctionToggleRelaySet12 = 199, Toggle Relay Set 12
    eFunctionToggleRelaySet13 = 200, Toggle Relay Set 13
    eFunctionToggleRelaySet14 = 201, Toggle Relay Set 14
    eFunctionToggleRelaySet15 = 202, Toggle Relay Set 15
    eFunctionToggleRelaySet16 = 203, Toggle Relay Set 16


    External Applications
    eFunctionApp0 = 204, Toggle App 0
    eFunctionApp1 = 205, Toggle App 1
    eFunctionApp2 = 206, Toggle App 2
    eFunctionApp3 = 207, Toggle App 3
    eFunctionApp4 = 208, Toggle App 4
    eFunctionApp5 = 209, Toggle App 5
    eFunctionApp6 = 210, Toggle App 6
    eFunctionApp7 = 211, Toggle App 7
    eFunctionApp8 = 212, Toggle App 8
    eFunctionApp9 = 213, Toggle App 9

    User Overlay modules
    eFunctionOverlay0 = 214, Toggle Overlay 0
    eFunctionOverlay1 = 215, Toggle Overlay 1
    eFunctionOverlay2 = 216, Toggle Overlay 2
    eFunctionOverlay3 = 217, Toggle Overlay 3
    eFunctionOverlay4 = 218, Toggle Overlay 4
    eFunctionOverlay5 = 219, Toggle Overlay 5
    eFunctionOverlay6 = 220, Toggle Overlay 6
    eFunctionOverlay7 = 221, Toggle Overlay 7
    eFunctionOverlay8 = 222, Toggle Overlay 8
    eFunctionOverlay9 = 223, Toggle Overlay 9

    Extended Overlay modules
    eFunctionExtendedOverlay0 = 224, Toggle Extended Overlay 0
    eFunctionExtendedOverlay1 = 225, Toggle Extended Overlay 1
    eFunctionExtendedOverlay2 = 226, Toggle Extended Overlay 2
    eFunctionExtendedOverlay3 = 227, Toggle Extended Overlay 3
    eFunctionExtendedOverlay4 = 228, Toggle Extended Overlay 4
    eFunctionExtendedOverlay5 = 229, Toggle Extended Overlay 5
    eFunctionExtendedOverlay6 = 230, Toggle Extended Overlay 6
    eFunctionExtendedOverlay7 = 231, Toggle Extended Overlay 7
    eFunctionExtendedOverlay8 = 232, Toggle Extended Overlay 8
    eFunctionExtendedOverlay9 = 233, Toggle Extended Overlay 9



    Common POI types route to functions
    eFunctionNAVFindATM = 236, Shows the find nearby locations modules showing only ATMs
    eFunctionNAVFindGasStation = 237, Shows the find nearby locations modules showing only gas stations
    eFunctionNAVFindHotel = 238, Shows the find nearby locations modules showing only hotels
    eFunctionNAVFindRestaurant = 239, Shows the find nearby locations modules showing only restaurants
    eFunctionNAVFindTheater = 240, Shows the find nearby locations modules showing only theaters


    Navigation view functions
    eFunctionNAVCycleMapView = 340, eFunctionNAVCycleMapView
    eFunctionNAVViewFullscreen = 341, eFunctionNAVViewFullscreen
    eFunctionNAVViewStatus = 342, eFunctionNAVViewStatus
    eFunctionNAVViewDirection = 343, eFunctionNAVViewDirection
    eFunctionNAVViewList = 344, eFunctionNAVViewList
    eFunctionNAVCycleVEDisplayMode = 358, eFunctionNAVCycleVEDisplayMode
    eFunctionNAVCycleVEDisplayModeReverse = 359, eFunctionNAVCycleVEDisplayModeReverse


    DVD specific functions
    eFunctionDVDOptions = 246, eFunctionDVDOptions
    eFunctionDVDRootMenu = 247, eFunctionDVDRootMenu
    eFunctionDVDTitleMenu = 248, eFunctionDVDTitleMenu
    eFunctionDVDAudio = 249, eFunctionDVDAudio
    eFunctionDVDToggleClosedCaptions = 250, eFunctionDVDToggleClosedCaptions
    eFunctionDVDInfo = 253, eFunctionDVDInfo
    eFunctionDVDSelectSubTitle = 254, eFunctionDVDSubtitle

    Radio specific functions
    eFunctionRadioTuneUp = 260, eFunctionRadioTuneUp
    eFunctionRadioTuneDown = 261, eFunctionRadioTuneDown
    eFunctionRadioScanUp = 262, eFunctionRadioScanUp
    eFunctionRadioScanDown = 263, eFunctionRadioScanDown


    eFunctionBluetoothAnswerCall = 274, eFunctionBluetoothAnswerCall
    eFunctionBluetoothHangUp = 275, eFunctionBluetoothHangUp
    eFunctionBluetoothSwapCalls = 276, eFunctionBluetoothSwapCalls
    eFunctionBluetoothPairPhone = 277, eFunctionBluetoothPairPhone
    eFunctionBluetoothDisconnect = 278, eFunctionBluetoothDisconnect
    eFunctionBluetoothModule = 279, eFunctionBluetoothModule
    eFunctionBluetoothMute = 280, eFunctionBluetoothMute



    eFunctionPlayRear = 291, PlayRear
    eFunctionFFRear = 292, FFRear
    eFunctionRWRear = 293, RWRear
    eFunctionStopRear = 294, StopRear
    eFunctionPauseRear = 295, PauseRear
    eFunctionTogglePauseRear = 296, TogglePauseRear
    eFunctionNextRear = 297, NextRear
    eFunctionPreviousRear = 298, PreviousRear
    eFunctionMuteRear = 299, MuteRear
    eFunctionUnMuteRear = 300, UnMuteRear
    eFunctionToggleMuteRear = 301, ToggleMuteRear
    eFunctionVolUpRear = 302, VolUpRear
    eFunctionVolDownRear = 303, VolDownRear
    eFunctionModeToggleRear = 304, eFunctionModeToggleRear
    eFunctionModeOffRear = 305, eFunctionModeOffRear
    eFunctionModeFrontMediaRear = 306, eFunctionModeFrontMediaRear
    eFunctionModeVideosRear = 307, eFunctionModeVideosRear
    eFunctionModeDVDRear = 308, eFunctionModeDVDRear
    eFunctionUpRear = 309, eFunctionUpRear
    eFunctionDownRear = 310, eFunctionDownRear
    eFunctionLeftRear = 311, eFunctionLeftRear
    eFunctionRightRear = 312, eFunctionRightRear
    eFunctionOkRear = 313, eFunctionOkRear


    User UserModule modules
    eFunctionUserModule0 = 320, Toggle User Module 0
    eFunctionUserModule1 = 321, Toggle User Module 1
    eFunctionUserModule2 = 322, Toggle User Module 2
    eFunctionUserModule3 = 323, Toggle User Module 3
    eFunctionUserModule4 = 324, Toggle User Module 4
    eFunctionUserModule5 = 325, Toggle User Module 5
    eFunctionUserModule6 = 326, Toggle User Module 6
    eFunctionUserModule7 = 327, Toggle User Module 7
    eFunctionUserModule8 = 328, Toggle User Module 8
    eFunctionUserModule9 = 329, Toggle User Module 9




    TV Functions
    eFunctionTVScanChannels = 331, eFunctionTVScanChannels
    eFunctionTVClearChannelList = 332, eFunctionTVClearChannelList
    eFunctionTVAddChannel = 333, eFunctionTVAddChannel
    eFunctionTVDeleteChannel = 334, eFunctionTVDeleteChannel
    eFunctionTVAdjustPicture = 335, eFunctionTVAdjustPicture
    eFunctionTVInput = 336, eFunctionTVInput
    eFunctionTVOptions = 337, eFunctionTVOptions
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #3
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960

    Preferred method for finding the StreetDeck window

    Code:
    BOOL CALLBACK EnumMainWindows(HWND hWnd, LPARAM lParam)
    	// --- In  : hWnd : A top-level window
    	//			 lParam : Additioanl data (pointer to a CInstanceWindow object)
    	// --- Out : 
    	// --- Returns : Whether to continue iterating
    	// --- Effect : This function is called for every top-level window
    {
    	TCHAR szTitle[12];	
    	GetWindowText(hWnd, szTitle, 12);
    	if (lstrlen(szTitle) > 0)
    		int i=0;
    	//If this is the right window title, lets look at the executale file name to confirm its 
    	//a StreetDeck instance and not just some other window with the same name
    	if (lstrcmp(szTitle, "StreetDeck") == 0)
    	{
    		// We will search for a toplevel window of the specified instance
    		// Thiw window should be not-owned (to exclude dialogs) 
    		DWORD nWindowPID = 0;
    		::GetWindowThreadProcessId(hWnd, &nWindowPID);
    
    		HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION|PROCESS_VM_READ, FALSE, nWindowPID);
    
    		HMODULE hMod = NULL;
    		TCHAR filename[MAX_PATH];
    		if(GetModuleFileNameEx(hProcess, hMod, filename, sizeof(filename))) 
    		{ 
    			CString strFind = filename;
    			int iEndSlash = strFind.ReverseFind('\\');
    			if (iEndSlash > 0)
    				strFind = strFind.Right(strFind.GetLength() - iEndSlash - 1);
    			if (strFind == "StreetDeck.exe")
    			{
    				*((HWND*) lParam) = hWnd;
    				CloseHandle(hProcess); 
    				return FALSE;
    			}
    		}
    
    		CloseHandle(hProcess); 
    	}
    
    	// ... Not found, keep on looking
    	return TRUE;
    }
    
    
    //This is the most reliable way to find the StreetDeck window and is the preferred method to use
    HWND hWndStreetDeck;
    ::EnumWindows(&EnumMainWindows, (LPARAM)&hWndStreetDeck);
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  4. #4
    The Vauxhall Vectra Project ccsnet's Avatar
    Join Date
    Jan 2003
    Location
    Morecambe, Lancs, UK ( Just For The Moment )
    Posts
    2,681
    Do you need your own BT stack ?

    Terran

  5. #5
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by ccsnet
    Do you need your own BT stack ?

    Terran
    The bluetooth stack is implemented entirely in our proprietary hardware and will only work with phone devices. We would of preferred to work with standard PC hardware, but our internal testing found PC bluetooth hardware to be very buggy and inconsistent as well as lacking in phone compatibility.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  6. #6
    Variable Bitrate rcdash's Avatar
    Join Date
    Dec 2004
    Posts
    236
    a stable bluetooth solution for a pc? (gasp!)

    Seriously, I have a question. Is this possible? I want to search for music, but I want to use voice input for the search phrase. Normally voice recognition works in StreetDeck by having a predefined set of words that the API uses to match, correct?

    If I set the Voice control panel setting to allow "dictation" in apps that usually don't support it (such as Notepad), then when the cursor starts blinking asking for the search phrase, will I be able to speak any english word?

  7. #7
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    This could work. The music search page will recognize keyboard input so if the dictation translates to keyboard input it should be able to search for it. I've never tried it though and its not something we explicitly designed StreetDeck to support.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  8. #8
    Newbie
    Join Date
    Apr 2006
    Posts
    45
    For voice, how does that work? I bought the carpc bundle that comes with the 7" screen but I don't see a mic. A mic didn't come with my bundle. So, I need to buy one? If so, which model number? Thanks.

    -twantrd

  9. #9
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    YOu can use any microphone you can hook up to the computer. YOu will then have to bind the toggle voice input function to an input event to start recognition.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  10. #10
    Newbie
    Join Date
    Feb 2005
    Location
    NJ
    Posts
    33
    Is there an eFunctionCurrentMedia or eFunctionCurrentMediaPlaying or similar function in order to find out if SD is currently playing (or speaking) something? Thanks

Page 1 of 3 123 LastLast

Similar Threads

  1. Upgrading the CPU / StreetDeck User Review
    By mrclean12 in forum StreetDeck
    Replies: 6
    Last Post: 02-25-2006, 03:47 AM
  2. StreetDeck Panel (Windowing) System
    By god_of_cpu in forum DigitalMods (Scripts / API)
    Replies: 0
    Last Post: 01-21-2006, 11:54 AM
  3. What is StreetDeck, The official answer
    By god_of_cpu in forum StreetDeck
    Replies: 8
    Last Post: 01-06-2006, 12:33 PM
  4. single button toggling two (or more) functions
    By rjoek in forum Road Runner
    Replies: 4
    Last Post: 07-14-2005, 05:34 AM
  5. Point for point difference between AT & ATX functions?
    By Griffin_Dodd in forum Power Supplies
    Replies: 6
    Last Post: 02-01-2002, 07:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •