shai Posted September 3, 2012 Share Posted September 3, 2012 this is my code: $foo = Run("rasdial", @SystemDir, @SW_HIDE, 2) $output = "" While 1 $output &= StdoutRead($foo) If @error Then ExitLoop WEnd ConsoleWrite($output & @CRLF) i console i get this output: Connected to ‰‰ ‹™˜ Command completed successfully. the connection name is in hebrew. how i can convert the "‰‰ ‹™˜" string to hebrew? thanks Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 4, 2012 Moderators Share Posted September 4, 2012 Hi, shai. There was a recent post in the Snippets section of the forum that may help you out: "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
shai Posted September 5, 2012 Author Share Posted September 5, 2012 Hi, shai. There was a recent post in the Snippets section of the forum that may help you out: no. i lock for code that convert from ascii to string. Link to comment Share on other sites More sharing options...
Xenobiologist Posted September 5, 2012 Share Posted September 5, 2012 Func _OEM2ANSI($what) $ret = DllCall('user32.dll', 'Int', 'OemToChar', 'str', $what, 'str', '') Return $ret[2] EndFunc ;==>_OEM2ANSI Func _ANSI2OEM($what) $ret = DllCall('user32.dll', 'Int', 'CharToOem', 'str', $what, 'str', '') Return $ret[2] EndFunc ;==>_OEM2ANSI Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
shai Posted September 5, 2012 Author Share Posted September 5, 2012 Func _OEM2ANSI($what) $ret = DllCall('user32.dll', 'Int', 'OemToChar', 'str', $what, 'str', '') Return $ret[2] EndFunc ;==>_OEM2ANSI Func _ANSI2OEM($what) $ret = DllCall('user32.dll', 'Int', 'CharToOem', 'str', $what, 'str', '') Return $ret[2] EndFunc ;==>_OEM2ANSI thanks. its work. Link to comment Share on other sites More sharing options...
Xenobiologist Posted September 5, 2012 Share Posted September 5, 2012 No problem! Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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