Jump to content

TAB in keyboard


Go to solution Solved by Exit,

Recommended Posts

is there a func in autoit that works like a TAB in keyboard, like if desktop is active and you select some icon or folders then you press TAB repeatedly in your keyboard you will see the icon/folder is highlighted, cycling through your entire desktop.
like if you press windows logo in keyboard and start menu will appear then press tab repeatedly selection is changing...
 

Edited by 232showtime

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Link to comment
Share on other sites

Send({TAB})?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Solution

any other way???

 

Yes using conrolsend().

_HotKey("{f2}")
Func _HotKey($hotkey = "")
    Switch @HotKeyPressed
        Case "{f2}"
            Exit 0 * MsgBox(64 + 262144, Default, "Exit", 1)
        Case Else
            If Not IsDeclared("hotkey") Then Return MsgBox(16 + 262144, Default, "No CASE statement defined for hotkey " & @HotKeyPressed)
            If HotKeySet($hotkey, "_Hotkey") = 0 Then Return MsgBox(16 + 262144, Default, "Hotkey " & $hotkey & " invalid or set by another application.")
    EndSwitch
EndFunc   ;==>_HotKey

;~ point to first icon
$rc = ControlSend("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321", "{HOME}")

While 1
    $rc = ControlFocus("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321")
    Sleep(1000)
    Beep(1000, 100)
    $rc = ControlSend("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321", "{DOWN}")
WEnd

But as you can see, I used {DOWN} to navigate on desktop.

{TAB} is used to switch between Desktop, Start Button, Taskbar, System Tray,  Clock and hide desktop.

{LEFT/RIGHT/UP/DOWN} are used to navigate between the desktop icons.

They DO NOT wrap around, so stop my script (F2) when the lowest icon of first row is reached. I was too lazy to program an ending condition, :pirate:

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

sorry got confused with your script, are you using diffferent hotkey UDF???

_HotKey("{f2}")
Edited by 232showtime

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Link to comment
Share on other sites

_Hotkey() is just an embedded function with uses HotKeySet().

In this case, it is just used to define an exit key. Don't bother about.

Did you tried my script?

Here a condensed version of the script. To exit, press CNTL+BREAK

ControlSend("[CLASS:Progman]", "", "SysListView321", "{HOME}")
While Sleep(1000)
    Beep(1000, 100)
    ControlFocus("[CLASS:Progman]", "", "SysListView321")
    ControlSend("[CLASS:Progman]", "", "SysListView321", "{DOWN}")
WEnd

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

oh yeah silly me... was in a hurry yesterday, I haven't noticed this

Case "{f2}"
            Exit 0 * MsgBox(64 + 262144, Default, "Exit", 1)

I tried it and its working... but im still thinking how they made the script for TAB. anyways thanks for the idea...

:sorcerer: :sorcerer: :sorcerer:

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

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