Jump to content

Double gui working same?


FroVN
 Share

Recommended Posts

Hello, i have a problem, first i create two gui , first gui use Fuction Soundplay to play the music, if the music playing in the end, it auto change a new song like playlist on soundcloud, but the problem that while i press a button in gui 1 to open gui 2 , the song when it end it not change to a new song, wait for gui 2 close then begin change a new song, have anyway to make gui 1 still working while gui 2 is working too?

Edited by FroVN
Link to comment
Share on other sites

Without seeing your script it is not easy to recommend a solution :)
In the wiki you'll find a section about how to handle multiple GUIs.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Tks for advice, i think with 2 gui i compile two script , Ah, i have a problem with stringregexp too, can you help me,i get the code from html, it like:

<div>

[TEXT NEED GET]

</div>

i want to get the text inside <div> </div> but very bad in stringregexp, can get me any example? Thanks

 

Edited by FroVN
Link to comment
Share on other sites

Something like this?

#include <StringConstants.au3>
Global $sTest = "<div>This is a test string</DIV>"
Global $aTemp = StringSplit($sTest, "<div>", $STR_ENTIRESPLIT)
If @error Then Exit MsgBox(0, "Error", "<DIV> not found in string!")
$aTemp = StringSplit($aTemp[2], "</DIV>", $STR_ENTIRESPLIT)
If @error Then Exit MsgBox(0, "Error", "</DIV> not found in string!")
MsgBox(0, "Info", "String: " & $aTemp[1])

 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Then please give code snippet a try:

#include <StringConstants.au3>
Global $sTest = "<DIV> " & @CRLF & "[TEXT NEED GET]" & @CRLF & "</div>"
$iStart = StringInStr($stest, "<div>")
$iEnd = StringInStr($stest, "</div>")
If $iStart > 0 And $iEnd > 0 Then
    MsgBox(0, "Info", "String: " & StringMid($sTest, $iStart + 5, $iEnd - $iStart - 5))
Else
    MsgBox(0, "Error", "<div> or </div> not found in string!")
Endif

 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...