FroVN Posted September 8, 2017 Posted September 8, 2017 Hi, i have a problem :" can't set the name of file with a special character like: \;/;";|;... have anyway to short the StringInSrt and Stringreplace? i am using this code but too long $title=InputBox(0,'','','') if StringInStr($title,'\') or StringInStr($title,'/') or StringInStr($title,':') or StringInStr($title,'*') or StringInStr($title,'?') or StringInStr($title,'"') or StringInStr($title,'<') or StringInStr($title,'>') or StringInStr($title,'|') Then $title=StringReplace($title,'\','-') $title=StringReplace($title,'/','-') $title=StringReplace($title,':','-') $title=StringReplace($title,'*','-') $title=StringReplace($title,'?','-') $title=StringReplace($title,'"','-') $title=StringReplace($title,'<','-') $title=StringReplace($title,'>','-') $title=StringReplace($title,'|','-') EndIf
genius257 Posted September 8, 2017 Posted September 8, 2017 RegExp $title = '\/:*?"<>|' Exit MsgBox(0, "", StringRegExpReplace($title, '[\\/:*?"<>|]', "-")) To show your appreciation My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
FroVN Posted September 8, 2017 Author Posted September 8, 2017 ah one more i used GUICtrlSetData($Label3,'Time : '&$nowtime&' / '&$maxtime) in while loop to set the time of video while playing, label flicker that bad for eyes,you have any i dea?
genius257 Posted September 8, 2017 Posted September 8, 2017 To show your appreciation My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
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