Search found 344 matches

by YoucefHam
26 Sep 2019, 05:54
Forum: Ask For Help
Topic: Integration of AHK script and Japanese IME
Replies: 2
Views: 171

Re: Integration of AHK script and Japanese IME

try this #NoTrayIcon SetCapsLockState, AlwaysOff CapsLock::return PrintScreen::AppsKey ; +F10::PrintScreen CapsLock & VK49:: if GetKeyState("Shift", "D") if GetKeyState("Ctrl", "D") Send +^{Up} else if GetKeyState("Alt", "D") Send +!{Up} else Send +{Up} else if GetKeyState("Alt", "D") if (GetKeyStat...
by YoucefHam
26 Sep 2019, 03:52
Forum: Ask For Help
Topic: Totally stuck... Clipboard and Variable problem Topic is solved
Replies: 5
Views: 291

Re: Totally stuck... Clipboard and Variable problem Topic is solved

try this OldClip := Clipboard Clipboard := Click %NameX%, %NameY%, 2 sleep 100 ;Example: Michael or MICHAEL Send ^c ClipWait, 2 if !Clipboard { MsgBox, Nothing Copied!!!! return } LeadName := Clipboard Clipboard := IfInString, LeadName, `r`n LeadName := StrReplace(LeadName, "`r`n") sleep 100 ComObjC...
by YoucefHam
25 Sep 2019, 11:28
Forum: Ask For Help
Topic: Totally stuck... Clipboard and Variable problem Topic is solved
Replies: 5
Views: 291

Re: Totally stuck... Clipboard and Variable problem Topic is solved

Hi there Read the Comments in the Code below Click %NameX%, %NameY%, 2 sleep 100 Send ^c ;Give Exact (or Example) text that copied From ^c Clipboard := StrReplace(Clipboard, "`r`n") sleep 100 ComObjCreate("SAPI.SpVoice").Speak(Clipboard) LeadName := Clipboard Sleep 100 if LeadName is upper StringLow...
by YoucefHam
25 Sep 2019, 11:13
Forum: Gaming
Topic: ControlClick with CTRL KEY DOWN
Replies: 1
Views: 199

Re: ControlClick with CTRL KEY DOWN

try this

Code: Select all

ControlSend, {Ctrl Down}, ahk_id %CO_id%
Sleep, 120
ControlClick, x909 y252, ahk_id %CO_id%,, left
Sleep, 1000
ControlSend, {Ctrl Up}, ahk_id %CO_id%
by YoucefHam
25 Sep 2019, 11:08
Forum: Gaming
Topic: Script for games where you need to "plant" stuff
Replies: 2
Views: 310

Re: Script for games where you need to "plant" stuff

Hi there Try this use it like this https://i.imgur.com/NMYJQzD.png https://i.imgur.com/a1CTaIi.png #SingleInstance Force CoordMode, Mouse, Screen F10:: Active := 1 ;~ InputBox, w,,,,,,,,,,4 ;~ InputBox, h,,,,,,,,,,4 w := 4 h := 4 i := 0 SetTimer, ToolTip, 100 Loop 3 { i++ KeyWait, e, D MouseGetPos, ...
by YoucefHam
23 Sep 2019, 05:32
Forum: Ask For Help
Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
Replies: 8
Views: 377

Re: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved

try this

Code: Select all

;Change acad.exe with your software name
#IfWinActive ahk_exe acad.exe



*$RButton::
keywait, RButton, T0.150
if Errorlevel
{
	Send, {MButton Down}
	KeyWait, RButton, L
}
else
	Send, {RButton}
return


$RButton Up::
Send, {MButton Up}
return
by YoucefHam
23 Sep 2019, 05:05
Forum: Ask For Help
Topic: Pasting strings does not always work
Replies: 16
Views: 658

Re: Pasting strings does not always work

What is the program name, so I will try it, if possibly.
by YoucefHam
23 Sep 2019, 03:53
Forum: Ask For Help
Topic: Pasting strings does not always work
Replies: 16
Views: 658

Re: Pasting strings does not always work

Hi there

check if the program have controls, so you can use ControlSetText.
by YoucefHam
23 Sep 2019, 03:35
Forum: Ask For Help
Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
Replies: 8
Views: 377

Re: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved

Try this

Code: Select all

;Change acad.exe with your software name
#IfWinActive ahk_exe acad.exe



$RButton::
keywait, RButton, T0.150
if Errorlevel
{
	Send, {MButton Down}
	KeyWait, RButton, L
}
else
	Send, {RButton}
return


$RButton Up::
Send, {MButton Up}
return
by YoucefHam
02 Jul 2019, 07:03
Forum: Ask For Help
Topic: get cmd output without file Topic is solved
Replies: 5
Views: 481

Re: get cmd output without file Topic is solved

try using the clipboard

Code: Select all

Run, %ComSpec% /c "ipconfig" | clip
MsgBox, % Clipboard
by YoucefHam
29 Jun 2019, 16:49
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 2817

Re: Solved:Need simple example,real time calculating and output the result

:terms: in windows 7 calculator its using my way.
But in windows 10 its using yours. :crazy:

Well IDK now which one is the right one.
Use the last code to calculate simple. :think:
by YoucefHam
29 Jun 2019, 12:42
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 2817

Re: Solved:Need simple example,real time calculating and output the result

if you want it your way here is the code MsgBox, % "No1" calc_Percent( "125.2%+0.5%" ) MsgBox, % "No2" calc_Percent( "((5+15)*4)/20%+20+3%" ) MsgBox, % "No3" calc_Percent( "150/50%" ) MsgBox, % "No4" calc_Percent( "150%/50%" ) MsgBox, % "No5" calc_Percent( "150%-0.50%+2%" ) MsgBox, % "No6" calc_Perc...
by YoucefHam
29 Jun 2019, 12:38
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 2817

Re: Solved:Need simple example,real time calculating and output the result

nop I am not mistaking, use any calculator it will give you the same result.

Image

Image
by YoucefHam
29 Jun 2019, 09:27
Forum: Ask For Help
Topic: How to calculate a variable that contains digits
Replies: 4
Views: 378

Re: How to calculate a variable that contains digits

https://www.autohotkey.com/docs/Variables.htm#Intro

Code: Select all

;var = TEXT
var = 5 + 5

MsgBox, % var

;var = % Experssion
var = % 5 + 5

MsgBox, % var

;var := "TEXT"
var := "5 + 5"

MsgBox, % var

;var := Experssion
var := 5 + 5

MsgBox, % var
by YoucefHam
29 Jun 2019, 08:38
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 2817

Re: Solved:Need simple example,real time calculating and output the result

try this MsgBox, % "No1" calc_Percent( "125.2%+0.5%" ) MsgBox, % "No2" calc_Percent( "((5+15)*4)/20%+20+3%" ) MsgBox, % "No3" calc_Percent( "150/50%" ) MsgBox, % "No4" calc_Percent( "150%/50%" ) MsgBox, % "No5" calc_Percent( "150%-0.50%+2%" ) ;~ Loop ;~ { ;~ InputBox, var ;~ if !ErrorLevel ;~ MsgBox...
by YoucefHam
12 Jun 2019, 18:59
Forum: Ask For Help
Topic: [Math] How to make a table of arithmetic exercises ? Topic is solved
Replies: 6
Views: 551

Re: [Math] How to make a table of arithmetic exercises ? Topic is solved

try this, but its in String format ;============================================ settings =============================================== nlines:=4 ; number of lines you want nlenght:=8 ; lenght of a line (amount of numbers per line) note the last entry (maxindex) represents the sum of the previous ...

Go to advanced search