Sign in to follow this  
Followers 0
232showtime

TAB in keyboard

7 posts in this topic

#1 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites



Send({TAB})?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

any other way???


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.

Share this post


Link to post
Share on other sites

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:


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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.

Share this post


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

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
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.

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