
saio
Active Members-
Posts
38 -
Joined
-
Last visited
Everything posted by saio
-
10x that worked Perfectly for me!
-
am ok i feel stupid now .... but i have another question if the anser is no i need it to go to the question ask again...
-
man that's all I have come up whit till nowvalue varies ????? what you meen exactly the help file is a little messed up .....
-
I wann'a play a sound on Yes clicked msgbox MsgBox(4100, "1", "gagaha") that gives yes or no and I wanna make it play a sound what shud I do ? maybe some examples????
-
Calculate from string (variable) raw mode problem
saio replied to saio's topic in AutoIt General Help and Support
well that's the idea to get text to filter equasion to calculate it and to send it back so how do I debug the string replace???? edit: the string replace is fine the Execute is doung the crazy stuff -
Calculate from string (variable) raw mode problem
saio replied to saio's topic in AutoIt General Help and Support
ok whay than i get nothing in a massagebox??? i first got 2+2 than Empty massagebox and it shyd have given me 2+2 than in the second one 4 but it gives me nothing...... can it get messed up when I compile it to exe????? -
Calculate from string (variable) raw mode problem
saio replied to saio's topic in AutoIt General Help and Support
notepad it finds text text text equation(+the? of corce) that the string replase(or stringleft) removes the ? and in the variable shud be 2+2 the script works for bigger numbers than 10 Esamlpe : Whatever+10 to 99>Works Whatever + 0 to 9 >gives nothing..... 2@ in that case here: $text=ClipGet () $lookfor = ("What It shud lookfor") If StringInStr($text, $lookfor) Then ShellExecute ( "C:Windowsnotepad.exe") Sleep (5000) Send ("^v") Sleep (1000) Send ("^f") Sleep (1000) Send ($lookfor) Sleep (1000) Send ("{Tab}") Sleep (1000) Send ("{Tab}") Sleep (1000) Send ("{LEFT}") Sleep (1000) Send ("{Tab}") Sleep (1000) Send ("{ENTER}") Sleep (1000) Send ("{Tab}") Sleep (1000) Send ("{ENTER}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{SHIFTDOWN}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{Right}") Sleep (1000) Send ("{SHIFTUP}") Sleep (1000) Send ("^c") Sleep (1000) $text4 = ClipGet () Sleep(1000) Run ("C:\Windows\System32\cmd.exe /c taskkill -f /IM notepad.exe") sleep (15000) $text6 = StringReplace($text4,"?","") $text5 = Execute ($text6) Send("!2") Sleep(10000) Send ($text5) else endif -
Calculate from string (variable) raw mode problem
saio replied to saio's topic in AutoIt General Help and Support
UEZ 10x but your script gives me error BrewManNH it buges for me and it is boththose you got me wrong -
Calculate from string (variable) raw mode problem
saio replied to saio's topic in AutoIt General Help and Support
it's not the same issue The clip get is equal to 2+2? I filter the ? then Calculate it <here is the problem Shift+2 =@ and it calculates 2@ How Do I make it calculate normaly??? Than send result to msgbox -
than it shud be : $text = Execute ($anser) Or i'm wrong again??? That worked 10x $text = ClipGet () $text19 = Execute ($text) msgbox(48, "The anser is :",$text19)
-
ok will try am... after the split it shud looklike ??? $text1 what here $text2 what here $text 3 What here $Anser so the calculation shud be than? $text1=5 $tex2 =+ $text3 = 2 if StringInStr ($text,"+") Then Local $number1 = Stringleft ("+") Local $number2 = StringRight ("+") Else if StringInStr ($text,"-") Then Local $number1 =StringLeft ("-") Local $number2 = StringRight ("-") ;same for others "X" eth.... EndIf EndIf ;Get String from the $text??? ;How To calculate the result??? no my skript gives error..... any ideas???
-
yes that sends 5+2 and it shud send 7 I need it calculated....
-
I hope that tha is my final stupid question but i just cant find how to calculate sometnig from a variable $text5= Clipget () $text5 = ;What is here? in that case the variable contains something like 5+2 or other numbers and other string +/-/X/..... is thud be simple but I can't get it trouth i made several trys and all of tham failed please help I have another way of doing the operation but it takes too long for the perpes i'm using the script
-
10x smartee that helped nop i'm making a skript taht will verry wough test a local site for 2 days and if it does not crash it will be published
-
it's me again whit a problem AGAIN! This: $text5 = StringReplace($text4,"?" , " ") Send ($text5) gives me 5@ And it shud be 5+2 text 4 in that case is 5+2? it coud be anu number from 1 to 99 for both numbers I just wanna remove the "?" Anny Help?????
-
the numbers and the text is diferent evry thime and the % is / 10/5 =2 &18x3+1? &CRLF &_ unterminated string .... allso that $aResult = StringRegExp($text, "s[d+|+|-|x|%]+d+", 3) For $i = 0 To UBound($aResult) - 1 $aResult[$i] = StringReplace($aResult[$i], "x", "*") $aResult[$i] = StringReplace($aResult[$i], "%", "/") ConsoleWrite($aResult[$i] & "=" & Execute($aResult[$i]) & @CRLF) Next gives result 1 to 45+8 shud it be something like For $i = 0 To UBound(99999)...... Allso tryed : $text4 = ClipGet () $aResult = StringRegExp($text4, "s[d+|+|-|x|%]+d+", 3) For $i = 0 To UBound($aResult) - 99999 $aResult[$i] = StringReplace($aResult[$i], "x", "*") $aResult[$i] = StringReplace($aResult[$i], "%", "/") ConsoleWrite($aResult[$i] & "=" & Execute($aResult[$i])) Next and it still gives 1 .... any help? I copy to clickboard: 45+8? is the ? any problem and how to filter it? becose it coud be 45+63? or less simbols 6/8....
-
here : text text text 3+7? (Eventyaly More Text) - example 1 Text Text Text 15-10? (eventualy more text) - exsample 2 Text Text Text 18x3? (eventualy more text) -exsample 3 it's not the same every time and its allays 1 line
-
that is what it looks like i have input 3 exsamples inside the idea is to get the numbers and than calculate the score and tipe it into text file named Text2.txt New Text Document (3).txt
-
I want to find a numbers in a txt file containing: Some Text Number 1 +/-/x/%/ number 2 (eventualy +/-/x/% number 3) and calculate them then whrit them in to Text file2 txt how do i do that???
-
that's not the idea the idea is that when I login I have 3 butons Buton 1 Buton2 Buton3 and I wanna make a script to click them in that order for 48 hours so I coud Know That It Works and it's ok
-
you anser the question for mozilla i'm asking for ie and the page is local server page that needs to be tested and requers a login ERROR: _IE_Example(): undefined function. Local $oIE1 = _IE_Example("text")
-
Local $oIE = _IE_Example("basic") _IELinkClickByText($oIE, "user forum") That Is Not Working and I wanna avoid if's Allso tryed this $getclick1 = WinGetText ( " " , "Text") MouseClick ($getclick1 , , , , ,) _IEAction ("Text", "click") What am I doing Wrong ???
-
ok 1 more thing will I be able to get aroundMouseClick("left", 0, 500, 2) using mozilla?? insted of just clicking there Coud I use something to make it click the boton not the position sometnig like the serch function in firefox Ctrl+F ?
-
i want it to be as simple as it coud be > iven more I dont realy care it uses a ie or firefox so what action exactly do i use to be that way in ie .... if posible No variables