Sign in to follow this  
Followers 0
Guest Chosy

send keystroke arrow up

11 posts in this topic

i only tryed the v1.0 autoit and it more than a year ago.. and i dont remember anythign and my english is verrybad.. so i hoped that some of your might like to help me a little here...

Send "keys" [, flag]

What i want it to do.. is that my script, clicks "1" time and the desktop.. the it press arrow up and right some few times to get to the upper right icon, "wich is internet explore". then it goes an url of my choices.. and then it click some few links...

can any1 help me doing that?

cuz all i remember is that all youd had to do was: Send, {up}{right}{enter} but it doesnt seems to work :)

Share this post


Link to post
Share on other sites



help "send key list"


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

You could do:

#NoTrayIcon
RunWait(@ComSpec & "/c " & "start http://www.google.com")

Which will go to the www.google.com webpage. You can change that to whichever webpage you want, or if you want to change it each time you can do:

#NoTrayIcon
$url = InputBox("Advanced IE Starter", "Enter the url: ", "http://www.google.com")
RunWait(@ComSpec & "/c " & "start "& $url)

Which will ask for a url, or will set a default to google.


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

You could do:

#NoTrayIcon
RunWait(@ComSpec & "/c " & "start http://www.google.com")

Which will go to the www.google.com webpage. You can change that to whichever webpage you want, or if you want to change it each time you can do:

#NoTrayIcon
$url = InputBox("Advanced IE Starter", "Enter the url: ", "http://www.google.com")
RunWait(@ComSpec & "/c " & "start "& $url)

Which will ask for a url, or will set a default to google.

<{POST_SNAPBACK}>

Whatdoes @comspec do?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Whatdoes @comspec do?

<{POST_SNAPBACK}>

Instead of just saying RTFM, let's try this...

Google Search of the AutoIt3 Online Documentation for 'comspec'

Start with this URL that limits the search results to matches at http://www.autoitscript.com/autoit3/docs/

http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2005-01,GGLD:en&q=site%3Ahttp%3A%2F%2Fwww%2Eautoitscript%2Ecom%2Fautoit3%2Fdocs%2F
Then add a '+' and the search term(s). E.g. +comspec or +comspec+RunWait

OR

Go to www.google.com and enter the search string: comspec site:http://www.autoitscript.com/autoit3/docs/

OK, so that ends up looking pretty complicated. Perhaps the Admins would consider making the online docs more easily searchable or would consider adding the Google Freesearch to do it: Google Freesearch

Dale

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Checking my sig works too


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

the helpfile says this:

value of %comspec%, the SPECified secondary COMmand interpreter;

primarily for command line uses, e.g. Run(@ComSpec & " /k help | more")

For a noob...this really isnt understandeble

Share this post


Link to post
Share on other sites

the helpfile says this:

value of %comspec%, the SPECified secondary COMmand interpreter;

primarily for command line uses, e.g.  Run(@ComSpec & " /k help | more")

For a noob...this really isnt understandeble

<{POST_SNAPBACK}>

Perhaps, but this is not the only place in the documentation that @comspec is referenced. It is also referenced in several examples and prominently in the FAQ. Follow the other links returned by the Google search or use the search tab in the AutoIt helpfile.

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

the helpfile says this:

value of %comspec%, the SPECified secondary COMmand interpreter;

primarily for command line uses, e.g.  Run(@ComSpec & " /k help | more")

For a noob...this really isnt understandeble

<{POST_SNAPBACK}>

Don't think you should expect the AutoIt helpfile to teach basic OS stuff..

But i am pretty sure you can find lots of good info on the internet about the good old command interpreter ..... :)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

@comspec = CMD

edit: and if u dont know what CMD is... god have mercy on your soul

Edited by burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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