Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Starting with AutoIt


  • Please log in to reply
74 replies to this topic

#61 d4rk

d4rk

    Tao Là Ai ???

  • Banned (NOT IN USE)
  • 936 posts

Posted 11 May 2008 - 11:48 AM

never mind , just delete them

Don't expect for a perfect life ... Expect a least troubles ones

Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys







#62 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 11 May 2008 - 11:55 AM

I can't just delete them, it was part of what I had written. Part of my text disappeared when I tried to quick edit !!
Fortunately, I had copy paste it. Is this a known bug ??

Edited by Elishac, 11 May 2008 - 11:55 AM.


#63 d4rk

d4rk

    Tao Là Ai ???

  • Banned (NOT IN USE)
  • 936 posts

Posted 11 May 2008 - 11:57 AM

uhm ... i've suft this too, i just delete them and replace the missing part

Don't expect for a perfect life ... Expect a least troubles ones

Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

#64 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 11 May 2008 - 12:03 PM

Well, that's in case you copied/pasted the missing part... can't this bug be fixed, given that we are in a forum for programers ? ^^.
I'll try to use "code" instead of "autoit".

#65 jaenster

jaenster

    There is no spoon.

  • Active Members
  • PipPipPipPipPipPip
  • 670 posts

Posted 11 May 2008 - 12:05 PM

Hello,
I'm just starting with AutoIt, and I'd like to automize some tasks. I've just read the 3 tutorials.
I'd like to open a internet window, go to a site and copy/paste the last topic of a forum into a .txt.
I think I know how to open a internet window, using the function run : Run(C:\Program Files\Internet Explorer\iexplorer.exe).
Now how to select the site where you put the url and write the url I want ?
Afterwards, how to make the mouse move and select a url that is on the site ?

Thanks for your help.

run(@comspec&" /c start iexplore <a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>)

-jaenster

#66 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 11 May 2008 - 12:15 PM

Anyway, can someone tell me if my functions are ok, at post 58 ?

#67 d4rk

d4rk

    Tao Là Ai ???

  • Banned (NOT IN USE)
  • 936 posts

Posted 11 May 2008 - 12:24 PM

Didn't you test it with FF ? a script can run without permission of anothers :)

Don't expect for a perfect life ... Expect a least troubles ones

Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

#68 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 11 May 2008 - 12:57 PM

A script can run even though it's not well programed, can't it ?
It's my first script, so I'd like you to tell me if it's ok and if it can be improved.

#69 d4rk

d4rk

    Tao Là Ai ???

  • Banned (NOT IN USE)
  • 936 posts

Posted 11 May 2008 - 01:11 PM

yes, script can run as long as it's CORRECT, with a same purpose, i give 5 lines of code, but you can give 2, that's the point !
and i'm not FF user, i can't help testing it, but if it works with you, so enjoy

Don't expect for a perfect life ... Expect a least troubles ones

Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

#70 herewasplato

herewasplato

    Most Senile Poster

  • Active Members
  • PipPipPipPipPipPip
  • 4,426 posts

Posted 11 May 2008 - 03:09 PM

Anyway, can someone tell me if my functions are ok, at post 58 ?

When you post code to the forum, it is best to test it and then copy/paste it from your script with no other edits in the code. The UDF that you posted will not run as posted. The AutoIt version of the SciTE editor will tell you where your error is when you attempt to run it from there. Also, PixelCheckSum numbers do not transfer from one computer to the next very well (like I warned you in post 44)... so, even when I corrected your code, the UDF does not work on my computer. If it works for you, then great.

As far as the AutoIt code tags not working well with the forum software... labor has been spent attempting to correct that, but I don't know the reason why it could not be fixed. I would rather the AutoIt devs spend their time on AutoIt :-)

One work around to the AutoIt tags and the forum software issue: If you must edit a post with AutoIt code tags,
make your edits,
delete the code (leave the tags),
submit the modified post,
re-edit and
re-add the AutoIt code between the AutoIt code tags that you left as a marker
and then resubmit your modified post.
..

#71 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 11 May 2008 - 04:15 PM

Damn, i think I've fixed the error, but the error message didn't help me at all. I just remembered what could be wrong.
The message said 'error: missing separator character after keyword'. Given the message, I first thought a space was missing at some place. Actually, I think what was missing are the parenthesis after the definition.

#72 Elishac

Elishac

    Adventurer

  • Active Members
  • PipPip
  • 126 posts

Posted 12 May 2008 - 04:10 PM

Is it possible to make a recursive function ? (a function that calls itself).

#73 PsaltyDS

PsaltyDS

    Most Venerable Penguin

  • MVPs
  • 13,279 posts

Posted 12 May 2008 - 06:32 PM

Is it possible to make a recursive function ? (a function that calls itself).


Yes, and many search functions are recursive (i.e. _RegSearch()). There is a limit to the total number of recursion levels (a few thousand).

:)
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

#74 herewasplato

herewasplato

    Most Senile Poster

  • Active Members
  • PipPipPipPipPipPip
  • 4,426 posts

Posted 12 May 2008 - 06:47 PM

Is it possible to make a recursive function ? (a function that calls itself).

Yes - possible... but there is a limit. Compile and run this code:
$i = 0 test() Func test()     TrayTip("Recursion limit", $i, 10)  If $i > 5095 Then Sleep(1000)     $i += 1  test() EndFunc   ;==>test

Edited by herewasplato, 12 May 2008 - 06:48 PM.

..

#75 ProgAndy

ProgAndy

    You need AutoItObject

  • MVPs
  • 2,508 posts

Posted 12 May 2008 - 07:29 PM

my maximum is 5098 :)
//Edit: Stable 3.2.10.0 And Beta 3.2.11.12

Edited by ProgAndy, 12 May 2008 - 07:30 PM.

*GERMAN* Posted Image [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users