Jump to content

send keystroke arrow up


Guest Chosy
 Share

Recommended Posts

Guest Chosy

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 :)

Link to comment
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())
Link to comment
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?
Link to comment
Share on other sites

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

Link to comment
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

Link to comment
Share on other sites

  • Developers

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 ..... :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

@comspec = CMD

<{POST_SNAPBACK}>

Or Command.com for WinME/Win9X ... :) Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...