Jump to content

asterisk


Recommended Posts

whats wrong with this code?

$title = 'Device Manager'
Run(@SystemDir & '\mmc.exe ' &  @SystemDir & '\devmgmt.msc', @SystemDir)
ProcessWait('mmc.exe')
WinActivate($title)
WinWaitActive($title)
WinMove($title, '', 50, 20, @DesktopWidth - 100, @DesktopHeight - 100)
Sleep(2000)
Send('!vw{TAB}*{TAB}{HOME}')

its working but the asterisk doesnt, why?

Link to comment
Share on other sites

Try:

Send("!vw{TAB}{*}{TAB}{HOME}", 1)
IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

$title = 'Device Manager'
Run(@SystemDir & '\mmc.exe ' &  @SystemDir & '\devmgmt.msc', @SystemDir)
ProcessWait('mmc.exe')
WinActivate($title)
WinWaitActive($title)
WinMove($title, '', 50, 20, @DesktopWidth - 100, @DesktopHeight - 100)
Sleep(2000)
Send('!vw{tab}')
For $times = 1 to 20
    Send("{Down}")
Next
For $times = 1 to 20
    Send("{Right}{Up}")
Next

Works

EDIT: What is the "*" for then

Edited by danwilli
Link to comment
Share on other sites

Got it :whistle:

$title = 'Device Manager'
Run(@SystemDir & '\mmc.exe ' &  @SystemDir & '\devmgmt.msc', @SystemDir)
ProcessWait('mmc.exe')
WinActivate($title)
WinWaitActive($title)
WinMove($title, '', 50, 20, @DesktopWidth - 100, @DesktopHeight - 100)
Sleep(2000)
Send('!vw{tab}{NUMPADMULT}') ; "*" will not work because the key you are looking for is "multiply"

EDIT: * = shift 8

Edited by danwilli
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...