Sign in to follow this  
Followers 0
dipic

AutoHotKey Problem

5 posts in this topic

Hi all, I'm new of AutoHotKey & AutoIt and I try to learn them... can somebody help me?

First excuse me for my english...

I want to go with the cursor in the bottom right corner, and move the cursor to left... I read some example and can have system variables but this are viewed as strings and not as number (for my use, I need they are numbers) ... this is my script:

SysGet, MonitorCount, MonitorCount

SysGet, MonitorPrimary, MonitorPrimary

Loop, %MonitorCount%

{

SysGet, MonitorName, MonitorName, %A_Index%

SysGet, Monitor, Monitor, %A_Index%

SysGet, MonitorWorkArea, MonitorWorkArea, %A_Index%

(%MonitorWorkAreaTop% work)`nRight:`t%MonitorRight% (%MonitorWorkAreaRight% work)`nBottom:`t%MonitorBottom% (%MonitorWorkAreaBottom% work)

}

;

WinWait, Program Manager,

IfWinNotActive, Program Manager, , WinActivate, Program Manager,

WinWaitActive, Program Manager,

MouseClick, left, %MonitorRight%, %MonitorBottom%

Sleep, 100

;

$X = %MonitorRight%

$Y = %MonitorBottom%

colonna = %$X%

Loop

{

if a_index > 25

break

colonna = colonna - %a_index%

MouseMove, %colonna%, $Y, 10, -L

}

ExitApp

;

my variable "colonna" is viewed as string and not as a number so in the loop the cursor start to move from column 1.

Thanks for any help

Share this post


Link to post
Share on other sites



This is Autoit forum and not AutoHotkey forum!

If you are new to Autoit, please read the Helpfile, there are all basic informations.

If you will have some problems with your AU3 scripts feell free to go here and post your question.

Share this post


Link to post
Share on other sites

Excuse me ... I think there will be the same thing...

can somebody give me the same code for au3?

Thanks

Share this post


Link to post
Share on other sites

Excuse me ... I think there will be the same thing...

can somebody give me the same code for au3?

Thanks

I you really must have someone do it for you, see the Rent-A-Coder link in my sig.

This site is more about learning to do it yourself. Read the help file that comes with AutoIt, and run the simple tutorials in it to learn the syntax (which is completely different from AutoHotKey). If you get stuck post your AutoIt code here and you'll get lots of help.

Welcome to AutoIt!

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Excuse me ... I think there will be the same thing...

can somebody give me the same code for au3?

Thanks

AHK was very much like version 2 of AutoIt.

AutoIt's syntax changed when version 3 was released.

There is a support forum for version 2 of AutoIt:

http://www.autoitscript.com/forum/index.php?showforum=5

...but you will probably not get anyone to write the code for you there either.

Welcome to the forums.


[size="1"][font="Arial"].[u].[/u][/font][/size]

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