TWI450197B - Method for synchronizing programs - Google Patents

Method for synchronizing programs Download PDF

Info

Publication number
TWI450197B
TWI450197B TW099106824A TW99106824A TWI450197B TW I450197 B TWI450197 B TW I450197B TW 099106824 A TW099106824 A TW 099106824A TW 99106824 A TW99106824 A TW 99106824A TW I450197 B TWI450197 B TW I450197B
Authority
TW
Taiwan
Prior art keywords
program
communication module
underlying communication
inter
synchronization
Prior art date
Application number
TW099106824A
Other languages
Chinese (zh)
Other versions
TW201131477A (en
Inventor
Meng Fu Hsieh
Hsin Yuan Peng
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to TW099106824A priority Critical patent/TWI450197B/en
Publication of TW201131477A publication Critical patent/TW201131477A/en
Application granted granted Critical
Publication of TWI450197B publication Critical patent/TWI450197B/en

Links

Description

程式間同步方法Inter-program synchronization method

本發明係關於一種程式間同步方法,特別是關於一種讓複數程式互相聯繫以達成同步的方法。The present invention relates to an inter-program synchronization method, and more particularly to a method for interconnecting complex programs to achieve synchronization.

目前使用者在使用電腦時,各個程式都是分別運算的,其間沒有溝通的橋樑使各個程式間的內容、資訊或操作同步。舉例來說,使用者想要觀看於電腦中的某張相片資料時,必須先從電腦中找到此張相片所儲存的位置,再開啟對應的圖片瀏覽程式以輔助觀看。當使用者想對此張相片做編輯修圖的動作時,必須另外再開啟一圖片編輯程式,並從電腦中重覆先前的相片找尋動作及設定,以便開啟於圖片編輯程式中進行編輯。如此將會造成使用者的不便。At present, when users use a computer, each program is separately operated, and there is no communication bridge between them to synchronize the content, information or operation between programs. For example, when a user wants to view a photo data on a computer, he or she must first find the location where the photo is stored from the computer, and then open the corresponding image browsing program to assist viewing. When the user wants to edit and retouch the photo, he must open another image editing program and repeat the previous photo search action and settings from the computer to open the image editing program for editing. This will cause inconvenience to the user.

另外,目前市面上的電腦有虛擬桌面的功能,讓使用者將工作事項分門別類於不同桌面中執行。譬如使用者可在不同桌面各開啟一多媒體播放程式,但位於兩個桌面的多媒體播放程式係各自獨立執行,並沒有同步播放的相關功能;若讓兩個多媒體播放程式同時運作,則會造成電腦同時播放兩種不同音樂或影片的吵雜現象。In addition, the current computer on the market has the function of a virtual desktop, allowing users to classify work items into different desktops. For example, users can open a multimedia player on each desktop. However, the multimedia players on the two desktops are executed independently and there is no related function for simultaneous playback. If two multimedia players are operated at the same time, the computer will be caused. Play the noise of two different music or movies at the same time.

因此,有必要提供一種程式間同步方法,以改善先前技術所存在的問題。Therefore, it is necessary to provide an inter-program synchronization method to improve the problems of the prior art.

為解決上述之問題,本發明之主要目的係在提供一種程式間同步方法,使複數程式達成同步。In order to solve the above problems, the main object of the present invention is to provide an inter-program synchronization method for synchronizing a plurality of programs.

為達成上述之目的,本發明之程式間同步方法係應用於一底層溝通模組與複數程式,底層溝通模組與複數程式運行於同一電腦之作業系統中,底層溝通模組做為複數程式之間之聯繫,複數程式包括一第一程式及一第二程式,其中第一程式及第二程式各包括一同步旗標,且各同步旗標係呈可更新狀態或不可更新狀態,該方法包括下列步驟:(A)第一程式及第二程式與底層溝通模組連線;(B)第一程式傳送一操作訊息至底層溝通模組;以及(C)底層溝通模組判斷第二程式之同步旗標是否呈可更新狀態,若是則底層溝通模組傳送該操作訊息至第二程式;藉由上述之步驟,使得第二程式根據該操作訊息以達成與第一程式同步。In order to achieve the above object, the inter-program synchronization method of the present invention is applied to an underlying communication module and a plurality of programs. The underlying communication module and the plurality of programs run in the same computer operating system, and the underlying communication module is used as a plurality of programs. In the connection, the plurality of programs include a first program and a second program, wherein the first program and the second program each include a synchronization flag, and each synchronization flag is in an updateable state or a non-updateable state, and the method includes The following steps are: (A) the first program and the second program are connected to the underlying communication module; (B) the first program transmits an operation message to the underlying communication module; and (C) the lower layer communication module determines the second program. Whether the synchronization flag is in an updateable state, and if so, the underlying communication module transmits the operation message to the second program; and by the above steps, the second program synchronizes with the first program according to the operation message.

藉此設計,本發明之程式間同步方法能讓相對應的複數程式達到同步操作的效果,增加了使用上的便利性,以因應使用者的不同需求。By this design, the inter-program synchronization method of the present invention can achieve the effect of synchronous operation of the corresponding complex program, and the convenience of use is increased to meet the different needs of the user.

為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉出本發明之具體實施例,並配合所附圖式,作詳細說明如下。The above and other objects, features and advantages of the present invention will become more <

請先參考圖1關於應用本發明之程式間同步方法之系統架構示意圖。本發明之程式間同步方法係應用於一電腦系統(圖未示),此電腦系統包括一底層溝通模組20與複數程式,底層溝通模組20做為複數程式之間之聯繫。為方便說明本發明之技術,在以下各實施例中,複數程式包括一 第一程式71及一第二程式72,但本發明並不以此為限,亦可針對二個以上的程式來進行同步。其中第一程式71及第二程式72可譬如為多媒體播放程式或圖片瀏覽程式。Please refer to FIG. 1 for a schematic diagram of a system architecture for applying the inter-program synchronization method of the present invention. The inter-program synchronization method of the present invention is applied to a computer system (not shown). The computer system includes an underlying communication module 20 and a plurality of programs, and the underlying communication module 20 serves as a link between the plurality of programs. In order to facilitate the description of the technique of the present invention, in the following embodiments, the plurality of programs includes one The first program 71 and the second program 72, but the invention is not limited thereto, and may be synchronized for more than two programs. The first program 71 and the second program 72 can be, for example, a multimedia player or a picture viewer.

底層溝通模組20包括一操作紀錄模組22及一通知器24,操作紀錄模組22負責接收每個程式所傳遞來的操作訊息,而當所接收到的操作訊息過多時,操作紀錄模組22會先將各操作訊息予以儲存,並依照所接收的順序進行處理。通知器24負責將操作紀錄模組22所接收的操作訊息通知給相對應的程式。The bottom layer communication module 20 includes an operation record module 22 and a notifier 24. The operation record module 22 is responsible for receiving the operation message transmitted by each program, and when the received operation message is excessive, the operation record module is operated. 22 will first store the operation messages and process them in the order they are received. The notifier 24 is responsible for notifying the corresponding operation program of the operation message received by the operation record module 22.

當使用者開啟第一程式71及第二程式72時,第一程式71及第二程式72分別與底層溝通模組20連線,即第一程式71及第二程式72在開啟後會分別對底層溝通模組20建立起操作通道30以及通知事件通道40,用來做資料訊息傳遞。底層溝通模組20會記錄一連線程式數目,以確認目前有多少程式與其連線。而不論是第一程式71或第二程式72在結束時,均會通知底層溝通模組20做斷線的行為,以供底層溝通模組20修改連線程式數目。當連線程式數目為零時,底層溝通模組20會自行終止(terminate),以節省電腦資源的浪費。When the user opens the first program 71 and the second program 72, the first program 71 and the second program 72 are respectively connected to the underlying communication module 20, that is, the first program 71 and the second program 72 are respectively turned on after being turned on. The underlying communication module 20 establishes an operation channel 30 and a notification event channel 40 for data message transmission. The underlying communication module 20 will record a threaded number to confirm how many programs are currently connected to it. When the first program 71 or the second program 72 ends, the underlying communication module 20 is notified of the disconnection behavior, so that the underlying communication module 20 can modify the number of threads. When the number of threads is zero, the underlying communication module 20 terminates itself to save computer resources.

此外,第一程式71包括一同步旗標51,第二程式72包括一同步旗標52,且各同步旗標51及52係呈一可更新狀態或一不可更新狀態,用以做為底層溝通模組20判斷是否能傳送操作訊息至對應程式的標準,當各同步旗標51,52呈可更新狀態時,底層溝通模組20會傳送操作訊息給對應之各程式接收。In addition, the first program 71 includes a synchronization flag 51, and the second program 72 includes a synchronization flag 52, and each of the synchronization flags 51 and 52 is in an updateable state or a non-updateable state for use as the underlying communication. The module 20 determines whether the operation message can be transmitted to the corresponding program standard. When the synchronization flags 51, 52 are in an updateable state, the underlying communication module 20 transmits an operation message to the corresponding programs for receiving.

請參考圖2關於本發明之程式間同步方法之流程圖。須注意的是,以下雖以圖1所示之電腦系統為例說明本發明之程式間同步方法,但本發明並不以此為限,任何其他具類似架構之系統亦可適用本發明之程式間同步方法。如圖2所示,本發明之程式間同步方法包括步驟S1至步驟S8。以下將詳細說明各個步驟。Please refer to FIG. 2 for a flowchart of the inter-program synchronization method of the present invention. It should be noted that although the computer system shown in FIG. 1 is taken as an example to illustrate the inter-program synchronization method of the present invention, the present invention is not limited thereto, and any other system having a similar architecture may also be applied to the program of the present invention. Inter-synchronization method. As shown in FIG. 2, the inter-program synchronization method of the present invention includes steps S1 to S8. The various steps will be described in detail below.

步驟S1:Step S1:

第一程式71與底層溝通模組20連線,並將同步旗標51設為可更新狀態。The first program 71 is connected to the underlying communication module 20 and sets the synchronization flag 51 to an updateable state.

在第一實施例中,假設第一程式71及第二程式72均為可支援音樂播放功能之多媒體播放程式,此處第一程式71及第二程式72可為相同的程式(例如均為Windows Media Player),或為不同的程式(例如各為Windows Media Player及iTunes),以下實施例以第一程式71及第二程式72為相同程式為例說明。In the first embodiment, it is assumed that the first program 71 and the second program 72 are both multimedia players that can support the music playing function. Here, the first program 71 and the second program 72 can be the same program (for example, both are Windows). The following is an example in which the first program 71 and the second program 72 are the same program as an example, for the different programs (for example, Windows Media Player and iTunes).

請參考圖3係本發明之第一實施例之多媒體播放介面顯示於第一電腦桌面之示意圖。如圖3所示,第一程式71經執行後可產生一多媒體播放介面63,用以播放影片檔或音樂檔,在此實施例中,第一程式71係開啟於第一電腦桌面61,即一般所使用的電腦桌面。舉例來說,多媒體播放介面63包括音量調整桿64、播放時間軸66及多媒體資訊顯示區68,音量調整桿64顯示目前音量大小並供使用者調整音量,播放時間軸66顯示一首歌播放的進度,多媒體資訊顯示區68可顯示正在播放的歌曲的資訊,由於此時尚 未播放歌曲,故多媒體資訊顯示區68為空白。當使用者執行第一程式71時,第一程式71與底層溝通模組20連線,並將同步旗標51設為可更新狀態。Please refer to FIG. 3 , which is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention displayed on a first computer desktop. As shown in FIG. 3, the first program 71 can be executed to generate a multimedia play interface 63 for playing a video file or a music file. In this embodiment, the first program 71 is opened on the first computer desktop 61. The computer desktop that is generally used. For example, the multimedia play interface 63 includes a volume adjustment lever 64, a play time axis 66, and a multimedia information display area 68. The volume adjustment lever 64 displays the current volume level and allows the user to adjust the volume, and the play time axis 66 displays a song playback. Progress, multimedia information display area 68 can display the information of the song being played, due to this fashion The song is not played, so the multimedia information display area 68 is blank. When the user executes the first program 71, the first program 71 is connected to the underlying communication module 20, and the synchronization flag 51 is set to an updateable state.

步驟S2:Step S2:

第二程式72與底層溝通模組20連線,並將同步旗標52設為可更新狀態。The second program 72 is connected to the underlying communication module 20 and sets the synchronization flag 52 to an updateable state.

請參考圖4係本發明之第一實施例之多媒體播放介面顯示於第二電腦桌面之示意圖。如圖4所示,第二程式72經執行後亦可在一多媒體播放介面63播放歌曲,同樣地由於此時尚未播放歌曲,故多媒體資訊顯示區68為空白。在此實施例中,使用者係切換到第二電腦桌面62後再執行第二程式72,此處第二電腦桌面62為一虛擬桌面。當使用者執行第二程式72時,第二程式72與底層溝通模組20連線,並將同步旗標52設為可更新狀態。應注意的是,步驟S1及步驟S2之順序並非用以限制本發明。Please refer to FIG. 4 , which is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention displayed on a second computer desktop. As shown in FIG. 4, the second program 72 can also play a song in a multimedia play interface 63 after execution. Similarly, since the song has not been played at this time, the multimedia information display area 68 is blank. In this embodiment, the user switches to the second computer desktop 62 and then executes the second program 72, where the second computer desktop 62 is a virtual desktop. When the user executes the second program 72, the second program 72 is connected to the underlying communication module 20 and sets the synchronization flag 52 to an updateable state. It should be noted that the order of step S1 and step S2 is not intended to limit the present invention.

步驟S3:Step S3:

第一程式71傳送操作訊息至底層溝通模組20。The first program 71 transmits an operation message to the underlying communication module 20.

請參考圖5係本發明之第一實施例之多媒體播放介面於第一電腦桌面播放歌曲之示意圖。如圖5所示,使用者利用第一程式71的多媒體播放介面63播放「Kiss Me」這首歌(歌曲名稱顯示於多媒體資訊顯示區68中),此時第一程式71透過操作通道30將其操作訊息傳送至底層溝通模組20,此操作訊息便為顯示使用者所播放的歌曲的資訊及 該歌曲的播放指令。Please refer to FIG. 5, which is a schematic diagram of a multimedia playing interface of a first embodiment of the present invention playing a song on a first computer desktop. As shown in FIG. 5, the user plays the song "Kiss Me" by using the multimedia play interface 63 of the first program 71 (the song name is displayed in the multimedia information display area 68). At this time, the first program 71 transmits the song through the operation channel 30. The operation message is transmitted to the underlying communication module 20, and the operation message is to display the information of the song played by the user and The play command for the song.

步驟S4:Step S4:

底層溝通模組20接收操作訊息。The underlying communication module 20 receives the operation message.

底層溝通模組20的操作紀錄模組22接收第一程式71傳來的操作訊息。The operation record module 22 of the bottom layer communication module 20 receives the operation message transmitted by the first program 71.

步驟S5:Step S5:

第一程式71將同步旗標51改為不可更新狀態。The first program 71 changes the synchronization flag 51 to a non-updateable state.

第一程式71在傳送操作訊息至底層溝通模組20後,便將同步旗標51改為不可更新狀態。應注意的是,步驟S4及步驟S5的順序並非用以限制本發明。After transmitting the operation message to the underlying communication module 20, the first program 71 changes the synchronization flag 51 to a non-updateable state. It should be noted that the order of step S4 and step S5 is not intended to limit the present invention.

步驟S6:Step S6:

底層溝通模組20檢查同步旗標51及52。The underlying communication module 20 checks the synchronization flags 51 and 52.

底層溝通模組20判斷各同步旗標51及52係呈可更新狀態或不可更新狀態。經由前述步驟,傳送操作訊息至底層溝通模組20的第一程式71的同步旗標51已改為不可更新狀態,而第二程式72的同步旗標52為可更新狀態。The underlying communication module 20 determines that each of the synchronization flags 51 and 52 is in an updateable state or a non-updateable state. Through the foregoing steps, the synchronization flag 51 of the first program 71 transmitting the operation message to the lower layer communication module 20 has been changed to the non-updateable state, and the synchronization flag 52 of the second program 72 is in the updateable state.

步驟S7:Step S7:

底層溝通模組20傳送操作訊息至第二程式72。The underlying communication module 20 transmits an operation message to the second program 72.

底層溝通模組20會針對同步旗標呈可更新狀態的程式進行同步操作,由於只有第二程式72的同步旗標52為可 更新狀態,故底層溝通模組20的通知器24便透過通知事件通道40將操作訊息傳送給第二程式72。而第一程式71已將同步旗標51改為不可更新狀態,用以避免底層溝通模組20傳送操作訊息回第一程式71而重覆對其進行程式同步動作。The underlying communication module 20 synchronizes the programs in which the synchronization flag is in an updatable state, since only the synchronization flag 52 of the second program 72 is available. The update status is such that the notifier 24 of the underlying communication module 20 transmits the operational message to the second program 72 via the notification event channel 40. The first program 71 has changed the synchronization flag 51 to a non-updable state, so as to prevent the underlying communication module 20 from transmitting the operation message back to the first program 71 and repeating the program synchronization operation.

步驟S8:Step S8:

第二程式72接收操作訊息以依據操作訊息執行對應操作。The second program 72 receives the operation message to perform a corresponding operation in accordance with the operation message.

請參考圖6係本發明之第一實施例之多媒體播放介面於第二電腦桌面播放歌曲之示意圖。如圖6所示,第二程式72在接收操作訊息後,將依據操作訊息針對其多媒體播放介面63執行對應操作,因此第二程式72亦會播放第一程式71所播放的歌曲「Kiss Me」,並顯示其歌曲的資訊以達到同步目的。Please refer to FIG. 6 , which is a schematic diagram of a multimedia playing interface of a first embodiment of the present invention playing a song on a second computer desktop. As shown in FIG. 6, after receiving the operation message, the second program 72 performs a corresponding operation on the multimedia play interface 63 according to the operation message, so the second program 72 also plays the song "Kiss Me" played by the first program 71. And display the information of its songs for synchronization purposes.

藉由上述之步驟,使得第二程式72根據操作訊息以達成與第一程式71同步。即第二程式72接收該操作訊息後,第二程式72便亦播放「Kiss Me」這首歌。在第一程式71及第二程式72播放歌曲時,第一程式71會即時傳送歌曲播放相關的操作資訊至底層溝通模組20,因此底層溝通模組20可以掌控播放歌曲的時間進度,並即時通知第二程式72執行對應操作,使得第一程式71及第二程式72可維持相同進度的歌曲播放狀態。也就是說,譬如使用者在第一電腦桌面61使用第一程式71播放「Kiss Me」這首歌(如 圖5所示),當使用者切換到第二電腦桌面62(虛擬桌面)並執行第二程式72時,第二程式72便接收操作訊息同步播放「Kiss Me」這首歌,並且從第一程式71目前所播放的進度開始播放(第二程式72的多媒體播放介面63如圖6所示)。By the above steps, the second program 72 is synchronized with the first program 71 according to the operation message. That is, after the second program 72 receives the operation message, the second program 72 also plays the song "Kiss Me". When the first program 71 and the second program 72 play the song, the first program 71 will immediately transmit the operation information related to the song playing to the underlying communication module 20, so the underlying communication module 20 can control the time progress of playing the song, and instantly The second program 72 is notified to perform a corresponding operation, so that the first program 71 and the second program 72 can maintain the same progress of the song playing state. That is to say, for example, the user plays the song "Kiss Me" on the first computer desktop 61 using the first program 71 (eg As shown in FIG. 5, when the user switches to the second computer desktop 62 (virtual desktop) and executes the second program 72, the second program 72 receives the operation message and plays the song "Kiss Me" synchronously, and from the first program. 71 The currently playing progress starts to play (the multimedia play interface 63 of the second program 72 is as shown in FIG. 6).

請一併參考圖7與圖8。圖7係本發明之第一實施例之多媒體播放介面於第一電腦桌面調整音量後之示意圖,圖8係本發明之第一實施例之多媒體播放介面於第二電腦桌面調整音量後之示意圖。同樣地,當使用者利用第一電腦桌面61的第一程式71的多媒體播放介面63的音量調整桿64將音量調小(見圖7),第一程式71亦藉由底層溝通模組20將包括調整音量的訊息及所更改的音量值之操作訊息傳送給第二程式72,當使用者切換到第二電腦桌面62時,第二程式72依據所接收的操作訊息將音量亦同步調整到與第一程式71調整後的音量相同,此時第二程式72的多媒體播放介面63如圖8所示。由於各步驟與上述之各步驟相同,因此不再贅述。Please refer to FIG. 7 and FIG. 8 together. FIG. 7 is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention after adjusting the volume on the first computer desktop, and FIG. 8 is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention after adjusting the volume on the second computer desktop. Similarly, when the user uses the volume adjustment lever 64 of the multimedia play interface 63 of the first program 71 of the first computer desktop 61 to turn down the volume (see FIG. 7), the first program 71 is also used by the underlying communication module 20 The operation message including the volume adjustment message and the changed volume value is transmitted to the second program 72. When the user switches to the second computer desktop 62, the second program 72 adjusts the volume to the same level according to the received operation message. The adjusted volume of the first program 71 is the same, and the multimedia play interface 63 of the second program 72 is as shown in FIG. Since the steps are the same as the above steps, they will not be described again.

接下來將說明本發明之第二實施例,在此實施例中,第一程式71及第二程式72皆為一圖片瀏覽程式,可開啟於同一電腦桌面。但第一程式71為一簡易版本的圖片瀏覽程式,僅具有播放圖片的功能。而第二程式72為一進階的圖片瀏覽程式,可以更換所瀏覽的資料夾,以及調整播放圖片的時間間隔,程式為全螢幕執行。Next, a second embodiment of the present invention will be described. In this embodiment, the first program 71 and the second program 72 are both a picture browsing program, which can be opened on the same computer desktop. However, the first program 71 is a simple version of the picture browsing program, and only has the function of playing pictures. The second program 72 is an advanced picture browsing program, which can replace the browsed folder and adjust the time interval for playing the picture. The program is executed on the full screen.

請參考圖9及圖10係本發明之第二實施例之圖片瀏覽介面播放圖片之示意圖。如圖9所示,當使用者在使用其他 應用程式介面84時(例如使用文字編輯程式打報告),若同時執行第一程式71,第一程式71經執行後可產生一圖片瀏覽介面81,並提供幻燈片播放功能,以供使用者於閒暇時瀏覽想看的圖片。在此實施例中,圖片瀏覽介面81以一定間隔播放圖片,例如經過一段時間後,圖片瀏覽介面81從圖9的「photo 1」播放到圖10的「photo 5」這張圖片。Please refer to FIG. 9 and FIG. 10 , which are schematic diagrams of playing a picture in a picture browsing interface according to a second embodiment of the present invention. As shown in Figure 9, when the user is using other When the application interface 84 is used (for example, using a text editing program to report), if the first program 71 is executed at the same time, the first program 71 can generate a picture browsing interface 81 and provide a slide show function for the user to Browse the pictures you want to see in your free time. In this embodiment, the picture browsing interface 81 plays the picture at a certain interval. For example, after a period of time, the picture browsing interface 81 is played from "photo 1" of FIG. 9 to the picture of "photo 5" of FIG.

請參考圖11及圖12係本發明之第二實施例之進階圖片瀏覽介面之示意圖。如圖10及圖11所示,此時若使用者想更改目前播放的資料夾,在此實施例中,使用者在圖片瀏覽介面81上輕按一下,則可透過第一程式71執行第二程式72,第二程式72經執行後顯示一進階圖片瀏覽介面82,如圖11所示。第一程式71透過底層溝通模組20將目前瀏覽的圖片及資料夾等操作資訊傳送給第二程式72,讓第二程式72即切換到現正播放的資料夾來提供使用者資訊。在此實施例中,目前播放的圖片為「photo 5」,其屬於「folder 1」這個資料夾,則第二程式72的進階圖片瀏覽介面82便顯示「photo 5」所在的資料夾「folder 1」,並顯示「folder 1」中的所有圖片。由於各步驟與第一實施例中的各步驟相同,因此不再贅述。Please refer to FIG. 11 and FIG. 12 for a schematic diagram of an advanced picture browsing interface according to a second embodiment of the present invention. As shown in FIG. 10 and FIG. 11 , if the user wants to change the currently playing folder, in this embodiment, the user can perform the second program 71 by tapping the image browsing interface 81. The program 72, after execution of the second program 72, displays an advanced picture browsing interface 82, as shown in FIG. The first program 71 transmits the operation information such as the currently viewed picture and folder to the second program 72 through the underlying communication module 20, so that the second program 72 switches to the currently playing folder to provide user information. In this embodiment, the currently played picture is "photo 5", which belongs to the folder "folder 1", and the advanced picture browsing interface 82 of the second program 72 displays the folder "folder" where "photo 5" is located. 1" and display all the pictures in "folder 1". Since the steps are the same as those in the first embodiment, they will not be described again.

本發明之程式間同步方法,不僅能使第二程式72對第一程式71同步,亦能使第一程式71對第二程式72產生同步,即第一實施例中的各步驟可以反向進行,也就是第二程式72透過底層溝通模組20使第一程式與第二程式72達成同步,由於各步驟的原理都是相同的,因此以下不再詳述各步驟。The inter-program synchronization method of the present invention not only enables the second program 72 to synchronize the first program 71, but also enables the first program 71 to synchronize the second program 72, that is, the steps in the first embodiment can be reversed. That is, the second program 72 synchronizes the first program with the second program 72 through the underlying communication module 20. Since the principles of the steps are the same, the steps will not be detailed below.

圖13係本發明之第二實施例切換回圖片瀏覽介面播放圖片之示意圖。如圖12及圖13所示,在第二實施例中,於第二程式72切換到現正播放的資料夾來提供使用者資訊後,接著使用者在第二程式72的進階圖片瀏覽介面82中譬如選擇了「folder 2」這個資料夾(請見圖12),並按下確定,則第二程式72便透過底層溝通模組20將此操作訊息傳遞給第一程式71,然後第二程式72便關閉。第一程式71經由底層溝通模組20接收到此操作訊息後,圖片瀏覽介面81便播放「folder 2」這個資料夾中的圖片,如圖13所示。FIG. 13 is a schematic diagram of switching back to the picture browsing interface to play a picture according to the second embodiment of the present invention. As shown in FIG. 12 and FIG. 13 , in the second embodiment, after the second program 72 switches to the currently playing folder to provide user information, the user then proceeds to the advanced picture browsing interface of the second program 72. 82, if the folder "folder 2" is selected (see Figure 12) and press OK, the second program 72 passes the operation message to the first program 71 through the underlying communication module 20, and then the second Program 72 is closed. After the first program 71 receives the operation message via the underlying communication module 20, the picture browsing interface 81 plays the picture in the folder "folder 2", as shown in FIG.

接下來將說明本發明之第三實施例,在此實施例中,第一程式71與第二實施例中的第一程式71相同,為一簡易版的圖片瀏覽程式,如圖13所示。與第二實施例之不同在於,第二程式72為一可瀏覽及編輯圖片的圖片編輯程式,用以針對圖片進行影像處理以修改圖片尺寸或相關參數等,程式為全螢幕執行。Next, a third embodiment of the present invention will be described. In this embodiment, the first program 71 is the same as the first program 71 in the second embodiment, and is a simplified version of the picture browsing program, as shown in FIG. The difference from the second embodiment is that the second program 72 is a picture editing program for browsing and editing pictures, for performing image processing on the pictures to modify the picture size or related parameters, and the program is executed on the full screen.

請參考圖14係本發明之第三實施例之圖片編輯介面之示意圖。如圖13及圖14所示,在此實施例中,當使用者利用第一程式71的圖片瀏覽介面81播放圖片至「photo 11」這張圖時,覺得其顏色有些暗淡,使用者可在圖片瀏覽介面81上長按一下,則可透過第一程式71執行第二程式72的圖片編輯介面83,並經由底層溝通模組20接收到第一程式71所傳送的操作訊息,將正在觀看的圖片顯示於圖片編輯介面83中,以便讓使用者直接編輯此圖片。由於各步驟與第一實施例及第二實施例相同,因此不再贅述。Please refer to FIG. 14 , which is a schematic diagram of a picture editing interface according to a third embodiment of the present invention. As shown in FIG. 13 and FIG. 14 , in this embodiment, when the user uses the picture browsing interface 81 of the first program 71 to play the picture to the photo “photo 11”, the user feels that the color is dim, and the user can A long click on the image browsing interface 81 can execute the image editing interface 83 of the second program 72 through the first program 71, and receive the operation message transmitted by the first program 71 via the underlying communication module 20, which will be being viewed. The picture is displayed in the picture editing interface 83 so that the user can directly edit the picture. Since the steps are the same as those of the first embodiment and the second embodiment, they will not be described again.

與第二實施例相同地,藉由本發明之程式間同步方法 亦能使第三實施例中的第一程式71對第二程式72產生同步。第三實施例中,接著使用者在第二程式72的圖片編輯介面83中對圖片進行修改,修改後按下確定,則第二程式72將此操作訊息透過底層溝通模組20傳送給第一程式71,並且第二程式72會關閉,而第一程式71在收到此操作訊息後,即將顯示的圖片更新為修改後的圖片。The inter-program synchronization method of the present invention is the same as the second embodiment The first program 71 in the third embodiment can also be synchronized with the second program 72. In the third embodiment, the user then modifies the picture in the picture editing interface 83 of the second program 72, and after pressing the modification, the second program 72 transmits the operation message to the first through the underlying communication module 20. The program 71, and the second program 72 is closed, and the first program 71 updates the picture to be displayed to the modified picture after receiving the operation message.

綜上所陳,本發明無論就目的、手段及功效,在在均顯示其迥異於習知技術之特徵,懇請 貴審查委員明察,早日賜准專利,俾嘉惠社會,實感德便。惟應注意的是,上述諸多實施例僅係為了便於說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。To sum up, the present invention, regardless of its purpose, means and efficacy, shows its distinctive features of the prior art. You are requested to review the examination and express the patent as soon as possible. It should be noted that the various embodiments described above are merely illustrative for ease of explanation, and the scope of the invention is intended to be limited by the scope of the claims.

20‧‧‧底層溝通模組20‧‧‧Bottom communication module

22‧‧‧操作記錄模組22‧‧‧Operation Recording Module

24‧‧‧通知器24‧‧‧Notifier

30‧‧‧操作通道30‧‧‧Operation channel

40‧‧‧通知事件通道40‧‧‧Notice event channel

51,52‧‧‧同步旗標51,52‧‧‧Synchronization Flag

61‧‧‧第一電腦桌面61‧‧‧First computer desktop

62‧‧‧第二電腦桌面62‧‧‧Second computer desktop

63‧‧‧多媒體播放介面63‧‧‧Multimedia play interface

64‧‧‧音量調整桿64‧‧‧Volume adjustment lever

66‧‧‧播放時間軸66‧‧‧Play timeline

68‧‧‧多媒體資訊顯示區68‧‧‧Multimedia information display area

71‧‧‧第一程式71‧‧‧First program

72‧‧‧第二程式72‧‧‧Second program

81‧‧‧圖片瀏覽介面81‧‧‧Photo browsing interface

82‧‧‧進階圖片瀏覽介面82‧‧‧Advanced picture browsing interface

83‧‧‧圖片編輯介面83‧‧‧Photo editing interface

84‧‧‧其他應用程式介面84‧‧‧Other application interfaces

圖1係應用本發明之程式間同步方法之系統架構示意圖。1 is a schematic diagram of a system architecture in which the inter-program synchronization method of the present invention is applied.

圖2係本發明之程式間同步方法之流程圖。2 is a flow chart of the inter-program synchronization method of the present invention.

圖3係本發明之第一實施例之多媒體播放介面顯示於第一電腦桌面之示意圖。FIG. 3 is a schematic diagram showing the multimedia playing interface of the first embodiment of the present invention displayed on a first computer desktop.

圖4係本發明之第一實施例之多媒體播放介面顯示於第二電腦桌面之示意圖。4 is a schematic diagram showing the multimedia playing interface of the first embodiment of the present invention displayed on a second computer desktop.

圖5係本發明之第一實施例之多媒體播放介面於第一電腦桌面播放歌曲之示意圖。FIG. 5 is a schematic diagram of a multimedia playing interface of a first embodiment of the present invention playing a song on a first computer desktop.

圖6係本發明之第一實施例之多媒體播放介面於第二電腦桌面播放歌曲之示意圖。6 is a schematic diagram of a multimedia playing interface of a first embodiment of the present invention playing a song on a second computer desktop.

圖7係本發明之第一實施例之多媒體播放介面於第一電腦桌面調整音量後之示意圖。FIG. 7 is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention after adjusting the volume on the first computer desktop.

圖8係本發明之第一實施例之多媒體播放介面於第二電腦桌面調整音量後之示意圖。FIG. 8 is a schematic diagram of the multimedia playing interface of the first embodiment of the present invention after adjusting the volume on the second computer desktop.

圖9及圖10係本發明之第二實施例之圖片瀏覽介面播放圖片之示意圖。9 and FIG. 10 are schematic diagrams showing a picture browsing interface of a picture browsing interface according to a second embodiment of the present invention.

圖11及圖12係本發明之第二實施例之進階圖片瀏覽介面之示意圖。11 and 12 are schematic diagrams showing an advanced picture browsing interface of a second embodiment of the present invention.

圖13係本發明之第二實施例切換回圖片瀏覽介面播放圖片之示意圖。FIG. 13 is a schematic diagram of switching back to the picture browsing interface to play a picture according to the second embodiment of the present invention.

圖14係本發明之第三實施例之圖片編輯介面之示意圖。Figure 14 is a schematic illustration of a picture editing interface of a third embodiment of the present invention.

20...底層溝通模組20. . . Underlying communication module

51,52...同步旗標51,52. . . Synchronization flag

71...第一程式71. . . First program

72...第二程式72. . . Second program

Claims (8)

一種程式間同步方法,係應用於一底層溝通模組與複數程式,該底層溝通模組與該複數程式運行於同一電腦之作業系統中,該底層溝通模組做為該複數程式之間之聯繫,該複數程式包括一第一程式及一第二程式,其中該第一程式及該第二程式各包括一同步旗標,且各該同步旗標係呈一可更新狀態或一不可更新狀態,該方法包括下列步驟:(A)該第一程式及該第二程式與該底層溝通模組連線;(B)該第一程式傳送一操作訊息至該底層溝通模組;以及(C)該底層溝通模組判斷該第二程式之該同步旗標是否呈該可更新狀態,若是則該底層溝通模組傳送該操作訊息至該第二程式;藉由上述之步驟,使得該第二程式根據該操作訊息以達成與該第一程式同步。 An inter-program synchronization method is applied to an underlying communication module and a plurality of programs. The underlying communication module and the plurality of programs run in an operating system of the same computer, and the underlying communication module serves as a connection between the plurality of programs. The plurality of programs include a first program and a second program, wherein the first program and the second program each include a synchronization flag, and each of the synchronization flags is in an updateable state or a non-updateable state. The method includes the following steps: (A) the first program and the second program are connected to the underlying communication module; (B) the first program transmits an operation message to the underlying communication module; and (C) the The underlying communication module determines whether the synchronization flag of the second program is in the updateable state, and if so, the underlying communication module transmits the operation message to the second program; by the above steps, the second program is The operation message is synchronized with the first program. 如申請專利範圍第1項所述之程式間同步方法,其中步驟(A)更包括下列步驟:(A1)該第一程式及該第二程式分別將該同步旗標設為該可更新狀態。 The inter-program synchronization method of claim 1, wherein the step (A) further comprises the step of: (A1) the first program and the second program respectively setting the synchronization flag to the updateable state. 如申請專利範圍第2項所述之程式間同步方法,在步驟(B)完成後,該第一程式之同步旗標係改為該不可更新狀態。 For example, in the inter-program synchronization method described in claim 2, after the completion of the step (B), the synchronization flag of the first program is changed to the non-updateable state. 如申請專利範圍第1項所述之程式間同步方法,其中該第一程式及該第二程式係同一程式。 The inter-program synchronization method of claim 1, wherein the first program and the second program are the same program. 如申請專利範圍第4項所述之程式間同步方法,其中該第一程式及該第二程式皆為一多媒體播放程式或一圖片瀏覽程式。 The inter-program synchronization method of claim 4, wherein the first program and the second program are both a multimedia player or a picture viewer. 如申請專利範圍第4項所述之程式間同步方法,其中該第一程式係開啟於一第一電腦桌面,該第二程式係開啟於一第二電腦桌面。 The inter-program synchronization method of claim 4, wherein the first program is opened on a first computer desktop, and the second program is opened on a second computer desktop. 如申請專利範圍第1項所述之程式間同步方法,其中該第一程式及該第二程式係不同程式。 The inter-program synchronization method of claim 1, wherein the first program and the second program are different programs. 如申請專利範圍第7項所述之程式間同步方法,其中該第一程式為一圖片瀏覽程式,該第二程式為一圖片編輯程式。 The inter-program synchronization method of claim 7, wherein the first program is a picture browsing program, and the second program is a picture editing program.
TW099106824A 2010-03-09 2010-03-09 Method for synchronizing programs TWI450197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099106824A TWI450197B (en) 2010-03-09 2010-03-09 Method for synchronizing programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099106824A TWI450197B (en) 2010-03-09 2010-03-09 Method for synchronizing programs

Publications (2)

Publication Number Publication Date
TW201131477A TW201131477A (en) 2011-09-16
TWI450197B true TWI450197B (en) 2014-08-21

Family

ID=50180392

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099106824A TWI450197B (en) 2010-03-09 2010-03-09 Method for synchronizing programs

Country Status (1)

Country Link
TW (1) TWI450197B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6425126B1 (en) * 1999-05-19 2002-07-23 International Business Machines Corporation Apparatus and method for synchronizing software between computers
CN1474289A (en) * 2002-08-09 2004-02-11 联想(北京)有限公司 Method for displaying synchronously content of host on client machine
TW200834421A (en) * 2006-11-06 2008-08-16 Devicevm Inc Instant-on platform
TW201001208A (en) * 2008-06-30 2010-01-01 Microsoft Corp Wireless synchronization of media content and subscription content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6425126B1 (en) * 1999-05-19 2002-07-23 International Business Machines Corporation Apparatus and method for synchronizing software between computers
CN1474289A (en) * 2002-08-09 2004-02-11 联想(北京)有限公司 Method for displaying synchronously content of host on client machine
TW200834421A (en) * 2006-11-06 2008-08-16 Devicevm Inc Instant-on platform
TW201001208A (en) * 2008-06-30 2010-01-01 Microsoft Corp Wireless synchronization of media content and subscription content

Also Published As

Publication number Publication date
TW201131477A (en) 2011-09-16

Similar Documents

Publication Publication Date Title
US20230308502A1 (en) Contextual remote control user interface
US9131206B2 (en) Method for play synchronization and device using the same
RU2624567C2 (en) Electronic device and method for resource display
US11417367B2 (en) Systems and methods for reviewing video content
CN104995596B (en) For the method and system in tabs hierarchy management audio
JP4703767B2 (en) Media status user interface
TWI545942B (en) System and method of outputting multi-lingual audio and associated audio from a single container
CN101515432B (en) Iimage processing apparatus and image processing method
CN111510788B (en) Display method and display device for double-screen double-system screen switching animation
TW201516698A (en) Remote play system and method
WO2022206366A1 (en) Application video processing method, and electronic device
US20110138282A1 (en) System and method for synchronizing static images with dynamic multimedia contents
US10834298B1 (en) Selective audio visual synchronization for multiple displays
CN113014970B (en) Display apparatus and display control method
CN113132769A (en) Display device and sound and picture synchronization method
TWI450197B (en) Method for synchronizing programs
WO2022194070A1 (en) Video processing method for application, and electronic device
CN102193834B (en) Interprogram synchronization method
TWI744737B (en) System and method for content control in augmented reality and computer readable storage medium
CN111641855B (en) Double-screen display equipment and audio output method thereof
US20230412890A1 (en) Refreshing method and display apparatus
JP2015038790A (en) Information processor and operation position control method
JP7420642B2 (en) Video playback device and video playback method
WO2021088308A1 (en) Display device and music recommendation method
JP2006092079A (en) Presentation system, reproduction switching method, and program