Sign in to follow this  
Followers 0
6105

how to do atcion? if on page is 25% to write 75%

27 posts in this topic

to be 100%

if on page is 1% write 99%

if on page is 5% write 95%

if on page is 90% write 10%

....

Thanks


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

What's the page? In general, what are you talking about?

its not importent.. ok.. if in Untitled.txt text is "7" to write "93" if is 20 to write 80... how to do this?


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

If on page is n then write 100-n?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

If on page is n then write 100-n?

yes yes... thanks))))

Edited by toader

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

i cant find in helper

how to do:

if have window "how to do atcion? if on page is 25% to write 75% - AutoIt Forums - Mozilla Firefox"

to open it. if dont have to open new like

ShellExecute("firefox.exe")
WinWait("Стартовая страница Firefox - Mozilla Firefox")
MouseClick( "left", 470, 60, 1, 5)
Send("http://autoitscript.com/forum/index.php?showtopic=98499/{ENTER}")

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

If on page is n then write 100-n?

and how i can do "n" to be ur post numbers?

like u have 1,812 then 10,000 - 1,812 = m.

how to use ur posts numbers if they not always 1,812?


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

Heh, I have no clue. Like this?

Dim $iNum1 = 20010, $iNum2 = 100
Dim $iResult

While Mod($iNum2, $iNum1) = $iNum2
    $iNum2 *= 10
WEnd

$iResult = $iNum2 - $iNum1
ConsoleWrite($iResult & @LF)

..by the way you can just do:

ShellExecute('http://autoitscript.com/forum/index.php?showtopic=98499')

and it'll start or attach to the default web browser. Or use the Firefox automation library Stilgar wrote, search the Examples forum for FF.au3.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Heh, I have no clue. Like this?

Dim $iNum1 = 20010, $iNum2 = 100
Dim $iResult

While Mod($iNum2, $iNum1) = $iNum2
    $iNum2 *= 10
WEnd

$iResult = $iNum2 - $iNum1
ConsoleWrite($iResult & @LF)

Authenticity yes.. but i dont know $iNum2 i only know $iNum1 is 100%, how to write in script to read what is $iNum2?

..by the way you can just do:

ShellExecute('http://autoitscript.com/forum/index.php?showtopic=98499')

and it'll start or attach to the default web browser. Or use the Firefox automation library Stilgar wrote, search the Examples forum for FF.au3.

but if "http://autoitscript.com/forum/index.php?showtopic=98499" is allrady executed.. but is in background? how to open it?

Edited by toader

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

One of the number is not required because it's always a power of 10 so it can start from 10. The second number I have no clue what it should be and you should know what to do with that number.

I think that FF.au3 library is more suited for this case because you can do something like:

#include <FF.au3>
Dim $sURL = 'http://autoitscript.com/forum/index.php?showtopic=98499'
Dim $fFound = False

_FFConnect()
For $i = 1 To _FFTabGetLength()
    _FFCmd('gBrowser.mTabContainer.advanceSelectedTab(1, true);')
    If StringRegExp(_FFCmd(".URL"), '^(?i)\Q' & $sURL & '\E') Then
        $fFound = True
        ExitLoop
    EndIf
Next

If Not $fFound Then _FFTabAdd($sURL)
_FFDisConnect()

Share this post


Link to post
Share on other sites

One of the number is not required because it's always a power of 10 so it can start from 10. The second number I have no clue what it should be and you should know what to do with that number.

I think that FF.au3 library is more suited for this case because you can do something like:

i dont have FF.au3

is it in new version?


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=95595

Follow the requirements in the bottom of the first post, MozRepl is required.

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=95595

Follow the requirements in the bottom of the first post, MozRepl is required.

ohhh.. thx ^^ now i know how to detect open or not open page.. but how to detect what number is writed in needed coords?


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

whow can help?

how can i do in scrip for can read numbers in needed coords?


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

toader, in this thread you have not made any effort to resolve your problem. You want someone who will do this for you?

No, I want that prompted me, because I did not find this in HELP file((

I have in my script on this .. and can't move forward until you are help me (


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

ohhh.. thx ^^ now i know how to detect open or not open page.. but how to detect what number is writed in needed coords?

Which number do you want?

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

Which number do you want?

not importent.. for test can use my or ur post numbers

Edited by toader

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

No, I want that prompted me, because I did not find this in HELP file((

I have in my script on this .. and can't move forward until you are help me (

Posting your code (or portion thereof) would be a good idea from you.

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

Posting your code (or portion thereof) would be a good idea from you.

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
;~ ShellExecute("firefox.exe")
;~ WinWait("Firefox - Mozilla Firefox")
;~ MouseClick( "left", 470, 60, 1, 5)
;~ Send("http://***.com/{ENTER}")
;~ WinWait("*** - *** - Mozilla Firefox")
;~ Sleep(500)
;~ MouseClick( "left", 860, 380, 1, 5)
;~ Send("password{ENTER}")

m=100-n
While 1=1
If n>35
    Then 
    WinWait("*** - Mozilla Firefox")
    Sleep(500)
    MouseClick( "left", 200, 400, 1, 5)
    sleep(1000)
    MouseClick( "left", 380, 590, 1, 5)
    sleep(500)
    MouseClick( "left", 380, 775, 1, 5)
    sleep(500)
    MouseClick( "left", 380, 620, 1, 5)
Else
    MouseClick( "left", 200, 660, 1, 5)
    Sleep(500)
    MouseClick( "left", 760, 650, 1, 5)
    Sleep(1000)
    MouseClick( "left", 710, 625, 1, 5)
    Send(m)
    MouseClick( "left", 760, 625, 1, 5)

but i dont know how to write in script.. to know what is "n"

Edited by toader

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0