Search found 70 matches

by foxhunter
19 Aug 2016, 22:40
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

What is the difference between A_ScriptDir and SetWorkingDir? Why can't A_ScriptDir be changed/updated? A_ScriptDir : The full path of the directory where the current script is located (read only build-in variable) SetWorkingDir : is a function for changing A_WorkingDir (The script's current workin...
by foxhunter
19 Aug 2016, 11:31
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

1.) After moving running ahk script to another location, you can't use Reload as it is not present anymore (You will get the "Script File Not Found" error message). SetWorkingDir is still working. A_ScriptDir still showing on old path. 2.) So as a suggestion use Run, EO+ OFFICIAL.ahk, %EODir% . Also...
by foxhunter
19 Aug 2016, 09:43
Forum: Ask For Help
Topic: Paste from clipboard into Subject line of email
Replies: 3
Views: 1210

Re: Paste from clipboard into Subject line of email

I'm not common with Com Objects, but this code works aswell: Run, mailto:[email protected].com?subject=This is the subject line&body=This is the message body's text. So for your case: Run, mailto:[email protected].com?subject="%clipboard%"&body=This is the message body's text. See Run-command. or when Com...
by foxhunter
19 Aug 2016, 08:21
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

Code: Select all

msgbox %A_WorkingDir%
SetWorkingDir C:\windows
msgbox %A_WorkingDir%
works for me...

What I ask is to simplify the problem, because we don't have to overview over the complete ahk script(s). So for me it is not clear why SetWorkingDir is not working on your installation.
by foxhunter
19 Aug 2016, 07:03
Forum: Ask For Help
Topic: Need help with Imagesearch/PixelSearch
Replies: 4
Views: 1091

Re: Need help with Imagesearch/PixelSearch

If you don't have any other possibities (liks csv or other kind of binary data) Imagesearch is the only one which works.
by foxhunter
19 Aug 2016, 06:47
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

As you changed the working directory it is better to run with the correct working path:

Code: Select all

   Run, EO+ OFFICIAL.ahk,  %EODir%    ;NEEDED TO PREVENT FILE ERROR..
by foxhunter
19 Aug 2016, 06:13
Forum: Forum Issues
Topic: ahkscript.org forum seems extremely slow
Replies: 170
Views: 49435

Re: ahkscript.org forum seems extremely slow

Prior fast, now again slow @ Germany 20160819 11:12 GMT
by foxhunter
19 Aug 2016, 06:12
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

I think this is the only way (except using Run-Alternatives like Dllcalls (e.g. ShellExecute) etc.). It should be relieable and load normal, maybe a virusscanner or other "utilies" reduces the speed. Please check. If you like you could also upload your code.
by foxhunter
19 Aug 2016, 06:02
Forum: Ask For Help
Topic: after 2 numeric inputs Topic is solved
Replies: 6
Views: 1550

Re: after 2 numeric inputs Topic is solved

Code: Select all

#noenv
counter:=0

~0::
~1::
~2::
~3::
~4::
~5::
~6::
~7::
~8::
~9::
	counter++
	if counter=2
	{
		counter=0
		Send, {Enter}
	}
	return
:beer:
by foxhunter
19 Aug 2016, 05:43
Forum: Ask For Help
Topic: FileMove - (Running Script) - (Script File Not Found)
Replies: 18
Views: 4487

Re: FileMove - (Running Script) - (Script File Not Found)

I would try Run Script2.ahk and Exitapp running script (Script1.ahk).
by foxhunter
19 Aug 2016, 05:28
Forum: Ask For Help
Topic: Clipboard parser Topic is solved
Replies: 4
Views: 1013

Re: Clipboard parser Topic is solved

As an other approach: #noenv ; Multiple lines pasted one by one ; !1 for repeating the same line ; !2 for pasting next row global_loop := 0 ArrayCount := 0 OnClipboardChange: Loop_array := [] ArrayCount = 0 Loop, parse, clipboard, `n, `r { if Strlen(A_LoopField)>0 { Loop_array[ArrayCount] := A_LoopF...
by foxhunter
18 Aug 2016, 10:15
Forum: Ask For Help
Topic: Send key - wait - send number
Replies: 6
Views: 2891

