Ibrahim Posted April 13, 2008 Share Posted April 13, 2008 first of all i wanna do a label that contain text written from right to left second i wanna do a mac address control" Only Hex"<<--if any can help giving me the condition for hex that wouldn't allow the user to write any character that would be an invalid mac address sorry for the two questions and sorry for being a spammer I'm not a spammer Guys!!!!!!!........I did so much with this beautifull language.! [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
covaks Posted April 13, 2008 Share Posted April 13, 2008 Try this for the MAC address: Do $str = InputBox("","Enter MAC Address (XX-XX-XX-XX-XX-XX)") Until StringRegExp($str,"^(?:[[:xdigit:]]{2}[-]){5}[[:xdigit:]]{2}$",0) msgbox(1,"","Hooray! Correct MAC entered") Link to comment Share on other sites More sharing options...
Ibrahim Posted April 13, 2008 Author Share Posted April 13, 2008 Try this for the MAC address: Do $str = InputBox("","Enter MAC Address (XX-XX-XX-XX-XX-XX)") Until StringRegExp($str,"^(?:[[:xdigit:]]{2}[-]){5}[[:xdigit:]]{2}{:content:}quot;,0) msgbox(1,"","Hooray! Correct MAC entered") Thanks man u put me on the track can i do the condition on a GUICtrl control instead of the stand alone input box with realtime warning whenever the user enters an invalid character for a MAC Add Hope anybod help with the right to left text on the label,i tried the styles and exxstyles but not working<<===it's only alignment Why am I still a spammer--i have three stars and it's not a birth mark i'm telling u!! [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
rasim Posted April 14, 2008 Share Posted April 14, 2008 Ibrahim i wanna do a label that contain text written from right to leftThis? #include <GUIConstants.au3> #include <String.au3> Dim $text = "Hello world!" $text = _StringReverse($text) GUICreate("Test GUI", 200, 100) GUICtrlCreateLabel($text, 30, 20, 100, 16, $SS_RIGHT) GUICtrlSetFont(-1, 10, 800) GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
Ibrahim Posted April 14, 2008 Author Share Posted April 14, 2008 Ibrahim This? #include <GUIConstants.au3> #include <String.au3> Dim $text = "Hello world!" $text = _StringReverse($text) GUICreate("Test GUI", 200, 100) GUICtrlCreateLabel($text, 30, 20, 100, 16, $SS_RIGHT) GUICtrlSetFont(-1, 10, 800) GUISetState() Do Until GUIGetMsg() = -3 Already Tried it,But without the stringReverse as it distort the text as u know,but this is not right to left writing it's some sort of alignment what i want is like when u switch the direction of writing and Thanks man for it. [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
GaryFrost Posted April 14, 2008 Share Posted April 14, 2008 If your system has one of the languages that supports it, you might try adding to the extended style $WS_EX_RTLREADING SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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