Jump to content

beboard

Members
  • Posts

    8
  • Joined

  • Last visited

beboard's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I was trying for so long and thought it's no possible even with the help file, I just noticed I was using the wrong syntax... it's working now
  2. Could you please give me an example on how to assign a hotkey to a series of mouse clicks ? It would solve most of my problems thanks for the reply While 1 MouseClick("left", 384, 544, 1) MouseClick("left", 338, 663, 1) Send("install") MouseClick("left", 481, 552, 1) MouseMove(550, 592) MouseDown("left") MouseMove(576, 595) MouseUp("left") MouseClick("left", 618, 545, 1) MouseMove(553, 615) WEnd How do I make my script do this when I press Alt+Ctrl+s ? I have more codes like this and I want to assign to each of them a hotkey.
  3. Hi everybody, I'm just learning to use AutoIT and I have some questions I can't seem to find the answer for I was wondering if it would be possible to assign some shortcuts keys to some macros... something like CTRL+SHIFT+H mouseclick ... mouseclick ... send ... mouseclick .. CTRL+SHIFT+I mouseclick ... send ... I need this to run as an application and basically i just want it to send some mouseclicks depending on the shortcuts keys. Also is there some way to make the script take different actions depending on the active window ? I'm trying to make a script that will work with an excel macro and basically the excel macro should display a message box with different titles. Can I make the autoIT script read the title of this message box and take appropriate action ? Thank you in advance for your replies, any help will be much appreciated.
  4. Hi cameronsdad, I tried your code but it's still not working, it manages to attach to the excel workbook but still there is no msgbox displayed. Should I trigger it in any other way than just by running the script ?
  5. Each cell in column F has a different color which tells the script what action to take. That's why the script clicks the scroll down button each time after checking the color. I'm thinking your version might work better but it should know to go one row down after each pixelgetcolor.
  6. @justforfun your code did wonders thanks a lot for the help. @cameronsdad Thanks for the input but I'm afraid I'm a total newbie with autoit. I tried to put it in some while loop but when i executed it nothing happened. I don't think i know how to use it could you give me a few hints ?
  7. I took off the "_", it's still not working. I use 1280x1024 resolution. Thanks for replying. Also I forgot to mention. the click is to click the scroll down button in excel.
  8. Hi there, I'm trying to make a script that will take different actions depending on the color in an excel spreadsheet. I have this code but when I execute it nothing happens. Could anyone tell me what I'm doing wrong please ? Do Sleep(500) _WinWaitActivate("Microsoft Excel - Book1", "This is some text", 0) $var = PixelGetColor(1079, 172, 6) Select Case $var = 0xFFFF00 MsgBox(1, "Hi", $var) MouseClick(1, 1270, 915, 1) Case $var = 0x3366FF MsgBox(1, "Hi", $var) MouseClick(1, 1270, 915, 1) Case $var = 0x00FF00 MsgBox(1, "Hi", $var) MouseClick(1, 1270, 915, 1) Case $var = 0x000000 MsgBox(1, "Hi", $var) MouseClick(1, 1270, 915, 1) Case $var = 0xFF0000 MsgBox(1, "Hi", $var) MouseClick(1, 1270, 915, 1) EndSelect Until $var = 0xFFFFFF
×
×
  • Create New...