Sign in to follow this  
Followers 0
geekycoder

How to set the tab size for @TAB

10 posts in this topic

Is there a option to set the size for @TAB ?

I couldn't find the answer in this forum and help file.

thx

Share this post


Link to post
Share on other sites



Is there a option to set the size for @TAB ?

I couldn't find the answer in this forum and help file.

thx

AFAIK, @TAB is a character in itself, so you're just gonna have to have multiple spaces.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

The @TAB character tells the application that displays the text to move on to the next tab position.

So it depends on the application where to position the text after the @tab.

What application do you use?


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

I am using @tab in AutoIt in TrayCreateItem("GWT Deploy" & @TAB & " [Ctrl+F11]")

The tab works to align the Accelerator key. However, it takes on 8 characters. I will like to use it for 4 instead.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Doesn't work (here).

You get "GWT Deploy0 [Ctrl+F11]" in the tray because the calculation @Tab / 2 doesn't return a valid result ( = "0").

I think you'll have to replace @TAB by four spaces.

Edited by water

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

I am using @tab in AutoIt in TrayCreateItem("GWT Deploy" & @TAB & " [Ctrl+F11]")

The tab works to align the Accelerator key. However, it takes on 8 characters. I will like to use it for 4 instead.

Just divide it by two:

TrayCreateItem("GWT Deploy" & @TAB / 2 & " [Ctrl+F11]")

It's a joke. Laugh dammit


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Doesn't work (here).

You get "GWT Deploy0 [Ctrl+F11]" in the tray because the calculation @Tab / 2 doesn't return a valid result ( = "0").

Are you sure about that? :D

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Are you sure about that? :huggles:

You've got a bit confused there trancexx, because @tab/2 is actually an eigth of space, so for one space you would need

Chr(Int(Asc(@tab)/2)*8):D


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

You've got a bit confused there trancexx, because @tab/2 is actually an eigth of space, so for one space you would need

Chr(Int(Asc(@tab)/2)*8):D

Aha!

I knew this day would come. :huggles:

You have a memory leak in your code. See (it's extremely well commented so that everybody can follow):

$sSpace = Chr(Int(Asc(@TAB) / 2) * 8) ; this is your brilliance

$vOtherHalfOfTheTab = @TAB / 2 ; you forgot about this completely
$vOtherHalfOfTheTab = 0 ; Free memory!

...is actually an eigth of space, so

:

Space can't be measured. It's just huge.

... now back from the void(*).


♡♡♡

.

eMyvnE

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