Search found 111 matches

by Gicu
18 Aug 2016, 12:20
Forum: Ask for Help (v1)
Topic: Com Excel - Activate specific workbook Topic is solved
Replies: 10
Views: 4315

Re: Com Excel - Activate specific workbook Topic is solved

or you can use the Blackholyman (I think) function called Excel_Get() Excel_Get(WinTitle="ahk_class XLMAIN", Excel7#=1) { WinGetClass, WinClass, %WinTitle% if (WinClass == "XLMAIN") { ControlGet, hwnd, hwnd, , Excel7%Excel7#%, %WinTitle% if Not ErrorLevel { window := Acc_ObjectFromWindow(hwnd, -16) ...
by Gicu
18 Aug 2016, 11:55
Forum: Ask for Help (v1)
Topic: Com Excel - Activate specific workbook Topic is solved
Replies: 10
Views: 4315

Re: Com Excel - Activate specific workbook Topic is solved

esu wrote:Thank you for quick reply, unfortunately it refuses to work .
I remember trying to use 'xl.Workbooks().Activate' before and no matter how I approached it, it wouldn't work for me.
I get:

Code: Select all

Error: 0x8002000B - Invalid index.
Specifically: WorkBooks
cc.xlsx must be opened
by Gicu
18 Aug 2016, 06:37
Forum: Ask for Help (v1)
Topic: Com Excel - Activate specific workbook Topic is solved
Replies: 10
Views: 4315

Re: Com Excel - Activate specific workbook Topic is solved

Code: Select all

xl := ComObjActive("Excel.Application")

xl.WorkBooks("cc.xlsx").Activate
	
winactivate, ahk_class XLMAIN
by Gicu
14 Aug 2016, 09:44
Forum: Ask for Help (v1)
Topic: How to detect that mouse cursor leaves script's gui?
Replies: 9
Views: 3091

Re: How to detect that mouse cursor leaves script's gui?

with a timer seems to work Gui Test: +HwndIdTest -dpiScale Gui Test: Show, x50 y50 w800 h500 SetTimer, onout Return onout: MouseGetPos mx, my, IdWindow WinGetTitle, WinT, ahk_id %IdWindow% ToolTip The cursor is in window %WinT%, 150, 3 If (IdWindow <> IdTest) ToolTip Out! Now in %WinT%! Return Return
by Gicu
10 Aug 2016, 02:44
Forum: Ask for Help (v1)
Topic: Using Variables in AHK L "" Expressions Topic is solved
Replies: 2
Views: 978

Re: Using Variables in AHK L "" Expressions Topic is solved

Code: Select all


wb.document.getElementById("id").value := variable
wb.document.getElementById("id").value := "text"

by Gicu
05 Aug 2016, 09:23
Forum: Ask for Help (v1)
Topic: Help with red outline on active window Topic is solved
Replies: 8
Views: 2617

Re: Help with red outline on active window Topic is solved

write a try before the row that contains "gui, show ..." to skip error when "w" "h" "x" "y" are empty edit: try & compact #Persistent border_thickness := 3 SetTimer, DrawRect, 50 Return DrawRect: WinGetPos, x, y, w, h, A iw := w+4, ih := h+4 w := w+8, h:= h+8, x := x-border_thickness, y := y-border_...
by Gicu
05 Aug 2016, 07:07
Forum: Ask for Help (v1)
Topic: Help with red outline on active window Topic is solved
Replies: 8
Views: 2617

Re: Help with red outline on active window Topic is solved

Code: Select all

	try
	    Gui, Show, w%w% h%h% x%x% y%y% NoActivate, Table awaiting Action
lol
by Gicu
05 Aug 2016, 06:19
Forum: Ask for Help (v1)
Topic: Help with red outline on active window Topic is solved
Replies: 8
Views: 2617

Re: Help with red outline on active window Topic is solved

http://blog.sveri.de/2010/01/27/script-to-draw-a-border-around-an-active-window-with-autohotkey/ #Persistent border_thickness = 5 SetTimer, DrawRect, 50 Return DrawRect: WinGetTitle, title, A WinGetPos, x, y, w, h, A Gui, +Lastfound +AlwaysOnTop +Toolwindow iw:= w+4 ih:= h + 4 w:=w+ 8 h:=h + 8 x:= x...
by Gicu
01 Aug 2016, 11:42
Forum: Ask for Help (v1)
Topic: Multi-Window Send
Replies: 5
Views: 1553

Re: Multi-Window Send

I do not have that error, I'm sorry
is a simple for loop ... try to re-download the script.

about your second question my answer is -I don't know-, I have to "study" it...
by Gicu
01 Aug 2016, 02:40
Forum: Ask for Help (v1)
Topic: Multi-Window Send
Replies: 5
Views: 1553

Re: Multi-Window Send

try this (only for write text) Gui, test:New Gui, Font, s8, Courier New Gui, Color, FFFFFF Gui, Add, Text , % "xm", From: Gui, Add, Edit , % "xm vFrom_title w400 r1", % "A.txt - Blocco note" Gui, Add, Text , % "xm y+20", To: Gui, Add, Edit , % "xm vto_titles w400 r1", % "B.txt - Blocco note, C.txt -...
by Gicu
30 Jul 2016, 05:08
Forum: Ask for Help (v1)
Topic: [Solved] ExitApp fails to close Script when paired with Process Exist Topic is solved
Replies: 6
Views: 3613

Re: ExitApp fails to close Script when paired with Process Exist Topic is solved

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starti...
by Gicu
30 Jul 2016, 04:20
Forum: Ask for Help (v1)
Topic: [Solved] ExitApp fails to close Script when paired with Process Exist Topic is solved
Replies: 6
Views: 3613

Re: ExitApp fails to close Script when paired with Process Exist Topic is solved

checking every second if cmd is running, then exiting itself when it finds that it isn't. What am I doing wrong?

Code: Select all

If !ErrorLevel=0 ; (!) not equal 0 is 1 - that means "if cmd.exe exist exitapp"
by Gicu
29 Jul 2016, 11:10
Forum: Ask for Help (v1)
Topic: Fix Script
Replies: 10
Views: 2306

Re: Fix Script

:think:

do you have tried the fix?

the problem was

Code: Select all

 Gui, Destroy
if you replace it with

Code: Select all

 Gui, Hide
It should work.
by Gicu
29 Jul 2016, 10:15
Forum: Ask for Help (v1)
Topic: Fix Script
Replies: 10
Views: 2306

Re: Fix Script

im sorry
try

Code: Select all


if appear_disappear
	Gui, Show, NA
else
	Gui, Hide ; <--------

by Gicu
29 Jul 2016, 09:06
Forum: Ask for Help (v1)
Topic: Fix Script
Replies: 10
Views: 2306

Re: Fix Script

https://autohotkey.com/boards/viewtopic.php?f=7&t=11952

Code: Select all

 
*g::

appear_disappear := !appear_disappear

if appear_disappear
	Gui, Show, NA
else
	Gui, Destroy
	
Return


Go to advanced search