in windows 7 calculator its using my way.
But in windows 10 its using yours.
Well IDK now which one is the right one.
Use the last code to calculate simple.
Search found 372 matches
- 29 Jun 2019, 16:49
- Forum: Ask for Help (v1)
- Topic: Solved:Need simple example,real time calculating and output the result
- Replies: 40
- Views: 8566
- 29 Jun 2019, 12:42
- Forum: Ask for Help (v1)
- Topic: Solved:Need simple example,real time calculating and output the result
- Replies: 40
- Views: 8566
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...
- 29 Jun 2019, 12:38
- Forum: Ask for Help (v1)
- Topic: Solved:Need simple example,real time calculating and output the result
- Replies: 40
- Views: 8566
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.
- 29 Jun 2019, 09:27
- Forum: Ask for Help (v1)
- Topic: How to calculate a variable that contains digits
- Replies: 4
- Views: 1895
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
- 29 Jun 2019, 09:18
- Forum: Ask for Help (v1)
- Topic: How to calculate a variable that contains digits
- Replies: 4
- Views: 1895
- 29 Jun 2019, 08:43
- Forum: Ask for Help (v1)
- Topic: How to calculate a variable that contains digits
- Replies: 4
- Views: 1895
- 29 Jun 2019, 08:38
- Forum: Ask for Help (v1)
- Topic: Solved:Need simple example,real time calculating and output the result
- Replies: 40
- Views: 8566
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...
- 12 Jun 2019, 18:59
- Forum: Ask for Help (v1)
- Topic: [Math] How to make a table of arithmetic exercises ? Topic is solved
- Replies: 6
- Views: 1385
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 ...
- 12 Jun 2019, 16:18
- Forum: Ask for Help (v1)
- Topic: Help to understand Hotkey Script Topic is solved
- Replies: 6
- Views: 901
Re: Help to understand Hotkey Script Topic is solved
Hotkey, IfWinActive, WindowTitle HotKey work only in this window called "WindowTitle" Hotkey, IfWinActive, ahk_exe notepad.exe work in all windows running from "notepad.exe" process in your case Hotkey, IfWinActive, Calculadora Gui, Font, s12 Gui, Add, Text, x20, Press your Hotkey below: Gui, Add, ...
- 12 Jun 2019, 15:02
- Forum: Ask for Help (v1)
- Topic: How to disable changes made with AutoHotKey? Accidentally disabled windows and alt key?
- Replies: 5
- Views: 2334
Re: How to disable changes made with AutoHotKey? Accidentally disabled windows and alt key?
try this
Code: Select all
F4::
Active := !Active
return
#if Active
; Disable Alt+Tab
!Tab::Return
; Disable Windows Key + Tab
#Tab::Return
; Disable Left Windows Key
LWin::Return
; Disable Right Windows Key
RWin::Return
#if
- 12 Jun 2019, 14:59
- Forum: Ask for Help (v1)
- Topic: Help to understand Hotkey Script Topic is solved
- Replies: 6
- Views: 901
Re: Help to understand Hotkey Script Topic is solved
try this Gui, Font, s12 Gui, Add, Text, x20, Press your Hotkey below: Gui, Add, Hotkey, w200 vHKV Gui, Add, Checkbox, x20 vActive gActiveHotkeyG, Active Hotkey Gui, Show, w240 h120, `t return ActiveHotkeyG: Gui, Submit, NoHide if (Active) { GuiControl, disable, HKV Hotkey, IfWinActive, ahk_exe notep...
- 12 Jun 2019, 12:57
- Forum: Ask for Help (v1)
- Topic: AHK won't detect "Confirm Save As" button Topic is solved
- Replies: 4
- Views: 1600
Re: AHK won't detect "Confirm Save As" button Topic is solved
ErrorLevel mean done waiting for the window
Code: Select all
WinWaitActive, Confirm Save As, , 20
if ErrorLevel
{
msgbox, I waited 20 second and the window didn't Activated
}
else
{
msgbox, I found the window send your keys now
}
- 12 Jun 2019, 12:54
- Forum: Gaming Help (v1)
- Topic: Problems with diablo 3 script
- Replies: 8
- Views: 2646
Re: Problems with diablo 3 script
try this if Not A_IsAdmin AND A_OSVersion <> WIN_XP { Run *RunAs "%A_ScriptFullPath%" ExitApp } #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 SetWorkingDir %A_ScriptDir% ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDe...
- 12 Jun 2019, 12:32
- Forum: Ask for Help (v1)
- Topic: Problem Clearing Hotkeys with GUI Topic is solved
- Replies: 10
- Views: 1613
- 12 Jun 2019, 12:26
- Forum: Ask for Help (v1)
- Topic: AHK won't detect "Confirm Save As" button Topic is solved
- Replies: 4
- Views: 1600
Re: AHK won't detect "Confirm Save As" button Topic is solved
try putting some sleep after win Activate and I swap Confirm Save As Activatation WinWaitActive, Save As,, 20 if ErrorLevel { MsgBox, Try saving manually please. } else { Sleep, 250 ;added Sleep Send {Home} Send CNM Send {Space}{Enter} WinWaitActive, Confirm Save As, , 20 if ErrorLevel { Sleep 300 }...
- 12 Jun 2019, 12:10
- Forum: Ask for Help (v1)
- Topic: pass object key ByRef?
- Replies: 7
- Views: 1798
Re: pass object key ByRef?
One potential solution, would be functions that accept a string like "obj.key" and could dereference it. hi jeeswg, I am learning from you post about RegEx So when I see RegEx challenge I go for it, I tried this, and I am not expert in objects stuff obj := {} obj.key1 := "1" obj.key2 := "2" Swap("o...
- 12 Jun 2019, 11:26
- Forum: Ask for Help (v1)
- Topic: How to copy text from a cell in a excel spreadsheet and paste into a different window and search the page?
- Replies: 1
- Views: 1310
Re: How to copy text from a cell in a excel spreadsheet and paste into a different window and search the page?
this is how to get text from Excel IfWinNotExist, ahk_exe Excel.exe ;Check if there is and existing Excel application { MsgBox, There is no Excel Application Opened. ExitApp } msExcel := ComObjActive("Excel.Application") ;Attatch to Active Excel Application msExcel.ActiveSheet.Range("A1").Value := "...
- 12 Jun 2019, 11:13
- Forum: Ask for Help (v1)
- Topic: Problem Clearing Hotkeys with GUI Topic is solved
- Replies: 10
- Views: 1613
Re: Problem Clearing Hotkeys with GUI Topic is solved
try this TemplatePreset1=^1 TemplatePreset2=^2 TemplatePreset3=^3 gui, add, Hotkey, x25 y25 w350 vTemplatePreset1, ^1 gui, add, Hotkey, y+10 w350 vTemplatePreset2, ^2 gui, add, Hotkey, y+10 w350 vTemplatePreset3, ^3 gui,add, button, ,hello Gui, Show, w500 h500 gosub, refreshhotkeys return GuiClose: ...
- 12 Jun 2019, 11:08
- Forum: Scripts and Functions (v1)
- Topic: HotKey Launcher - By YoucefHam
- Replies: 6
- Views: 2964
- 12 Jun 2019, 09:53
- Forum: Ask for Help (v1)
- Topic: Problem Clearing Hotkeys with GUI Topic is solved
- Replies: 10
- Views: 1613
Re: Problem Clearing Hotkeys with GUI Topic is solved
use this
Code: Select all
refreshhotkeys:
gui, submit, nohide
if (TemplatePreset1 <> "")
Hotkey,%TemplatePreset1%,ChooseTemplate1
if (TemplatePreset2 <> "")
Hotkey,%TemplatePreset2%,ChooseTemplate2
if (TemplatePreset3 <> "")
Hotkey,%TemplatePreset3%,ChooseTemplate3
return