Jump to content

begginner

Members
  • Posts

    8
  • Joined

  • Last visited

begginner's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. BTW I tried exactly same command as careca did it with _OemToStr function and it works no problem This is consolewrite output in SciTe before _OemToStr function and after and this is Gui window CHCP command output "Active code page: 852" Hope it helps
  2. I had similar problem as careca after executing dos and powershell commands by "Run" and displaying results in Gui using $STDOUT_CHILD . Instead of polish characters there was bunch of cryptic gibberish. I used _WinAPI_WideCharToMultiByte to do conversion with any codepages but it didn't work. I was so desperate to use StringReplace but problem was some of characters wasn't even appeared in output so was no way to replace them. Then I tried this function that "jchd" posted and it TOTALY WORKED !!! . THANK YOU SO MUCH for your help
  3. Thanks Anderik for fast response . I still can't raise custom error thru stored procedure Please check this example and tell me what am doing wrong This is based on CrisL example script and create table with unique computer name key create_table_small.au3 This is very simple stored procedure checking for duplicate computer entry and raising custom error spTest.sql Finally script inserting duplicate key record directly and by using stored procedure raiseerror.au3 Ps Hi mLipok I seen your ADO.au3 UDF but I can't makes it work. There is little examples of using it. I will try again in weekend when I will have more time Sorry form my English
  4. Hi I use _sql.au3 to connect to windows 2012. It works fine but I have problem using storage procedure. If I use sp in Autoit script for example $query1 = "exec PROCEDURE '1paramiter','2paramiter ' ;" if _SQL_Execute(-1,$query1) = $SQL_ERROR then Msgbox(0 + 16 +262144,"Error",_SQL_GetErrMsg()) Query using sp woks fine and return when is a error in query by key violation or other native sql errors. But if I want to raise my own custom error it’s not return by _SQL_GetErrMsg() regardless of error number or severity. It seems to works fine in Management Studio generate proper errors but no errors is return by $SQL_ERROR or _SQL_GetErrMsg()) in Autoit code. I tried both THROW and RAISERROR. Please tell me if is possibile to genarate custom errors Sorry for my English
  5. It works !!!! :-) PsaltyDS you are genius. Thank you very very much for your help. After 3-rd post I lost faith in this forum but you prove me wrong. Ps sorry form such a late response but I really didn't expect someone write me back. U R GREAT thanks m8 :-) sorry for my crappy English
  6. Really anyone can help??????? Please. Maybe do not provide solution but just show direction how to find answer. Thanks in advance.
  7. Since no one neither confirm nor deny that is allowed post html and js code I decided paste my example here and ziped js script in attachment . Hope thats OK <html> <head> <title>Input date Test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="Javascript" src="kalendarz.js" type="text/javascript"></script> </head> <body leftmargin="0" topmargin="0"> <input id="dok_data_rozpatrzenia" style="width: 120px;" readonly="readonly" name="dok_data_rozpatrzenina">&nbsp;<img style="" onmouseup="this.className='b'" class="a" onmousedown="this.className='c'" onmouseover="this.className='b'" onclick="java script: data_picker2('dok_data_rozpatrzenia',1,600,55)" onmouseout="this.className='a'" src="kalendarz.gif" name="cal_button" style1="cursor: hand"> </body> </html> kalendarz.zip
  8. Hi I am Newbie in AutoIt and I think is awesome: very power full and flexible :-) Recently i started writing script to publish some documents on website. Unfortunately this particular site use Java Script calendar to fill the date. Problem is that this input where data is put is write only probably to ensure proper date validation. Is there any chance to put date directly by Java Script? Or any other way ??? I want to post fragment of html site and Javascript but I am not sure is it allowed ?? because I see posted only .au3 scripts.??? Cheers Ps. Sorry for my crappy English.
×
×
  • Create New...