Re: Send key - wait - send number

As long the programm supports STRG-C this could a solution #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. #a:: title := WinExist("A") WinActivate, ahk_id %title% ClipSaved...
by foxhunter
18 Aug 2016, 05:59
Forum: Ask For Help
Topic: swap 2 keys output when another is held down
Replies: 1
Views: 575

Re: swap 2 keys output when another is held down

something like this?

Code: Select all

#persistent
#IF Getkeystate("s",P)
a::d
d::a
by foxhunter
18 Aug 2016, 05:11
Forum: Forum Issues
Topic: ahkscript.org forum seems extremely slow
Replies: 170
Views: 49435

Re: ahkscript.org forum seems extremely slow

extremely slow the last days, location Germany
by foxhunter
17 Aug 2016, 17:05
Forum: Ask For Help
Topic: input a control value in envadd comand
Replies: 2
Views: 789

Re: input a control value in envadd comand

Try this : #SingleInstance Force FormatTime, BeepTimeString,, HH:mm Gui, add, slider, w300 altsubmit center range0-720 thick35 tickinterval60 gModification vModifMinute, %A_min% Gui 1:Add, Button, w50 y+20 gQuitter, Quitter Gui 1:Add, Button, x+1 yp w50 gReload, Reload Gui, Font, s55 c00FF00 Gui 1:A...
by foxhunter
17 Aug 2016, 15:45
Forum: Ask For Help
Topic: RegisterCallback Freezing script Topic is solved
Replies: 2
Views: 726

Re: RegisterCallback Freezing script Topic is solved

Strange, same to me. But adding Critical,off before returning from WindowProc seems to work. WindowProc(hwnd, uMsg, wParam, lParam) { Critical global EditBackgroundColor, EditBackgroundBrush, WindowProcOld ; msgbox %A_EventInfo% if( uMsg = 0x138 && lParam = A_EventInfo ) { DllCall("SetBkColor", Ptr,...
by foxhunter
17 Aug 2016, 15:18
Forum: Ask For Help
Topic: File read function
Replies: 2
Views: 537

Re: File read function

Code: Select all

^p::
Macro1:
Loop
{
    FileReadLine, file_read,  C:\Users\elvis\Desktop\file read.txt, %A_Index%
    if ErrorLevel
        break
}
IfInString, file_read, elfus
{
    MsgBox, 0, , A gasit numele
}
return
by foxhunter
17 Aug 2016, 09:19
Forum: Ask For Help
Topic: Add to ListView & More Topic is solved
Replies: 7
Views: 1425

Re: Add to ListView & More Topic is solved

Lots of questions, hehe ;-) Question1: Deletion of codesegment setproxy(state="") { if(state = "") state = "ON" was replaced by setproxy(state="ON") { The last one is shorter, but is doing the same. Question2: ButtonProxyOFF ButtonProxyOFF is working for me as I posted (tested with Win7), Gui, Submi...
by foxhunter
17 Aug 2016, 04:47
Forum: Ask For Help
Topic: Issue with repeating keys on keyboard
Replies: 15
Views: 1946

Re: Issue with repeating keys on keyboard

Nice Code, but for me it runs only 1 time. For working for me i had to replace

Code: Select all

HotkeyI:
Hotkey, *i , BlockRepeat, Off
Hotkey, ~*i , , On
return
with

Code: Select all

HotkeyI:
Hotkey, *i , BlockRepeat, Off
Hotkey, ~*i , ~*i, On
return
Probably because the label wasn't defined by a prior Hotkkey command
by foxhunter
16 Aug 2016, 20:20
Forum: Spiele
Topic: Bild suchen
Replies: 1
Views: 4132

Re: Bild suchen

Die Funktion die man dazu braucht heisst Imagesearch.

Go to advanced search